Modicon M340 BMX MSP 0200 (PTO) module Unity Pro

Similar documents
Ethernet Modbus X80 Gateway Device Type Manager

BMX DDM Mixed Relay Input/Output module

LXM32. Explanation for detected error E 733F. Expert Support Machine Solution

BMXMSP0200 PTO module - 2 channels - 4 input - 24 V DC ma - 2 connectors 28 pins

Packaging User Guide for Temperature Control M221 Project Template

AS-Interface Bus for Modicon M340

Unity Pro OSLoader User Manual

Schneider Electric Floating License Manager

Modicon M340 with Unity Pro

SoMachine Scan for Buttons Linked to ZBRN Modules Harmony ZBRN Library Guide

TeSys UASILUFC5 - ASILUFC51 AS-i Communication Module

5521 Potentiometer Analog Input Module

Modicon M241 Logic Controller High Speed Counting HSC Library Guide

5504 Thermocouple Analog Input Module

Schneider Electric AB DH485 Protocol XBT N/R/RT

Making Hazardous Operations Safe and Productive

Schneider Electric License Manager

G9SX-GS. Safety Guard Switching Unit. A Safety Measure for Hazardous Operations That Does Not Lower Productivity. Auto Switching Function

EcoStruxure Power Commission Installation Guide

XPSMCMx Fieldbus Expansion Modules Instruction Sheet (Original Language)

TSXCCY1128 electronic cam module cams - 1 axis - 7 W

Acti 9 Communication System

5401 and 5402 Digital I/O Modules

Modicon Premium PLCs TSX CSY 84 / 85 / 164

Physical description of the safety modules

TM238LFDC24DT. Main. Discrete output voltage. Discrete input voltage type. Number of I/O expansion module 7 [Us] rated supply voltage

Modicon M340 for Ethernet Communications Modules and Processors User Manual

Modicon M241 Logic Controller High Speed Counting HSC Library Guide

TSXCTY2A 2 channels counter modules - 40 khz - 30 ma at 24 V DC, 280 ma at 5 V DC

XPSMF40. Main. Safety module name. Monitoring safety detection discrete input Monitoring safety dialogue discrete output

TSXCCY1128 electronic cam module cams - 1 axis - 7 W

/2010. Modicon Quantum. Hot Standby with Unity User Manual 05/

TM238LFDC24DT compact base M I/O - 24 V DC supply - CANOpen - internal RAM 1000 kb

TM241C24R. Main. Discrete output type. Discrete output number. 14 (remote I/O architecture) 50 µs turn-on operation with I0...I13 terminal(s) input

170 ADM to 60 VDC Module Base / 170 ADO Pt. Relay Out Module Base. Version 1.0

ATV12P037F1 variable speed drive ATV kW hp V - 1ph - on base plate

Altivar 61/71 Adjustable Speed Drives Heatsink Fan Kits VZ3V1212 and VZ3V1216

Twido Programmable Controllers Discrete I/O Modules

ATV12H018M2 variable speed drive ATV kW hp V - 1ph

TM238LFAC24DR compact base M I/O V AC supply - CANOpen- internal RAM 1000 kb

TM7BDM8B. Main. Enclosure material. Input/output number 8 Input/output number of splitter box

Operating instructions. Speed monitor D / / 2014

TM238LDD24DT compact base M I/O - 24 V DC supply -

ILS1M851PB1F0 integrated drive ILS with stepper motor V - I/O for motion sequence - 5A

SoMachine. M238 High Speed Counting Functions High_Speed_Counter_M238.project Example Guide. 04/2012 Basic. Intermediate Expert

HITACHI. EH-150 series PLC EH-RTD8 Resistance Temperature Detective input module Instruction manual. Safety precautions

Modicon M340 for Ethernet Communications Modules and Processors User Manual

Modicon ex80 BME AHI 0812 HART Analog Input Module & BME AHO 0412 HART Analog Output Module User Guide

ATV12H075M3 variable speed drive ATV kW - 1hp V - 3ph - with heat sink

V E1B Snap-in I/O Module

TM7BDI16B. Main. Enclosure material. Input/output number 16 Input/output number of splitter box

H Series PLC. ! : Indicates Compulsion. EH-150 Analog input module EH-AXH8M Instruction manual. Safety precautions DANGER CAUTION COMPULSION

RE7RB13MW adjustable off-delay timing relay s V AC DC - 2OC

LXM32AD18N4 motion servo drive - Lexium 32 - three-phase supply voltage 208/480V kw

Modicon M258 Logic Controller

Modicon TM3 (SoMachine Basic) Expansion Modules Configuration Programming Guide

Twido Programmable Controllers

Rhino Redundancy Module PSM24-REM360S. Operating Instructions

Rhino Buffer Module PSM24-BFM600S. Operating Instructions

ATS22C17Q. Main. Range of product Altistart 22. Component name. Factory setting current. Utilisation category. IP degree of protection

ATS22D75S6U. Main. Range of product Altistart 22. Component name. Factory setting current. Utilisation category. IP degree of protection

Web Designer for Modicon M340, Premium and Quantum

Digital ac/dc (24V) Input Module

LXM28AU07M3X motion servo drive - Lexium 28 - single and three phase V W

ATS22D47S6U. Main. Range of product Altistart 22. Component name. Factory setting current. Utilisation category. IP degree of protection

RE7YA12BU time delay relay for star-delta starter s - 24 V AC DC - 2OC

PM Series Power Meter

IO-AO6X I/O Expansion Module 6 Isolated Analog Outputs

5403 and 5404 Digital Input Modules

QUICK SETUP GUIDE PMC-1000, PMC-1001, PMM-1000, PMB PM Series Power Meter. Safety Information. Equipment Maintenance and Service.

EIO /2011. Magelis HMISTO501. Zelio/Millenium Driver 07/2011 EIO

VersaMax IP I/O Module

GFK-2415A March Type of sensor connection

OTB1S0DM9LP I/O distributed module OTB - Modbus non isolated serial link m

Operating instructions. Switching amplifier DN0210 DN / / 2015

Altivar 61/71. Variable speed drives for synchronous and asynchronous motors. POWERLINK Communication Manual VW3A /2013

TM221CE24R controller M IO relay Ethernet

SCADAPack E Target 5 DF1 PLC Interface

TeSys T LTM R EtherNet/IP with a Third-Party PLC Quick Start Guide

RE7RM11BU off-delay timing relay with control contact s - 24 V AC DC - 1OC

TM241CE24T controller M IO transistor PNP Ethernet

Clipsal Bus Couplers. Two Channel (SLC5102BCLEDL) and Four Channel (SLC5104BCL) for Use with C-Bus Wired Systems

ATV310HU30N4E variable speed drive ATV310-3 kw - 4 hp V - 3 phase

TM221CE40T controller M IO transistor PNP Ethernet

DM-918 OPERATIONS MANUAL AUTORANGING MULTIMETER

Modicon TM5 EIO /2012. Modicon TM5. Digital I/O Modules Hardware Guide 04/2012 EIO

ATS22D17Q soft starter-ats22-control 220V-power 230V (4kW)/ V(7.5kW)

Autoranging True RMS Multimeter User Manual

ATS22D75Q soft starter-ats22-control 220V-power 230V(18.5kW)/ V(37kW)

TM241CEC24T. Main. 14 (remote I/O architecture) W with max number of I/O expansion module ma fast input. 2.

TM221M16R controller M IO relay

Resolver to Digital Expansion Board

EIO /2009. Advantys ETB. IP67 Ethernet Block I/O Modules for Modbus TCP/IP User Guide 7/2009 EIO

TM241CE40R controller M IO relay Ethernet

D115 The Fast Optimal Servo Amplifier For Brush, Brushless, Voice Coil Servo Motors

ATS22C11S6U soft starter-ats22-control110vpower208v(30hp)/230v(40hp)/460v(75hp)/575v(100h

S-14 S-14. Compact Digital Multimeter. Compact Digital Multimeter

SCADAPack E 5405 Digital Input Hardware Manual

RE7YA12BU. Main. Contacts type and composition Component name Time delay type. 24 V AC/DC at 50/60 Hz V AC/DCat 50/60 Hz

TeSys U Communication Variables

Transcription:

Modicon M340 EIO0000000058 10/2013 Modicon M340 BMX MSP 0200 (PTO) module Unity Pro 10/2013 EIO0000000058.05 www.schneider-electric.com

The information provided in this documentation contains general descriptions and/or technical characteristics of the performance of the products contained herein. This documentation is not intended as a substitute for and is not to be used for determining suitability or reliability of these products for specific user applications. It is the duty of any such user or integrator to perform the appropriate and complete risk analysis, evaluation and testing of the products with respect to the relevant specific application or use thereof. Neither Schneider Electric nor any of its affiliates or subsidiaries shall be responsible or liable for misuse of the information contained herein. If you have any suggestions for improvements or amendments or have found errors in this publication, please notify us. No part of this document may be reproduced in any form or by any means, electronic or mechanical, including photocopying, without express written permission of Schneider Electric. All pertinent state, regional, and local safety regulations must be observed when installing and using this product. For reasons of safety and to help ensure compliance with documented system data, only the manufacturer should perform repairs to components. When devices are used for applications with technical safety requirements, the relevant instructions must be followed. Failure to use Schneider Electric software or approved software with our hardware products may result in injury, harm, or improper operating results. Failure to observe this information can result in injury or equipment damage. 2013 Schneider Electric. All rights reserved. 2 EIO0000000058 10/2013

Table of Contents Safety Information............................. 7 About the Book................................ 9 Part I BMX MSP 0200 Product Overview............ 11 Chapter 1 Module Introduction............................ 13 General Information on PTO Function......................... 14 General Information about the BMX MSP 0200 PTO Module....... 15 Physical Description of the BMX MSP 0200 PTO module......... 16 Board unit characteristics.................................. 18 Chapter 2 PTO module installation........................ 19 Mounting the BMX MSP 0200 PTO Module.................... 20 Mounting the BMX FTB 2800/2820 Terminal Block.............. 22 How to Avoid Electromagnetic Interference.................... 25 LED indicator............................................ 27 Chapter 3 I/O Specification............................... 31 Inputs for PTO........................................... 32 Input Characteristics...................................... 35 Pulse Train Characteristics................................. 36 Output Command Drive.................................... 38 Output Characteristics..................................... 45 Chapter 4 Set up sequence............................... 47 Set up Sequence......................................... 47 Part II PTO Module Start Up Example for a Single Axis Configuration............................. 49 Chapter 5 Example Overview............................. 51 Example Introduction...................................... 52 Application Background.................................... 53 Chapter 6 Hardware installation........................... 57 Mounting the module and the terminal........................ 58 Wiring the PTO module to the LEXIUM 05 via the USIC........... 59 Configuring the Lexium 05 in PowerSuite...................... 61 Configuring the Lexium 05 with the User Interface............... 64 Chapter 7 Configuring the BMX MSP 0200 on Unity Pro....... 67 Creating the Project....................................... 68 Configuring the BMX MSP 0200 PTO Module.................. 69 EIO0000000058 10/2013 3

Chapter 8 Programming a Movement...................... 75 Declaration of Variables.................................... 76 Declaring Elementary Variables.............................. 77 Declaring Derived Variables................................. 79 Declaring IODDT Variables................................. 81 Programming the Example.................................. 83 Process Initializing........................................ 85 Approach............................................... 88 Sorting the Product....................................... 91 Temporisation and Position Reinitialization..................... 93 Transferring the Project between the Terminal and the PLC........ 96 Chapter 9 Example Diagnostic and Debugging.............. 99 Using Data via the Animation Tables.......................... 100 Using Data via the Operator Screens......................... 102 Part III PTO Function............................. 105 Chapter 10 Configuration parameters....................... 107 Configuration Screen for the BMX MSP 0200 PTO Module........ 108 Position Control Mode Configuration.......................... 110 Programmable Input Filtering................................ 112 Event Sending to Application................................ 114 Chapter 11 Programming Features......................... 117 11.1 General Command Programming............................ 118 Elementary function description.............................. 119 Command Mechanism..................................... 120 Motion Command Using FBD............................... 121 Motion Command using Write_CMD.......................... 123 Command Mechanism Sending Rules......................... 124 Parameter Description..................................... 125 Sequence of commands................................... 128 Axis Status Information.................................... 130 11.2 Positioning Function Description............................. 131 Frequency Generator...................................... 133 Frequency Generator Complex Profile......................... 136 Move Velocity............................................ 139 Move Velocity Complex Profile 1............................. 142 Move Velocity Complex Profile 2............................. 145 Move Velocity Complex Profile 3............................. 148 Move Velocity Complex Profile 4............................. 151 4 EIO0000000058 10/2013

Absolute Positioning: Move Absolute......................... 156 Relative Positioning: Move Relative.......................... 161 Positioning Complex Profile 1............................... 166 Positioning Complex Profile 2............................... 169 Positioning Buffer Mode Management........................ 172 Positioning Buffer Mode Abort Case.......................... 173 Positioning Buffer Mode Buffered Case....................... 177 Positioning Buffer Mode Case of BlendingPrevious.............. 181 Homing................................................ 187 General Homing Features.................................. 192 Homing Mode: Short Cam.................................. 193 Homing Mode: Long Cam Positive........................... 194 Homing Mode: Long Cam Negative.......................... 195 Homing Profile: Short Cam with Positive Limit.................. 196 Homing Mode: Short Cam with Negative Limit.................. 198 Homing Mode: Short Cam with Marker........................ 200 Set Position............................................. 201 STOP.................................................. 203 Command Status Follow-Up................................ 204 Chapter 12 Adjustment................................... 207 Adjust Screen for BMX MSP 0200 PTO module................. 208 Position Control Mode Adjustment........................... 211 Slack Correction......................................... 212 Chapter 13 Diagnostic and debugging the BMX MSP 0200 PTO module....................................... 213 Debug Screen for BMX MSP 0200 PTO Module................. 214 Debugging Parameter Description........................... 216 Diagnostic Screen for the BMX MSP 0200 PTO module.......... 219 Diagnostic Parameters Description........................... 221 Management of Detected Errors............................. 223 Chapter 14 The Language Objects of the PTO Function........ 229 Introducing Language Objects for Application-Specific PTO........ 230 Position Control IODDT Object.............................. 231 Explicit Exchange Language Objects Associated with the Application- Specific Function......................................... 235 Explicit System Objects %MWSys........................... 237 Explicit Status Parameters %MWStat......................... 238 Explicit Command Parameters %MWCmd..................... 240 EIO0000000058 10/2013 5

Explicit Adjustment Parameters %MWAdjust.................... 241 Implicit Exchange Language Objects Associated with the Application- Specific Function......................................... 242 Implicit Status Objects %I, %IW.............................. 243 Implicit Event Data %IW.................................... 245 Implicit Command Objects %Q, %QW......................... 246 Chapter 15 Limitations and Performances................... 247 Key Performances........................................ 247 Glossary......................................... 249 Index......................................... 261 6 EIO0000000058 10/2013

Safety Information Important Information NOTICE Read these instructions carefully, and look at the equipment to become familiar with the device before trying to install, operate, or maintain it. The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure. EIO0000000058 10/2013 7

PLEASE NOTE Electrical equipment should be installed, operated, serviced, and maintained only by qualified personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material. A qualified person is one who has skills and knowledge related to the construction and operation of electrical equipment and its installation, and has received safety training to recognize and avoid the hazards involved. 8 EIO0000000058 10/2013

About the Book At a Glance Document Scope This documentation describes the hardware and software implementation of the PTO module for Modicon M340 PLCs. Validity Note This documentation is valid from Unity Pro v8.0. Product Related Information WARNING UNINTENDED EQUIPMENT OPERATION The application of this product requires expertise in the design and programming of control systems. Only persons with such expertise should be allowed to program, install, alter, and apply this product. Follow all local and national safety codes and standards. Failure to follow these instructions can result in death, serious injury, or equipment damage. EIO0000000058 10/2013 9

10 EIO0000000058 10/2013

Modicon M340 BMX MSP 0200 Product Overview EIO0000000058 10/2013 Part I BMX MSP 0200 Product Overview BMX MSP 0200 Product Overview Overview This part gives an overview of the BMX MSP 0200 PTO module and its technical specifications. What Is in This Part? This part contains the following chapters: Chapter Chapter Name Page 1 Module Introduction 13 2 PTO module installation 19 3 I/O Specification 31 4 Set up sequence 47 EIO0000000058 10/2013 11

BMX MSP 0200 Product Overview 12 EIO0000000058 10/2013

Modicon M340 Module Introduction EIO0000000058 10/2013 Chapter 1 Module Introduction Module Introduction Overview This chapter gives a quick description of the PTO module. WARNING UNEXPECTED SYSTEM BEHAVIOR - INVALID CONTROL PATHS The designer of any control scheme must consider the potential failure modes of control paths and, for certain critical control functions, provide a means to achieve a safe state during and after a path failure. Examples of critical control functions are emergency stop and overtravel stop. Separate or redundant control paths must be provided for critical control functions. System control paths may include communication links. Consideration must be given to the implications of unanticipated transmission delays or failures of the link. Each implementation of the BMX MSP Pulse Train Offer must be individually and thoroughly tested for proper operation before being placed into service. Failure to follow these instructions can result in death, serious injury, or equipment damage. What Is in This Chapter? This chapter contains the following topics: Topic Page General Information on PTO Function 14 General Information about the BMX MSP 0200 PTO Module 15 Physical Description of the BMX MSP 0200 PTO module 16 Board unit characteristics 18 EIO0000000058 10/2013 13

Module Introduction General Information on PTO Function At a Glance The main purpose of the MSP 0200 PTO module is to control third party drives with open collector input and integrated position loop. Description In order to do this, the PTO module provides a square wave output for a specified number of pulses and a specified cycle time. It can be programmed to produce either one train of pulses or a pulse profile consisting of multiple trains of pulses. For example, a pulse profile can be used to control a stepper motor or servo-motor through a simple ramp up, run, and ramp down sequence or more complicated sequences. The control positioning is achieved according to an open loop mode meaning without the need of feedback information on the real position of the mobile. 14 EIO0000000058 10/2013

Module Introduction General Information about the BMX MSP 0200 PTO Module Introduction The BMX MSP 0200 PTO module is a standard format module that enables to control of a third party drives with an open collector compatible input and integrated position loop. The module has 2 PTO channels. This module may be installed in any available slot in a Modicon M340 PLC station rack. Illustration The following illustration shows the command diagram to a third party drive. EIO0000000058 10/2013 15

Module Introduction Physical Description of the BMX MSP 0200 PTO module Illustration The figures below present the BMX MSP 0200 PTO module : 16 EIO0000000058 10/2013

Module Introduction Physical Elements of the Modules This table presents the elements of the MSP 0200 PTO module : Number Description 1 Module state LEDs: State LEDs at module level State LEDs at channel level 2 28-pin connector Accessories The BMX MSP 0200 PTO module requires the use of a BMX FTB 2800/2820 28-pin terminal block. EIO0000000058 10/2013 17

Module Introduction Board unit characteristics Overview This is the technical description of the board unit characteristics Caracteristics table Board unit characteristics Consumption 3.3 V Typical < 150 ma Maximum 200 ma Consumption 24 V pre-actuator Without load Maximum: 35 ma Dissipated power AT 24V, 0 active input: 1.4 W AT 24V, 8 active inputs: 2.8 W Dielectric strength (internal logic) Primary / Secondaries 1500 Vrms Between channel groups Not Isolated Insulation resistance >10 MΩ Temperature derating No derating -25 to 70 C WARNING HAZARDOUS PERFORMANCE Respect the working temperature range as it affects the module performances. Failure to follow these instructions can result in death, serious injury, or equipment damage. 18 EIO0000000058 10/2013

Modicon M340 PTO module installation EIO0000000058 10/2013 Chapter 2 PTO module installation PTO module installation Overview This chapter provides information to install the module. What Is in This Chapter? This chapter contains the following topics: Topic Page Mounting the BMX MSP 0200 PTO Module 20 Mounting the BMX FTB 2800/2820 Terminal Block 22 How to Avoid Electromagnetic Interference 25 LED indicator 27 EIO0000000058 10/2013 19

PTO module installation Mounting the BMX MSP 0200 PTO Module At a Glance The BMX MSP 0200 PTO module is powered by the rack bus. The module itself may be installed or removed without turning off the power supply to the rack. Mounting operations (installation, assembly and disassembly) are described below. Installation Precautions The PTO modules may be installed in any of the positions in the rack except for the first two (marked PS and 00) which are reserved for the rack s power supply module and the processor respectively. Power is supplied by the bus at the bottom of the rack (3.3 V and 24 V). Before installing a module, you must take off the protective cap from the module connector located on the rack. HAZARD OF ELECTRIC SHOCK DANGER disconnect voltage supplying sensors and pre-actuators before plugging / unplugging the terminal block on the module. remove the terminal block before plugging / unplugging the module on the rack. Failure to follow these instructions will result in death or serious injury. Installation The following diagram below shows a PTO module mounted in the rack: 20 EIO0000000058 10/2013

PTO module installation The following table describes the different elements which make up the assembly below: Number Description 1 BMX MSP 0200 PTO module 2 Standard rack Installing the Module in the Rack The following table shows the procedure for mounting the BMX MSP 0200 PTO modules in the rack: Step Action Illustration 1 Position the locating pins situated at the rear of the module (on the bottom part) in the corresponding slots in the rack. Note: Before positioning the pins, make sure you have removed the protective cover (see Modicon M340 Using Unity Pro, Processors, Racks, and Power Supply Modules, Setup Manual). Steps 1 and 2 2 Swivel the module towards the top of the rack so that the module sits flush with the back of the rack. It is now set in position. 3 Tighten the mounting screw to ensure that the module is held in place on the rack. Tightening torque: Max. 1.5 N.m Step 3 EIO0000000058 10/2013 21

PTO module installation Mounting the BMX FTB 2800/2820 Terminal Block At a Glance BMX MSP 0200 PTO modules requires the BMX FTB 2800/2820 28-pin terminal block to be inserted into the front of the module. These fitting operations (assembly and disassembly) are described below. BMX FTB 2820 BMX FTB 2800 22 EIO0000000058 10/2013

PTO module installation Installing the 28-Pin Terminal Block The following table shows the procedure for assembling the 28-pin terminal block onto a BMX MSP 0200 PTO module: Assembly procedure: Step Action 1 Once the module is in place on the rack, install the terminal block by inserting the terminal block encoder (the rear lower part of the terminal) into the module s encoder (the front lower part of the module), as shown above. 2 Fix the terminal block to the module by tightening the 2 mounting screws located on the lower and upper parts of the terminal block. Tightening torque: 0.4 N m (0.29 lb-ft). NOTE: If the screws are not tightened, there is a risk that the terminal block will not be properly fixed to the module. EIO0000000058 10/2013 23

PTO module installation 28 Pin Terminal Block Arrangements The terminal block is arranged as followed: [ CAUTION UNEXPECTED EQUIPMENT OPERATION Follow the wiring (seepage31), mounting and installation (see page 19) instructions. Failure to follow these instructions can result in injury or equipment damage. 24 EIO0000000058 10/2013

PTO module installation How to Avoid Electromagnetic Interference Overview WARNING UNEXPECTED EQUIPMENT OPERATION Follow those instructions to reduce electromagnetic perturbations: adapt the programmable filtering to the frequency applied at the inputs, or use a shielded cable and connect the shield to pins 27 and 28 (functional ground) of the module. In a highly disturbed environment, use the BMX XSP 0400/0600/0800/1200 electromagnetic protection kit (see Modicon M340 Using Unity Pro, Processors, Racks, and Power Supply Modules, Setup Manual) (See Modicon M340 using Unity Pro, Processors, Racks and Power Supply Modules, BMX XSP xxx Protection Bar) to connect the shielding without programmable filtering and use a stabilised 24 VDC supply for inputs and a shielded cable for connecting the supply to the module. use a shielded cable for each PTO channel respectively and note that 24VDC and GND must be included in the shielded cable. (Each shielded cable includes 4 inputs, 4 outputs, 24 VDC and GND.) Electromagnetic perturbations may cause the application to operate in an unexpected manner. Failure to follow these instructions can result in death, serious injury, or equipment damage. EIO0000000058 10/2013 25

PTO module installation The figure below shows the recommended circuit for high-noise environment using the BMX XSP 0400/0600/0800/1200 electromagnetic protection kit: CAUTION POTENTIAL MODULE DAMAGE - IMPROPER FUSE SELECTION Use fast acting fuses to protect the electronic components of the module from overcurrent and reverse polarity of the input/output supplies. Improper fuse selection could result to damage to the module. Failure to follow these instructions can result in injury or equipment damage. 26 EIO0000000058 10/2013

PTO module installation LED indicator At a Glance The BMX MSP 0200 PTO module is equipped with LEDs that display the module s channels status and detected errors. Illustration The figure below shows the position of the channel status display LEDs on the front panel of the PTO module. Display Panels LED display The top row of LEDs indicates module information. The middle row 0xx corresponds to PTO channel 0 The bottom row 1xx corresponds to PTO channel 1 EIO0000000058 10/2013 27

PTO module installation The inputs for both rows of LEDs are represented in the following way: (y = 0 or 1 depending on the PTO channel) LED yid: Drive_Ready&Emergency Input for channel y LED yic: Counter_in_Position Input for channel y LED yio: Origin Input for channel y LED yip: Proximity&LimitSwitch Input for channel y The outputs for both rows of LEDs are represented the following way: (y = 0 or 1 depending on the PTO channel) LED yq+: PTO CW Output for channel y LED yq-: PTO CCW Output for channel y LED yqd: Drive_Enable Output for channel y LED yqc: Counter_Clear Output for channel y When a voltage is present on an input or output, the corresponding LED is lit. Description The following table allows you to perform diagnostics of the module status according to the LEDs: RUN, ERR, I/O and channels (LEDs 0ID to 1QC): Module status The unit is not receiving power or LEDs are out of order. The unit is configuring its channels Internal error detected in module No PTO Channel configured Unit in self-tests Unit has lost communication with CPU Channels are operational. Status LEDs RUN ERR I/O LEDs 0ID to 1QC x x x x x x LEDs 0ID to 1QC are representative of the state of the corresponding input/output. if Channel state active if Channel state inactive Legend: LED off LED Blinking (slow) LED flashing rapidly LED on 28 EIO0000000058 10/2013

PTO module installation Module status I/O Error detected Legend: LED off Status LEDs RUN ERR I/O LEDs 0ID to 1QC Power lost Short-circuit / Overload (only for Output LEDs) LED Blinking (slow) LED flashing rapidly LED on The 4th standard LED in the first line "DL" is used during firmware download: RUN ERR IO DL Status Start of download Download in progress Download error End of download Upgrade done. Module to be restarted Upgrade done with identical version. Module to be restarted EIO0000000058 10/2013 29

PTO module installation 30 EIO0000000058 10/2013

Modicon M340 I/O Specification EIO0000000058 10/2013 Chapter 3 I/O Specification I/O Specification Overview This chapter contains information about the inputs / outputs of the PTO module. NOTE: The PTO performances described in this chapter are only valid with correct wiring as indicated in this documentation. What Is in This Chapter? This chapter contains the following topics: Topic Page Inputs for PTO 32 Input Characteristics 35 Pulse Train Characteristics 36 Output Command Drive 38 Output Characteristics 45 EIO0000000058 10/2013 31

I/O Specification Inputs for PTO Overview There are 4 auxiliary inputs for every PTO channel: Auxiliary Input 0: Drive_Ready&Emergency Auxiliary Input 1: Counter_in_Position Auxiliary Input 2: Origin (Signal used only for homing mode) Auxiliary Input 3: Proximity&LimitSwitch HAZARD OF ELECTRIC SHOCK DANGER disconnect voltage supplying sensors and pre-actuators before plugging / unplugging the terminal block on the module. remove the terminal block before plugging / unplugging the module on the rack. Failure to follow these instructions will result in death or serious injury. Diagram Drive_Ready&Emergency inputs or Counter_in_Position (SINK/SOURCE input type): 32 EIO0000000058 10/2013

I/O Specification Origin or Proximity&LimitSwitch inputs (SINK input type): Wiring the inputs If the Drive_Ready&Emergency and Counter_in_Position outputs from the drive are of SINK type: A twisted pair cable is necessary to connect the module to the drive. EIO0000000058 10/2013 33

I/O Specification If the Drive_Ready&Emergency and Counter_in_Position outputs from the drive are of SOURCE type: NOTE: In order to stop the PTO module when the PLC is set to STOP, connect the D_ReadyX+ input to the PTO module via a BMX DRA (0805 or 1605). This will make all outputs stop when the D_Ready&Emergency input is set to 0. CAUTION INSIGNIFICANT INPUT, SHORT-CIRCUIT OR OVERLOAD Respect mounting and installation procedure and use the given wiring cable diagrams when using the PTO module. Failure to follow these instructions can result in injury or equipment damage. 34 EIO0000000058 10/2013

I/O Specification Input Characteristics Input Characteristics Table The table below describes the BMX MSP 0200 input characteristics Characteristics Input Nominal input values Voltage 24 VDC Current 4.3 ma Input limit values Voltage at state 1 11 V Voltage at state 0 5V Current at state 1 > 2 ma for U 11 V Current at state 0 < 1.5 ma Sensor supply (Ripple included) From 19 to 30 V Input Impedance At U nom Current limited to 4.3 ma Response time Origin Input & Proximity Input <60 μs without bounce filter Position Completed Input & Drive Ready Input <200 μs without bounce filter Reverse polarity Protected IEC61131-2- Edition 2 (2003) Type 3 Compatibility (2 wires, 3 wires prox. Sensors) IEC 947-5-2 Dielectric strength Primaries / secondary 1500 VRMS Insulation resistance > 10 MΩ Input type Origin Input & Proximity&LimitSwitch input Input Current sink Input paralleling Sensor voltage Monitoring threshold Counter_in_Position input& Drive_Ready&Emergency input Normal condition Low-voltage condition Current sink or source Yes > 12 VDC < 8 VDC EIO0000000058 10/2013 35

I/O Specification Pulse Train Characteristics Overview The PTO function provides a square wave output for a specified number of pulses and a specified cycle time. The PTO function can be programmed to produce either one train of pulses or a pulse profile consisting of multiple trains of pulses. For example, a pulse profile can be used to control a stepper motor through a simple ramp up, run, and ramp down sequence or more complicated sequences. The control positioning is achieved according to an open loop mode, meaning without the need for feedback information on the real position. The position loop is integrated in the servo-drive. Characteristics Number of pulses is from -2,147,483,648 to 2,147,483,647 (32 bits depth) Maximum frequency: For CW / CCW and pulse/direction modes with a cable length up to 10 m (32.81ft), the maximum frequency is 200 khz. For A/B phases control mode the maximum frequency is 100 khz. Average frequency accuracy: 0.2% up to 50 khz Increasing up to 0.5% around 200 khz NOTE: There are some limitations in case of usage of USIC + Lexium 05 and a 24 V power supply Pulse train output modes There are 3 types of pulse train output mode that can be configured. Pulse+ /Pulse- (CW/CCW): 36 EIO0000000058 10/2013

I/O Specification Pulse + direction: A/B phases (Quadrature): In order to select the axis movement direction in accordance with the motion command direction on the PTO module, the PTO Unity Software has 3 pulse-train output configuration modes, each allowing reverse direction. WARNING AXIS DIRECTION REVERSED The following axis adjustment parameter must be taken into account: The PTO module output characteristics: positive direction is defined by the logical state 1 corresponding to the state of the "sink" type active physical output (low state). The type of wiring circuit between PTO module and drive: compatible RS422 input with 5 V polarization, compatible RS422 input with 24 V polarization, 24 V source inputs, drive through USIC accessory. The active input level of drive. The kinematic system (direction depending on the type of axis, gear box used or not...). Failure to follow these instructions can result in death, serious injury, or equipment damage. EIO0000000058 10/2013 37

I/O Specification Output Command Drive Overview The following output interface wiring is necessary regarding the drive s available input. There are four points for each PTO output Output Type Internal output circuit: 38 EIO0000000058 10/2013

I/O Specification RS422 Compatible Inputs and 5 V Polarisation Drive with RS422 compatible inputs and 5 V polarisation CAUTION POTENTIAL MODULE DAMAGE - IMPROPER FUSE SELECTION Use fast acting fuses to protect the electronic components of the module from overcurrent and reverse polarity of the input/output supplies. Improper fuse selection could result to damage to the module. Failure to follow these instructions can result in injury or equipment damage. EIO0000000058 10/2013 39

I/O Specification RS422 Compatible Inputs and 24 V Polarisation Drive with RS422 compatible inputs and 24 V supply CAUTION POTENTIAL MODULE DAMAGE - IMPROPER FUSE SELECTION Use fast acting fuses to protect the electronic components of the module from overcurrent and reverse polarity of the input/output supplies. Improper fuse selection could result to damage to the module. Failure to follow these instructions can result in injury or equipment damage. 40 EIO0000000058 10/2013

I/O Specification 24 VDC Source Input Only SOURCE inputs (100 ma maximum) are compatible with Drive_Enable and Counter_Clear NOTE: The pre-actuator power supply and the output external power supply should be from the same source. CAUTION POTENTIAL MODULE DAMAGE - IMPROPER FUSE SELECTION Use fast acting fuses to protect the electronic components of the module from overcurrent and reverse polarity of the input/output supplies. Improper fuse selection could result to damage to the module. Failure to follow these instructions can result in injury or equipment damage. EIO0000000058 10/2013 41

I/O Specification USIC: Accessory for RS422 interface The Lexium drives or drives with RS422 line-receiver cannot be connected directly to the PTO channel. It is necessary to use a Universal Signal Interface Converter (ref: VW3M3102), an external RS422 accessory to connect the drive to the PTO channel. 42 EIO0000000058 10/2013

I/O Specification Wiring the PTO module to a drive via the USIC: For connection from PTO channel to USIC use the prefabricated cable (ref: VW3M8210R05) available in Schneider catalogue. To connect the USIC to the drive, a prefabricated cable (ref: VW3M8201R50) can be used with a SUB-D15 connector wired as shown in the example (see page 59). NOTICE MATERIAL DESTRUCTION Remove the network resistance from the USIC. Failure to follow these instructions can result in equipment damage. CAUTION POTENTIAL MODULE DAMAGE - IMPROPER FUSE SELECTION Use fast acting fuses to protect the electronic components of the module from overcurrent and reverse polarity of the input/output supplies. Improper fuse selection could result to damage to the module. Failure to follow these instructions can result in injury or equipment damage. EIO0000000058 10/2013 43

I/O Specification WARNING RANDOM COMMAND AND PERFORMANCE REDUCTION Do not use a cable with a length above 0.5 m (1.64 ft). Failure to follow these instructions can result in death, serious injury, or equipment damage. Protection of Outputs Each output is protected against short-circuit and overload. The overload detection starts at 0.13 A as load current. In case of detected error: The peak current will be limited to 1 A for 50 μs, The outputs will be automatically switched off. A fast auto-recovery will be attempted four times before a short-circuit condition is registered. This condition is reported in the channel status information (EXT_FLT_OUTPUTS: %MWr.m.c.2.1), and after waiting a second, a recovery is reattemped. NOTE: Error detection upon one output sets all outputs of the connector in off state. This condition is then reported to the status word of all channels on the connector. CAUTION OUTPUT SHORT-CIRCUIT OR OVERLOAD Respect mounting procedure and use the given wiring cable Failure to follow these instructions can result in injury or equipment damage. 44 EIO0000000058 10/2013

I/O Specification Output Characteristics Output Characteristics Table The table below describes the output characteristics of the BMX MSP 0200 in the documented wiring configuration. Characteristics PTO output Auxiliary output Nominal values Voltage 24 VDC Current 0.05 A Limit values Voltage 19---30V Current/Point 0.1 A (Disjunction at 0.13 A) Current/PTO Channel 0.4 A Leakage current At state 0 < 50 μa Residual voltage At state 1 < 150 mv (with drive interface) Minimum load impedance 15 kω Maximum capacity 100 nf Output frequency 200 khz with cable length < 10 m (32.8 ft) with < 150 μs the RS422 compatible circuits. 100 khz with cable length < 5 m (16.4 ft) with the normal source input circuit in 24V. 200 khz with USIC and VW3M8210R05 (0.5 m (1.64 ft)) connected to PTO side. Max overload time Switching frequency on inductive load Output paralleling Compatibility with DC inputs Built-in protection Preactuator voltage Monitoring threshold Monitoring response time 50μs Not applicable (only resistive load allowed) Not applicable (dedicated function by output) With RS422: 7 ma inputs With SOURCE inputs: 5 V to 24 V With signal converter (USIC) Against overvoltage No No Against reverse polarity Yes, by reverse-mounted diode. Yes, by reverse-mounted diode. Against short circuits and overloads Yes, by current limiter and electronic circuit-breaker for one PTO channel (4 outputs) 0.13 A < Id (by output) < 1 A OK > 14 V > 14 V On low-voltage condition < 8 V < 8 V On disappearance On appearance 1.2 ms < T < 1.5 ms 1.2 ms < T < 1.5 ms EIO0000000058 10/2013 45

I/O Specification 46 EIO0000000058 10/2013

Modicon M340 Set up sequence EIO0000000058 10/2013 Chapter 4 Set up sequence Set up sequence Set up Sequence Overview The software installation of the application-specific modules is carried out from the various Unity Pro editors in offline and online mode. IWhen a processor is not available, Unity Pro allows to carry out an initial test using the simulator. Sequence This is a 5-step sequence: EIO0000000058 10/2013 47

Set up sequence Step 1: PTO module installation (see page 19) and I/O Specification (see page 31) Step 2: Configuration parameters (seepage107) Step 3: Programming features (see page 117) Step 4: Adjustment (seepage207) Step 5: Diagnostic and debugging the MSP 0200 PTO module (see page 213) 48 EIO0000000058 10/2013

Modicon M340 PTO Module Start Up Example for a Single Axis Configuration EIO0000000058 10/2013 Part II PTO Module Start Up Example for a Single Axis Configuration PTO Module Start Up Example for a Single Axis Configuration Overview This part provides an example of using the BMX MSP 0200 PTO module. What Is in This Part? This part contains the following chapters: Chapter Chapter Name Page 5 Example Overview 51 6 Hardware installation 57 7 Configuring the BMX MSP 0200 on Unity Pro 67 8 Programming a Movement 75 9 Example Diagnostic and Debugging 99 EIO0000000058 10/2013 49

PTO Module Start Up Example for a Single Axis Configuration 50 EIO0000000058 10/2013

Modicon M340 EIO0000000058 10/2013 Chapter 5 Example Overview Example Overview At a glance This chapter describes the overview structure of the start up example for using the PTO module. What Is in This Chapter? This chapter contains the following topics: Topic Page Example Introduction 52 Application Background 53 EIO0000000058 10/2013 51

Example Introduction At a Glance This example describes the steps in the installation of a drive using a BMX MSP 0200 PTO module. These steps are: Hardware installation Software configuration Programming a movement Diagnosis and debugging Objective The example s objective is to give a full review of the BMX MSP 0200 PTO module s implementation by creating a fully operational program. Requirements The hardware needed to do this example is: A Modicon M340 platform (Rack, CPU and Power Supply) A BMX MSP 0200 PTO module A Lexium 05 USIC module The software needed to do this example is: Unity Pro 4.0 Power Suite 2.5 NOTE: In this example, a Lexium 05 with a USIC is used but any other drive with an open collector compatible input and integrated position loop would be convenient for the example. NOTE: Basic knowledge of Unity Pro programming is required for this example. 52 EIO0000000058 10/2013

Application Background At a Glance The application described is a packet conveyor manager: a machine that contains a product transport conveyor and a digital jack system which will place each product in a free cell. Once a product is detected to sort in a cell, the application starts. This system has 2 orthogonal linear axes equipped with drives: Drive 1 for the Jack that pushes the product into the cell Drive 2 for the transverse axis The application example deals with the Jack s movement once a product is detected. Illustration Packet conveyor managemer 1 Digital Jack 2 Conveyor with products transported 3 Presence Sensor EIO0000000058 10/2013 53

When the product is detected, there is a 4-step sequence which starts: The jack moves forward to pushing position, this is a high-speed aproach phase. The product is pushed out of the belt at lower velocity. After pushing the item, there is a 500 ms break before moving the jack again. After waiting, the jack goes back into its original position. Sequence Diagram The sequence can be represented by the following diagram. 54 EIO0000000058 10/2013

Velocity Diagram The jack s speed will be like the following diagram: F P Frequency Position EIO0000000058 10/2013 55

56 EIO0000000058 10/2013

Modicon M340 Hardware installation EIO0000000058 10/2013 Chapter 6 Hardware installation Hardware installation Overview This chapter concerns the hardware installation, mounting, wiring and configuration of the Lexium 05. What Is in This Chapter? This chapter contains the following topics: Topic Page Mounting the module and the terminal 58 Wiring the PTO module to the LEXIUM 05 via the USIC 59 Configuring the Lexium 05 in PowerSuite 61 Configuring the Lexium 05 with the User Interface 64 EIO0000000058 10/2013 57

Hardware installation Mounting the module and the terminal At a Glance This part is fully described in the module installation. (seepage19) 58 EIO0000000058 10/2013

Hardware installation Wiring the PTO module to the LEXIUM 05 via the USIC At a Glance It is necessary to use a USIC, an external RS422 accessory to connect the Lexium 05 drive to the PTO channel as the drive cannot be connected directly. Wiring PTO Module to USIC For this diagram, it is considered the PTO channel 0 is configured. A reference: VW3M8210R05 cable is required for this wiring. EIO0000000058 10/2013 59

Hardware installation Wiring USIC to Lexium 05 This wiring can be done by using the prefabricated cable reference: VW3M8209R30 (or 05, 15, 50) Wiring Usic The CN4 and CN3 USIC pins need to be wired as shown: 60 EIO0000000058 10/2013

Hardware installation Configuring the Lexium 05 in PowerSuite Overview PowerSuite allows to configure a drive. PowerSuite gives access to all the configurable elements of the Lexium 05 as well as a monitoring and simulation element. Once configured, the software creates a configuration file which can be saved on the Lexium 05. In this part, the following elements are needed: PowerSuite 2.5 Network cable (RJ45) A RS232/RS485 accessory (ref: W814944430221) NOTE: Required signals LIMN, LIMP and REF must be wired or deactivated by the tuning software. EIO0000000058 10/2013 61

Hardware installation Connecting and Configuring the Lexium 05 This table describes the procedure for connecting to the Lexium 05: Step Action 1 Connect the PC with PowerSuite to the Lexium 05 with the RJ45 and the RS232/RS485 accessory to the servodrive. 2 Start PowerSuite 2.5, Result: the following start-up screen is displayed: 3 Right click on My Devices and then Connect. Result: a text box is displayed Press Create. 62 EIO0000000058 10/2013

Hardware installation Step Action 4 Type a project name (Lexium05_PTO) and then click on OK. Result: a transfer confirmation window is displayed. 5 The Lexium 05 configuration is transferred from the servodrive to the connected work station. 6 PowerSuite displays a configuration screen in a new window that gives access to device control, tuning and monitoring functions. Select Basic Configuration in the Simply Start section. Result: a window with factory settings will be displayed. Set these settings as followed: 7 Click on the Configuration menu, then Save to EEPROM and validate by clicking on OK to save the configuration to the Lexium 05 8 Turn power off and back on to reboot the Lexium 05. If the Lexium 05 is configured properly, it will display rdy EIO0000000058 10/2013 63

Hardware installation Configuring the Lexium 05 with the User Interface Overview A user interface is integrated in the Lexium 05. With this interface, you can: put the device online configure the device carry out a diagnostic Interface Menu Structure The following graphic presents an overview of access to the interface s main menus: 64 EIO0000000058 10/2013

Hardware installation Basic Settings The following table describes the procedure for entering the settings for our application. Step Action 1 If the HMI has FSu- displayed, then the first setup needs to be done, refer to the Lexium 05 Simplified manual (id: 1760970) in order to do this. 2 The HMI displays rdy Press the ENT button on the interface. Result: the SET (Setting) menu is displayed on the interface s status indicator. 3 Press ENT Press or and select imah, validate with ENT. 4 5 6 7 8 Set the value to 7.50 with the Press ENT Press ESC Press or and select Li95, validate with ENT. Set the value to 7.50 with the Press ENT Press ESC Press or and select LihA, validate with ENT. Set the value to 7.50 with the Press ENT Press ESC twice or or or Press the button several times to access the drc- menu and press Press ENT. Result: the A2Mo menu is displayed on the interface s status indicator. Press the ENT. button several times to access the io-m menu and press Press Press or and select GEAr, validate with ENT. (If the previous configuration wasn t gear, then it will blink once to validate the change). Press ESC EIO0000000058 10/2013 65

Hardware installation Step 9 Action Press select iopi, validate with ENT. 10 Press or and select Pd, validate with ENT. (If the previous configuration wasn t Pd, then it will blink once to validate the change). Press ESC twice to return to the drc- menu 11 Press ESC to return to the main display (RDY by default). 66 EIO0000000058 10/2013

Modicon M340 EIO0000000058 10/2013 Chapter 7 Configuring the BMX MSP 0200 on Unity Pro Configuring the BMX MSP 0200 on Unity Pro Overview This chapter describes the different steps to configure the module on Unity Pro. What Is in This Chapter? This chapter contains the following topics: Topic Page Creating the Project 68 Configuring the BMX MSP 0200 PTO Module 69 EIO0000000058 10/2013 67

Creating the Project At a Glance Developing an application using Unity Pro involves creating a project associated with a PLC. NOTE: For more information, see Unity Pro online help (click on?, select Content tab; click on Unity, then Unity Pro Software, then Operating modes, and Project configuration). Procedure for Creating a Project The table below shows the procedure for creating the project using Unity Pro. Step Action 1 Launch the Unity Pro software. 2 Click on File then New, the new project window will appear. 3 Select a M340 PLC. 4 Confirm with OK. 68 EIO0000000058 10/2013

Configuring the BMX MSP 0200 PTO Module At a Glance Developing an application with a PTO module involves choosing the right module and appropriate configuration. Module Selection The table below shows the procedure for selecting the pulse train output module. Step Action 1 In the Project browser double-click on Configuration then on 0:PLC Bus and on 0:BMX XBP (Where 0 is the rack number) 2 In the PLC Bus window, select slot 1 and double-click EIO0000000058 10/2013 69

Step Action 3 Choose the BMX MSP 0200 Pulse Train Output module 4 Confirm with OK. PTO Module Configuration The table below shows the procedure for selecting the pulse train output module and configuring the module reflex outputs. Step Action 1 In the PLC Bus window, double-click on the BMX MSP 0200 Pulse Train Output module 2 Select channel 0 70 EIO0000000058 10/2013

Step Action 3 Select the module function Position Control EIO0000000058 10/2013 71

Step Action 4 In the configuration screen set Acc/Dec Unit to Hz/2ms. 72 EIO0000000058 10/2013

Step Action 5 At this stage the adjustment parameter remain unchanged. EIO0000000058 10/2013 73

74 EIO0000000058 10/2013

Modicon M340 EIO0000000058 10/2013 Chapter 8 Programming a Movement Programming a Movement Overview This chapter describes how to create a movement profile on Unity Pro. What Is in This Chapter? This chapter contains the following topics: Topic Page Declaration of Variables 76 Declaring Elementary Variables 77 Declaring Derived Variables 79 Declaring IODDT Variables 81 Programming the Example 83 Process Initializing 85 Approach 88 Sorting the Product 91 Temporisation and Position Reinitialization 93 Transferring the Project between the Terminal and the PLC 96 EIO0000000058 10/2013 75

Declaration of Variables At a Glance All of the variables used in the different sections of the program must be declared. Undeclared variables cannot be used in the program. The following table shows the details of the variables used in the application. Variable Type Definition Elementary Variables Abort BYTE BufferMode parameter (value = 0) ApproachInProgress BOOL Approach in progress BlendingPrevious BYTE BufferMode parameter (value = 2) Buffered BYTE BufferMode parameter (value = 1) BufferFree BOOL Cmd0Nb BYTE 1st command output number Cmd1Nb BYTE 2nd command output number Cmd2Nb BYTE 3rd command output number Cmd3Nb BYTE 4th command output number InitProcess BOOL Process initialisation ItemToSort BOOL Item to sort detection Derived Variables Approach_Result Result Array with approach status Pushing_Result Result Array with pushing status SortingOperation_Result Result Array with sorting operation status IO Derived Variables R1CH0 IODDT IODDT of type T_PTO_BMX for the %CH0.1.0 address. 76 EIO0000000058 10/2013

Declaring Elementary Variables Overview The first variables to declare are the elementary variables. Procedure for Declaring Variables The table below shows the procedure for declaring application variables (see Unity Pro, Operating Modes). Step Action 1 In Project browser / Variables & FB instances, double-click on Elementary variables 2 In the Data editor window, select the box in the Name column and enter a name for your first variable. 3 Now select a Type for this variable. 4 Declare all the variables as said then close the window. Elementary Variables Used for the Application The following table shows the details of the elementary variables used in the application. Variable Type Definition Abort BYTE BufferMode parameter (value = 0) ApproachInProgress BOOL Approach in progress BlendingPrevious BYTE BufferMode parameter (value = 2) Buffered BYTE BufferMode parameter (value = 1) BufferFree BOOL Cmd0Nb BYTE 1st command output number Cmd1Nb BYTE 2nd command output number Cmd2Nb BYTE 3rd command output number Cmd3Nb BYTE 4th command output number InitProcess BOOL Process initialisation ItemToSort BOOL Item to sort detection EIO0000000058 10/2013 77

The following screen shows the application variables created using the data editor: 78 EIO0000000058 10/2013

Declaring Derived Variables Overview This is a 2-step procedure 1. Create the derived data type 2. Create the derived variables Creating the Result Type In order to create the derived variables, the Result type needs to be created. Follow these steps to do so: Step Action 1 In Project browser / Derived Data Types, double-click on the folder to open the window. 2 Type "Result" in the name, and keep Struct type. A new Result data type will be in a creation (illustrated by the worker icon) 3 Expand the structure and add the elements (Done, Abort, Error). 4 The worker icon will disappear if the analyze type command is used or next time the application is built. EIO0000000058 10/2013 79

Create the Derived Variables Used for the Application The table shows the details of the Derived variables used in the application. Variable Type Definition Approach_Result Result Array with approach status Pushing_Result Result Array with pushing status SortIngOperation_Result Result Array with sorting operation status The screen shows the application variables created using the data editor : NOTE: Click on in front of the derived variable Approach_Result to expand the I/O objects list. 80 EIO0000000058 10/2013

Declaring IODDT Variables Overview The final step is to declare the IODDT type variable. IODDT Used for the Application Step Action 1 In Project browser / IO Derived Variable. 2 In the Data editor window, select the box in the Name column and enter the R1CH0. 3 Select Type = T_PTO_BMX for this variable. You can find the type here: Select it and click Ok EIO0000000058 10/2013 81

Step Action 4 Specify the IODDT s address: %CH0.1.0 (Rack 1, PTO channel 0) 82 EIO0000000058 10/2013

Programming the Example At a Glance Just after declaration and parameter setting of the hardware, motion programming is the second development phase of the tutorial example. Axis programming is divided in 4 steps according to the speed diagram: Process initializing Approaching at high speed Sorting at low speed Waiting 500 ms and moving back to initial position Declaring the Sections The table below presents a summary of the program sections to create Section name Language Description Process_initializing (see page 85) FBD This section initializes the motion by referencing the axis. Product_Approach (see page 88) FBD This section generates a movement at a high speed to a certain position close to the product. Product_Sort (see page 91) FBD This section generates a low speed movement of the jack to sort the product. Process_Reinitialize (see page 93) FBD This section generates a 500 ms pause and then places the jack back to initial position. EIO0000000058 10/2013 83

The diagram below shows the program structure after the programming sections have been created: 84 EIO0000000058 10/2013

Process Initializing At a glance This part of the program initializes the axis and references it (see page 187). Inserting a Block This table describes the procedure for inserting a block in a program section: Step Action 1 Right click in an empty field in the FBD section to display the contextual menu. 2 Execute the FFB Input Assistant.. command in the contextual menu. Result: The Function Input Assistant opens. 3 Click on the... icon on the FFB Type line. Result: the FFB Type Selection window opens. 4 Expand Libset V4.0 Motion and click on PTO. Result: all of the blocks from the PTO library are displayed on the right-hand side of the FFB Type Selection window. EIO0000000058 10/2013 85

Step Action 5 Confirm the block configuration by clicking on OK. Result: the FBD section is displayed again. A symbol is added to the mouse cursor. 6 Click on an empty field in the FBD section. Result: the SETPOSITION block is inserted in the FBD section. 7 Specify the input and output parameters as defined in the contents. 8 Repeat operation to add the R_TRIG block, knowing that it can be found in Libset V4.0 Base Lib Logic and click on R_TRIG 86 EIO0000000058 10/2013

Program In process initializing section of the example, it is necessary to set D_Enable0 output to 1 either by using the IODDT (DRIVE_ENABLE_LEVEL) or with a program as shown: EIO0000000058 10/2013 87

Approach At a glance This part of the program is the high speed approach of the product part. 88 EIO0000000058 10/2013

Program Using the same programming method as in Process Initializing. (seepage85) Command 1: Approach the item to sort at high velocity. EIO0000000058 10/2013 89

NOTE: TARGET_VELOCITY value is obtained by the following equation: Nb pulses x Gear x 60 / 131072. To know the Lexium 05 drive movement angle in degree regarding the position degree = Nb Pulses x ratio x 360 (1 turn) / 131072 To know the Lexium 05 drive movement speed regarding the Drive s Velocity Frequency = Frequency Value x ratio x 60 / 131072 Fmax x Ratio = 131072 x Vmax / 60 so the Ratio (Gear) = 131072 x Vmax / 60 x Fmax (Fmax (e.g. 200 khz) must correspond to the drive s Vmax (e.g. 3500 rpm) Since gear hasn t been modified in our Lexium 05 configuration, it has the default value of 1. This value can be modified with PowerSuite or on the HMI. 90 EIO0000000058 10/2013

Sorting the Product At a Glance This part of the program is the low speed sorting of the product part. EIO0000000058 10/2013 91

Program Using the same programming method as in Process Initializing (see page 85) Command 2: Push the item to sort at low velocity. 92 EIO0000000058 10/2013

Temporisation and Position Reinitialization At a Glance This part of the program is the dwell time and move back movement. EIO0000000058 10/2013 93

Program Using the same programming method as in Process Initializing. (seepage85) Command 3: Back to starting position. 94 EIO0000000058 10/2013

This part of the program checks the overall sorting operation result. EIO0000000058 10/2013 95

Transferring the Project between the Terminal and the PLC At a Glance Transferring a project allows you to copy the current project from the terminal to the current PLC s memory (PLC that has its address selected). Project Analysis and Generation To perform analysis and generation of a project at the same time, carry out the following actions: Step Action 1 Activate the Rebuild All Project command in the Build menu. Result: the project is analyzed and generated by the software. 2 Any errors detected are displayed in the information window at the bottom of your screen. Project Backup To back up the project, carry out the following actions: Step Action 1 Activate the Save As command in the File menu. 2 If necessary, select the directory to which the project will be saved (disk and path). 3 Enter the file name: PTO_JackExample. 4 Confirm with Save. Result: the project is saved as PTO_JackExample.STU. 96 EIO0000000058 10/2013

Transferring the Project to the PLC You must carry out the following actions to transfer the current project to a PLC: Step Action 1 Use the PLC Define the address command. Enter SYS if you are using a USB media that is directly connected from the PC (terminal) to the PLC. 2 Switch to online mode using the PLC Connection command. 3 Activate the PLC Transfer Project to PLC command. Result: the screen used to transfer the project between the terminal and the PLC is displayed: 4 Activate the Transfer command. 5 If the project has not been generated in advance, the screen below will be displayed allowing you to generate it before the transfer (Rebuild All then Transfer) or interrupt the transfer (Cancel Transfer). 6 Transfer progress is displayed on screen. At any moment, you can interrupt the transfer by using the Esc key. In this case, the PLC project will be invalid. Note: In the event that the project is transferred to a Flash Eprom memory card, the transfer can take several minutes. EIO0000000058 10/2013 97

98 EIO0000000058 10/2013

Modicon M340 EIO0000000058 10/2013 Chapter 9 Example Diagnostic and Debugging Example Diagnostic and Debugging Overview This chapter describes available tools for diagnosing and debugging the application. What Is in This Chapter? This chapter contains the following topics: Topic Page Using Data via the Animation Tables 100 Using Data via the Operator Screens 102 EIO0000000058 10/2013 99

Using Data via the Animation Tables At a Glance The animation table is the Unity Pro basic tool for viewing and forcing the status of variables. NOTE: Unity Pro also offers a graphic tool called Operator Screens which is designed to facilitate use of the application. (see MFB for Modicon M340 Using Unity Pro, Start-up Guide) An animation table is divided into 3 areas that include: the Mode area the Command area the Display area Animation table: Creating an Animation Table The table below presents the procedure for creating an animation table: Step Action 1 Right-click on the Animation Tables directory in the project browser. Result: the contextual menu is displayed. 2 Select New Animation Table. Result: a table properties window is displayed. 3 Click on OK to create the table, which is given a default name. Result: the animation table is displayed. 100 EIO0000000058 10/2013

Adding Data to the Animation Table The table below presents the procedure for creating data to view or force in the animation table: Step Action 1 In the Table window, click on the empty line in the Name column. 2 There are two possible ways of adding data: Enter the variable name directly Click on the icon to display the instance selection window in order to select the variable 3 Enter or select the R1CH0 variable and expand it. Result: the animation table looks like this. EIO0000000058 10/2013 101

Using Data via the Operator Screens At a Glance When a project is created without input cards, output cards or supervision, the Unity Pro operator screen (associated with unlocated bits and words) allows to carry out initial debugging of the program. In this example, the operator screen is used to: View adjustment data Write new adjustment parameters Send a command View status data Stop the program Clear axis errors 102 EIO0000000058 10/2013

Representation The representation below symbolizes the operating example which is used to control the axis and indicates the variables to be assigned to the objects (push button, LED and text): EIO0000000058 10/2013 103

104 EIO0000000058 10/2013

Modicon M340 EIO0000000058 10/2013 Part III PTO Function PTO Function Overview This part describes the features related to Unity Pro for the BMX MSP 0200 PTO module. What Is in This Part? This part contains the following chapters: Chapter Chapter Name Page 10 Configuration parameters 107 11 Programming Features 117 12 Adjustment 207 13 Diagnostic and debugging the BMX MSP 0200 PTO module 213 14 The Language Objects of the PTO Function 229 15 Limitations and Performances 247 EIO0000000058 10/2013 105

106 EIO0000000058 10/2013

Modicon M340 EIO0000000058 10/2013 Chapter 10 Configuration parameters Configuration parameters Overview This chapter deals with the parameters necessary for configuring the BMX MSP 0200. What Is in This Chapter? This chapter contains the following topics: Topic Page Configuration Screen for the BMX MSP 0200 PTO Module 108 Position Control Mode Configuration 110 Programmable Input Filtering 112 Event Sending to Application 114 EIO0000000058 10/2013 107

Configuration Screen for the BMX MSP 0200 PTO Module At a Glance This section presents the configuration screen for BMX MSP 0200 PTO Module Illustration The figure below presents the configuration screen of the BMX MSP 0200 PTO Module in pulse train output mode : 108 EIO0000000058 10/2013

Description of the Screen The following table presents the various parts of the above screen: Number Element Function 1 Tab The tab in the foreground indicates the current mode. The current mode is therefore the configuration mode in this example. 2 Label field This field contains the name of each variable that may be configured. This field may not be modified. 3 Symbol field This field contains the address of the variable in the application. This field may not be modified. 4 Value field This field contains a drop-down menu containing all the possible values and the user may then select or directly write the required value of the variable. 5 Unit field This field contains the unit of each variable that may be configured. This field may not be modified. NOTE: Refer to the desired function (seepage131) in order to properly configure the BMX MSP 0200 PTO module EIO0000000058 10/2013 109

Position Control Mode Configuration At a Glance The configuration of a PTO module is stored in the configuration constants (%KW). The parameters r,m and c shown in the following tables represent the topological addressing of the module. Each parameter has the following signification: r: represents the rack number, m: represents the position of the module on the rack, c: represents the channel number. Configuration Objects The table below presents the position control mode configurable elements. Number Address in the configuration Configurable values Output Mode %KWr.m.c.1(low byte) Pulse + Direction (default value) CW/CCW A/B Phases Pulse + Direction - Reverse CW/CCW - Reverse A/B Phases - Reverse Power Supply Fault %KWr.m.c.1.8 General I/O Fault (default) Local Output Fault %KWr.m.c.1.9 General I/O Fault (default) Local Drive Ready & Emergency Input Filter Counter in position Input Filter %KWr.m.c.2(low byte) Without (default) Low Medium High %KWr.m.c.2(high byte) Without (default) Low Medium High Origin Input Filter %KWr.m.c.3(low byte) Without (default) Low Medium High Proximity&LimitSwitch Input Filter %KWr.m.c.3(high byte) Without (default) Low Medium High Acc / Dec Unit %KWr.m.c.1.12 ms (default) Hz/2ms 110 EIO0000000058 10/2013

Number Address in the configuration Configurable values Max Acceleration %KWr.m.c.4 10 to 32,500 (default value = 32,500) Max Deceleration %KWr.m.c.5 10 to 32,500 (default value = 32,500) Max Frequency %KDr.m.c.6 0 to 200,000 (default value = 200,000) SW Max High Limit %KDr.m.c.8-2,147,483,647 to 2,147,483,647 (default value = 2,147,483,647) SW Min Low Limit %KDr.m.c.10-2,147,483,648 to 2,147,483,646 (default value = 2,147,483,648) Homing Type %KWr.m.c.12 Short Cam (default) Long Cam Positive Long Cam Negative Short Cam with Positive Limit Short Cam with Negative Limit Short Cam with Marker Homing I/O Settings %KWr.m.c.1.10-11 No I/O used (default) With Counter Clear Output With Counter in Position Input Event %KWr.m.c.0 (high byte) Disable (default) Enable Event number %KWr.m.c.0 (high byte) Event Nb (Default: First free EVT) NOTE: For better accuracy of the PTO, set Acc/Dec parameter to Hz/2ms. NOTE: Physical output are refreshed when PLC is in RUN state only.in STOP state, previous value are maintained. EIO0000000058 10/2013 111

Programmable Input Filtering Overivew Each of the BMX MSP 0200 PTO module inputs allows input filtering. There are four levels of filtering available (low, medium, high and none), that can be configured in the configuration screen, as shown: 112 EIO0000000058 10/2013

Description The filtering used is a programmable bounce filter, which operates as follows: Bounce rejection diagram In bounce rejection mode, the system delays all transitions until the signal remains stable for the duration defined for the filter level. Bounce rejection levels Input Filter Level Min Pulse Drive_Ready&Emergency, Counter_In_Position Proximity&LimitSwitch used as LimitSwitch Origin, Proximity&LimitSwitch used for homing No filter Low (For Bounces > 2 khz) Medium (For Bounces > 1 khz) High (For Bounces > 250 Hz) No filter Low (For Bounces > 2 khz) Medium (For Bounces > 1 khz) High (For Bounces > 250 Hz) No filter Low (For Bounces > 2 khz) Medium (For Bounces > 1 khz) High (For Bounces > 250 Hz) 2.3 ms 2.7 ms 3.5 ms 6.3 ms 2.1 ms 2.45 ms 3.25 ms 6.3 ms 60 μs 450 μs 1.25 ms 4.1 ms For each input, the bounce level to be applied is independently configurable by the user through the configuration parameters %KWr.m.c.2 and %KWr.m.c.3. EIO0000000058 10/2013 113

Event Sending to Application Summary The PTO channels can send events to the application. To do so in UnityPro configuration screen, enable the event functionality and specify the number of the event task that will be triggered. PTO channels support 2 sources of events: Position reached Referencing done All the events sent by the unit, regardless of the source, call the same single event task in the PLC. There is only one type of event signaled per call. The source producing the call is determined in the event task via the Event Sources variable (%IWr.m.c.12). This variable is updated at the beginning of the event task processing. NOTE: It is not recommended to send new PTO commands in Event Task, as they may be rejected. Enabling A source will produce its events if the corresponding enable bit is set to 1. This event source enabling is done through the implicit command object %QWr.m.c.0. Any event occurring while its source is disabled will be lost. When the source is enabled again, only new event occurrences will be produced. Object Type Symbol Value %QWr.m.c.0 INT Enable Evt Source One bit per source 1: Enable / 0: Disable x0 bit Position reached x1 bit Referencing done Limitations Each PTO channel can produce a maximum of one event per 2 ms, but this flow may be slowed by the simultaneous transmission of events by several units on the rack bus. NOTE: It is not recommended to send new PTO commands in Event Task, as they may be rejected. 114 EIO0000000058 10/2013

Special Input Interface The event has a unique input interface; this is only updated at the beginning of event task processing. This interface includes: Events Source variable (%Iwr.m.c.12). Position: the current position on event time. EIO0000000058 10/2013 115

116 EIO0000000058 10/2013

Modicon M340 EIO0000000058 10/2013 Chapter 11 Programming Features Programming Features Overview This chapter describes the programming features associated to the BMX MSP 0200. What Is in This Chapter? This chapter contains the following sections: Section Topic Page 11.1 General Command Programming 118 11.2 Positioning Function Description 131 EIO0000000058 10/2013 117

Section 11.1 General Command Programming General Command Programming Overview This section deals with general programming features concerning the BMX MSP 0200 motion functions. What Is in This Section? This section contains the following topics: Topic Page Elementary function description 119 Command Mechanism 120 Motion Command Using FBD 121 Motion Command using Write_CMD 123 Command Mechanism Sending Rules 124 Parameter Description 125 Sequence of commands 128 Axis Status Information 130 118 EIO0000000058 10/2013

Elementary function description Elementary Functions There are 6 basic Motion Commands, which are sent by explicit exchanges: FrequencyGenerator (see page 133) MoveVelocity (see page 139) MoveAbsolute (see page 156) MoveRelative (seepage161) Homing (see page 187) SetPosition (see page 201) NOTE: The Stop command is sent by implicit exchanges. (see page 203) EIO0000000058 10/2013 119

Command Mechanism Overview There are two ways to send motion commands (other than Stop) from the user application: Using the specific Elementary Functions (EFs), in the Unity library Using the WRITE_CMD instruction PTO Elementary Functions The PTO EF family contains 6 instructions: Name Input CH Input 1 Input 2 Input 3 unsigned short FrequencyGenerator ANY_IODDT %CH DINT Target_Frequency unsigned short MoveVelocity ANY_IODDT %CH DINT Target_Velocity unsigned short MoveAbsolute ANY_IODDT %CH DINT Target_Position unsigned short MoveRelative ANY_IODDT %CH DINT Target_Distance DINT Target_Velocity DINT Target_Velocity unsigned short Homing ANY_IODDT %CH DINT Position DINT Velocity unsigned short SetPosition ANY_IODDT %CH DINT Position BYTE BufferMode BYTE BufferMode Stop Command There is a specific mechanism to send Stop commands, which uses implicit exchanges. When the axis needs to be stopped, the specific implicit command object: "Stop Level" (%Qr.m.c.2) must be set to 1. A Stop command takes precedence over any other motion commands: any command sent while the axis is stopping will be rejected. 120 EIO0000000058 10/2013

Motion Command Using FBD At a Glance The first way to send a motion command is by using the specific Elementary Functions (EFs), in the Unity library For example: the EF MoveAbsolute EN/ENO Pins In order to make the EN and ENO pin appear in the FBD representation double click on the FBD representation (or right click and select properties) and check the Show EN/ENO checkbox. EN and ENO are general pins used by all EFs. The ENO pin is computed only if EN is set to 1, otherwise its value is undefined. The output pin CMD_NB is computed internally. There are 3 different cases: If the command has been correctly sent and accepted, this object will give a command number (between 0x01 and 0x7F), and can be used to follow the status of the command through the implicit status objects (%IWr.m.c.0 to %IWr.m.c.5). The ENO output of the EF is set to 1. If the command has been correctly sent but rejected, CMD_NB takes the value of the command number for the first 7 bits, but its most significant bit will be set to 1 (value between 0x81 and 0xFF). The ENO output of the EF is set to 1 If the command has been incorrectly sent, CMD_NB will remain at 0. The ENO output of the EF is set to 0 In the last two cases, an error notification will be reported through the CMD_ERR system object (%MWr.m.c.1.1). EIO0000000058 10/2013 121

NOTE: It is necessary to have EN set to 1 to change command parameter values. WARNING UNEXPECTED PARAMETER CHANGES Command parameters will change on each PLC cycle if EN is set to 1. Add a rising edge detection (R_Trig) as shown on the diagram below: Failure to follow these instructions can result in death, serious injury, or equipment damage. Other Pins The input pins correspond to all command parameters associated with this specific command. (except the command code) When the command is sent through the PTO EF, the %MWr.m.c.13 object takes the same value as CMD_NB. 122 EIO0000000058 10/2013

Motion Command using Write_CMD At a Glance It is also possible to directly write the parameter values into the corresponding %MWCmd objects and then trigger the execution of the motion command by sending a WRITE_CMD instruction. Description The behavior is similar to the one with EFs. However, it is necessary to specify what kind of command is to be executed with the command code byte. If this parameter is not valid, the command will be rejected and the detected error will be reported in the CMD_CODE_INV status object (%MWr.m.c.3.2). When sending a command through WRITE_CMD, the command object %MWr.m.c.13 is computed internally. Its behavior is exactly the same as the CMD_NB output pin of the EF when the command is sent by EF. This mechanism can be used to send motion commands from Unity Operator Screens (see Unity Pro, Operating Modes), which can t be done with only EFs. NOTE: A command example, written in ST representation is given for each EF. (seepage131) EIO0000000058 10/2013 123

Command Mechanism Sending Rules At a Glance Independent of the method used to send a command, certain constraints must be taken into account: Only one command can be sent at a time (at most one command per PLC cycle). The previous command needs to be received by the channel before sending a new one. Any command sent while another one is being exchanged with the channel will be ignored. The availability can be checked on the bus rack through the system bit CMD_IN_PROGR (%MWr.m.c.0.1). The channel can receive two commands in succession. One will be executed, while the second is in buffer, waiting for the first one to be completed. This is valid for positioning commands only, and the chosen buffer mode must be Buffered or BlendingPrevious. When a command is being executed, and another one is already in buffer, the channel cannot accept a third command. Check the availability of the channel before sending any command. If a command is sent while the channel is not available, it will be rejected, all commands in the channel will be aborted, the axis will be stopped and the corresponding error notification will be reported in the BUFFER_FULL status object (%MWr.m.c.3.4). Module Availability to Commands The value of implicit status objects: Idle and FreeCmdBuf allows to check if the module is available for a new command. The following table details the different cases: Idle FreeCmdBuf Meaning 0 0 Two cases: A command is being sent A command is being executed, and another one is in buffer In both cases, no command should be sent. 0 1 A command is being executed, but the command buffer is free. A new command can be sent and will be kept in the command buffer; FreeCmdBuf is set to 0. 1 0 No significance 1 1 The buffer is free and no command is being executed. A new command can be sent. 124 EIO0000000058 10/2013

Parameter Description Overview Each command has its related command parameters, setting parameters and adjustment parameters (refer to each function for more details). Command Parameters Command parameters can be set in the application: directly in the interface objects, previous to executing the Write_Cmd instruction by executing EFs NOTE: Sending a new command of the same type aborts the active command. NOTE: It is not possible to modify the command parameters of a Homing command, since it does not support the succession of several commands. (see page 124) Setting Parameters Setting Parameters are only managed through the Unity Pro configuration tool. Adjustment Parameters Adjustment Parameters are managed through the Unity Pro Adjust tool. They can be read by executing the Read_Param instruction and their initial values can be set to their current values by executing the Save_Param instruction. They can be set by modifying %M.. objects and executing the Write_Param instruction executing the Restore_Param instruction to set them to their initial values. When accessing the Adjustment Parameters: through the IODDTs or the Adjustment screen, it is possible to directly write the unsigned values. through their topological addresses, only signed types are accepted. Converting the unsigned value into a signed value before writing in the %MWr.m.c object is necessary. If Adjustment Parameters are changed while the PTO channel is running, this change will take effect on next commands. EIO0000000058 10/2013 125

Limit Parameters These are objects used to define valid ranges of values for command parameters. Configuration Parameters Object Type Symbol Description %KWr.m.c.4 UINT Max Acceleration Acceleration Rate Maximum Value %KWr.m.c.5 UINT Max Deceleration Deceleration Rate Maximum Value %KDr.m.c.6 UDINT Max Frequency Maximum Frequency (in Hz) %KDr.m.c.8 DINT SW Max High Limit Software Pulse Number Maximum High Limit %KDr.m.c.10 DINT SW Min Low Limit Software Pulse Number Minimum Low Limit Adjustment Parameters Object Type Symbol Description %MDr.m.c.14 UDINT SW High Limit Software Pulse Number High Limit %MDr.m.c.16 UDINT SW Low Limit Software Pulse Number Low Limit Any command sent with parameters that are inconsistent with the specified limits will be rejected. 126 EIO0000000058 10/2013

Constraints on Configuration and Adjustment Parameters: The following rules of consistency between configuration and adjustment parameters must be observed: SW High Limit SW Max High Limit SW Max High Limit > SW Min Low Limit SW High Limit > SW Low Limit SW Low Limit SW Min Low Limit Start Frequency Max Frequency Stop Frequency Max Frequency Homing Velocity Max Frequency Start Frequency Homing Velocity if Start Frequency enabled Stop Frequency Homing Velocity if Stop Frequency enabled Acceleration Rate Max Acceleration Deceleration Rate Max Deceleration Emergency Deceleration Rate Max Deceleration If a setting parameter or initial parameter does not respect one of these rules, the configuration will not be accepted. NOTE: Unity Pro Initial parameters respect all the rule above. If an adjustment with an invalid parameter is set: The parameter will be rejected The previous values will be maintained The detected error will be reported in the ADJUST_FLT status word (%MWr.m.c.4) EIO0000000058 10/2013 127

Sequence of commands Motion State Diagram Any sequence of commands must respect the following state diagram: 128 EIO0000000058 10/2013

Allowed Sequence of Commands The PTO channel can accept the following sequence of command: Next Command No Command Current Command Frequency Generator Move Velocity Move Absolute Move Relative Homing Set Position No Command Reject Reject Reject Reject Reject Reject Reject Frequency Accept Accept Accept Accept Accept Reject Reject Generator MoveVelocity Accept Accept Accept Accept Accept Reject Reject MoveAbsolute Accept Accept Accept Accept Accept Reject Reject (Abort) MoveAbsolute (Buffered/Blending) MoveRelative (Abort) MoveRelative (Buffered/Blending) Accept Reject Reject Accept Accept Reject Reject Accept Accept Accept Accept Accept Reject Reject Accept Reject Reject Accept Accept Reject Reject Homing Accept Reject Reject Reject Reject Reject Reject SetPosition Accept Reject Reject Reject Reject Reject Reject Reject: The sequence of commands described in the cell is not supported. The new command will be rejected. All commands in progress will be aborted, the axis will be stopped and an error notification will be reported in the CMD_SEQ_INV status object (%MWr.m.c.3.3). Accept: The sequence of commands described in the cell is supported. The new command is accepted. Its execution starts either immediately, or after the completion of current command, depending upon the set buffer mode. The BufferMode command parameter is used to determine how a sequence of commands will be executed: Abort: the new command aborts the current command. Buffered: the new command is executed after the current command is completed. BlendingPrevious: the two commands are merged at the target velocity of the first command. For each buffer mode, the behavior is detailed in MoveRelative description. (seepage161) EIO0000000058 10/2013 129

Axis Status Information At a Glance In order to know which PLCopen state the axis is in, check the value of the AXIS_STS object (%IWr.m.c.6). Axis Status This word does not describe all the PLCopen states that appear in the state diagram, but it indicates which of the following 4 states the axis is in: STANDSTILL state is described with the following set of information: STOPPING state is described with the following set of information: ERROR_STOP state is described with the following set of information: Command in execution. This is not a PLCopen state but includes several of them. It is described with the following set of information: bit0 (MOVING) = 0 bit1 (STOPPING) = 0 bit3 (AXIS_FLT) = 0 %IWr.m.c.0 = 0 & %IWr.m.c.7.bit0 = 1 (no command in execution) %IWr.m.c.1 = 0 & %IWr.m.c.7.bit1 = 1 (no command in buffer) bit1 (STOPPING) = 1 bit3 (AXIS_FLT) = 0 %IWr.m.c.0 = 0 & %IWr.m.c.7.bit0 = 1 (no command in execution) %IWr.m.c.1 = 0 & %IWr.m.c.7.bit1 = 1 (no command in buffer) bit1 (STOPPING) = 1 bit3 (AXIS_FLT) = 1 %IWr.m.c.0 = 0 & %IWr.m.c.7.bit0 = 1 (no command in execution) %IWr.m.c.1 = 0 & %IWr.m.c.7.bit1 = 1 (no command in buffer) bit1 (STOPPING) = 0 bit3 (AXIS_FLT) = 0 %IWr.m.c.0 0 & %IWr.m.c.7.bit0 = 0 (command in execution) bit0 (MOVING) = 1 This word (%IWr.m.c.0) indicates the exact PLCopen state: Each command sent has an allocated number and can be read through the CMD_SENT_NB (%MWr.m.c.13) object or the EF output. Knowing these two numbers, it is possible to identify which command and which type of profile is currently being executed and which state the axis is in (CONTINUOUS MOTION, DISCRETE MOTION and HOMING). This information can also be obtained using the Cmd_Status function. (seepage204) NOTE: When Drive_Enable is disabled, the axis referenced bit is cleared and any command can be accepted. 130 EIO0000000058 10/2013

Section 11.2 Positioning Function Description Positioning Function Description Overview The BMX MSP 0200 can use a library of 7 basic Motion Commands which are described in this section. What Is in This Section? This section contains the following topics: Topic Page Frequency Generator 133 Frequency Generator Complex Profile 136 Move Velocity 139 Move Velocity Complex Profile 1 142 Move Velocity Complex Profile 2 145 Move Velocity Complex Profile 3 148 Move Velocity Complex Profile 4 151 Absolute Positioning: Move Absolute 156 Relative Positioning: Move Relative 161 Positioning Complex Profile 1 166 Positioning Complex Profile 2 169 Positioning Buffer Mode Management 172 Positioning Buffer Mode Abort Case 173 Positioning Buffer Mode Buffered Case 177 Positioning Buffer Mode Case of BlendingPrevious 181 Homing 187 General Homing Features 192 Homing Mode: Short Cam 193 Homing Mode: Long Cam Positive 194 Homing Mode: Long Cam Negative 195 Homing Profile: Short Cam with Positive Limit 196 Homing Mode: Short Cam with Negative Limit 198 Homing Mode: Short Cam with Marker 200 Set Position 201 EIO0000000058 10/2013 131

Topic Page STOP 203 Command Status Follow-Up 204 132 EIO0000000058 10/2013

Frequency Generator Description The PTO channel provides a pulse output signal at a specified frequency. Physical Inputs/Output Input/Output Drive_Ready&Emergency input (optional) Proximity&LimitSwitch input (optional) Drive_Enable output Description The pulse output is generated as long as a current goes through Drive_Ready&Emergency input. (see page 223) Used as a LimitSwitch. (see page 223) To be connected to the corresponding input of the drive. Enables the drive when active. This output is directly controlled through an implicit command object (%Qr.m.c.0). Configuration Parameters Parameter PTO Output Mode Valid Values Value 0: Pulse + Direction (Default) Value 1: CW/CCW Value 2: A/B Phases Value 3: Pulse + Direction Reverse Value 4: CW/CCW Reverse Value 5: A/B Phases Reverse EIO0000000058 10/2013 133

FBD Representation Representation: LD Representation Representation: WARNING UNINTENDED APPLICATION BEHAVIOR-COMMAND SENT ON EACH PLC CYCLE Commands will be sent on every PLC cycle if EN is set to 1. (see page 121) Failure to follow these instructions can result in death, serious injury, or equipment damage. Representation in IL Representation: FREQUENCYGENERATOR (CH := (*ANY_IODDT*), TARGET_FREQUENCY := (*DINT*)) ST (*BYTE*) 134 EIO0000000058 10/2013

Representation in ST Representation: (*BYTE*) := FREQUENCYGENERATOR (CH := (*ANY_IODDT*), TARGET_FREQUENCY := (*DINT*)); Command example using the WRITE_CMD command mechanism in ST representation: if (ChangeFreq = True) then %CH0.1.0.CMD_CODE := 1; %CH0.1.0.TGT_VELOCITY := 5000; WRITE_CMD(%CH0.1.0); ChangeFreq := False; end_if; Command Specific Parameters Parameter Target Velocity (in Hz) Valid Values -200 khz to 200 khz Absolute value limited by Max Frequency Overall Parameters This table describes all the functional parameters associated to the function. Explicit Command Parameters Setting Parameters Adjustment Parameters Address Parameter Address Parameter Address Parameter %MWr.m.c.6 (byte 0) Command Code (=1) %KWr.m.c.1(byte 0) Output Mode %MWr.m.c.25 Hysteresis %MDr.m.c.10 Target Frequency %KDr.m.c.6 Max Frequency EIO0000000058 10/2013 135

Frequency Generator Complex Profile At a Glance When a frequency generator command is running, it is possible to modify the target frequency, such as shown by the figure below: Frequency generator - change of frequency 136 EIO0000000058 10/2013

FBD program Program to obtain the above profile: Cmd_Status is the command status follow up function. (see page 204) EIO0000000058 10/2013 137

Time Diagram Time diagram of the frequency generators Input / Output 138 EIO0000000058 10/2013

Move Velocity Description This function is used to generate a pulse output at a specified frequency, by reaching this frequency smoothly through an acceleration ramp. Physical Inputs/Output Input/Output Drive_Ready&Emergency input (optional) Proximity&LimitSwitch input (optional) Drive_Enable output: Description The pulse output is generated as long as a current goes through Drive_Ready&Emergency input. (see page 223) Used as LimitSwitch. (see page 223) To be connected to the corresponding input of the drive. Enables the drive when active. This output is directly controlled by the user through an implicit command object (%Qr.m.c.0). Configuration Parameters Parameter PTO Output Mode Acceleration / Deceleration Unit Valid Values Value 0: Pulse + Direction (Default) Value 1: CW/CCW Value 2: A/B Phases Value 3: Pulse + Direction Reverse Value 4: CW/CCW Reverse Value 5: A/B Phases Reverse ms or Hz/2ms Default is ms EIO0000000058 10/2013 139

Representation in FBD Representation: Representation in LD Representation: WARNING UNINTENDED APPLICATION BEHAVIOR-COMMAND SENT ON EACH PLC CYCLE Commands will be sent on every PLC cycle if EN is set to 1. (see page 121) Failure to follow these instructions can result in death, serious injury, or equipment damage. Representation in IL Representation: MOVEVELOCITY (CH := (*ANY_IODDT*), TARGET_VELOCITY := (*DINT*)) ST (*BYTE*) 140 EIO0000000058 10/2013

Representation in ST Representation: (*BYTE*) := MOVEVELOCITY (CH := (*ANY_IODDT*), TARGET_VELOCITY := (*DINT*)); Command example using the WRITE_CMD command mechanism in ST representation: if (ChangeVel = True) then %CH0.1.0.CMD_CODE := 2; %CH0.1.0.TGT_VELOCITY := 5000; WRITE_CMD(%CH0.1.0); ChangeVel := False; end_if; Command Specific Parameters Parameter Target Velocity (in Hz) Valid Values -200 khz to 200 khz Absolute value limited by Max Frequency Adjustment Parameters Parameter Start Frequency (in Hz) Stop Frequency (in Hz) Acceleration Rate Deceleration Rate Emergency Deceleration Rate Valid Values 0 Hz to 65,535 Hz, default is 0Hz, limited by Max Frequency 0 Hz to 65,535 Hz, default is 0Hz, limited by Max Frequency 10 to 32,500, default is 100, limited by Max Acceleration 10 to 32,500, default is 100, limited by Max Deceleration 10 to 32,500, default is 100, limited by Max Deceleration Overall Parameters This table describes all the functional parameters associated to the function. Explicit Command Parameters Setting Parameters Adjustment Parameters Address Parameter Address Parameter Address Parameter %MWr.m.c.6 (byte 0) Command Code (=2) %KWr.m.c.1(byte 0) Output Mode %MWr.m.c.18 Start Frequency %MDr.m.c.10 Target Velocity %KWr.m.c.1(byte 12) Acc/Dec Unit %MWr.m.c.19 Stop Frequency %KWr.m.c.4 Acc Max %MWr.m.c.20 Acceleration Rate %KWr.m.c.5 Dec Max %MWr.m.c.21 Deceleration Rate %KDr.m.c.6 FMax %MWr.m.c.25 Hysteresis EIO0000000058 10/2013 141

Move Velocity Complex Profile 1 At a Glance When a velocity profile is being output, it is possible to modify the target velocity to a higher or a lower value, such as shown by the figures below: MoveVelocity - change of velocity 142 EIO0000000058 10/2013

FBD Program Program to obtain the profile Cmd_Status is the command status follow up function. (see page 204) EIO0000000058 10/2013 143

Time Diagram Time diagram of the MOVEVELOCITY Input / Output 144 EIO0000000058 10/2013

Move Velocity Complex Profile 2 At a Glance If the first target velocity has not been reached, the target velocity can be changed during acceleration/deceleration phase): EIO0000000058 10/2013 145

FBD Program Program to obtain the profile Cmd_Status is the command status follow up (see page 204) function. 146 EIO0000000058 10/2013

Time Diagram This is the time diagram of the MOVEVELOCITY Input / Output: EIO0000000058 10/2013 147

Move Velocity Complex Profile 3 At a Glance If the new target velocity is lower than the previous one, there will be a deceleration ramp. 148 EIO0000000058 10/2013

FBD Program Program to obtain the profile Cmd_Status is the command status follow up function. (see page 204) EIO0000000058 10/2013 149

Time Diagram This is the time diagram of the MOVEVELOCITY Input / Output: 150 EIO0000000058 10/2013

Move Velocity Complex Profile 4 At a Glance If a velocity profile is being output, a new continuous motion command can be sent to the channel and abort the current command, whether the target velocity has been reached or not. The new command can be: Case 1: a velocity profile command with possible different acceleration/deceleration rates: Case 2: a FrequencyGenerator command: EIO0000000058 10/2013 151

FBD Program Case 1 Program to obtain the profile in case 1: 152 EIO0000000058 10/2013

Time Diagram Case 1 Time diagram of the MoveVelocity Input / Output for case 1: EIO0000000058 10/2013 153

FBD Program Case 2 Program to obtain the profile in case 2: 154 EIO0000000058 10/2013

Time Diagram Case 2 Time diagram of the MoveVelocity Input / Output for case 2: EIO0000000058 10/2013 155

Absolute Positioning: Move Absolute Description This function is used to manage a complete movement of the axis from the current position to a specified target position. The target position is directly specified with its coordinate, in pulses, relative to a previously set origin. The velocity of the axis will follow a trapezoidal profile: NOTE: No absolute positioning command can be performed while "REFERENCED" is low. Any absolute positioning command sent while REFERENCED is low will be rejected and an error notification is reported in the CMD_FLT status word (%MWr.m.c.3.5). "REFERENCED" is an implicit bit (%IWr.m.c.6.7) which reports information on whether the axis is referenced or not.this bit will be set to 1 by the module when a referencing command (Homing or SetPosition) is completed It will return to 0: Each time synchronization is lost between the PTO channel and the drive (Drive_Ready input is off.) At the beginning of each new homing command. 156 EIO0000000058 10/2013

Physical Inputs/Output Input/Output Drive_Ready&Emergency input (optional) Description The pulse output is generated as long as a current goes through Drive_Ready&Emergency input. (seepage223) Proximity&LimitSwitch input (optional) Used as a LimitSwitch. (see page 223) Counter_in_Position input (optional) Only for information. Input from the drive goes high when positioning movement is completed (the drive s error counter is empty). Drive_Enable output: To be connected to the corresponding input of the drive. Enables the drive when active. This output is directly controlled by the user through an implicit command object (%Qr.m.c.0). Configuration Parameters Parameter PTO Output Mode Acceleration / Deceleration Unit Valid Values Value 0: Pulse + Direction (Default) Value 1: CW/CCW Value 2: A/B Phases Value 3: Pulse + Direction Reverse Value 4: CW/CCW Reverse Value 5: A/B Phases Reverse ms or Hz/2ms Default is ms Representation in FBD Representation: EIO0000000058 10/2013 157

Representation in LD Representation: WARNING UNINTENDED APPLICATION BEHAVIOR-COMMAND SENT ON EACH PLC CYCLE Commands will be sent on every PLC cycle if EN is set to 1. (see page 121) Failure to follow these instructions can result in death, serious injury, or equipment damage. Representation in IL Representation: MOVEABSOLUTE (CH := (*ANY_IODDT*), TARGET_POSITION := (*DINT*), TARGET_VELOCITY := (*DINT*), BUFFERMODE := (*BYTE*)) ST (*BYTE*) Representation in ST Representation: (*BYTE*) := MOVEABSOLUTE (CH := (*ANY_IODDT*), TARGET_POSITION := (*DINT*), TARGET_VELOCITY := (*DINT*), BUFFERMODE := (*BYTE*)); Command example using the WRITE_CMD command mechanism in ST representation: if (ChangePos = True) then %CH0.1.0.CMD_CODE := 3; %CH0.1.0.TGT_VELOCITY := 5000; %CH0.1.0.TGT_POSITION := 50000; %CH0.1.0.BUFFER_MODE :=1; WRITE_CMD(%CH0.1.0); ChangePos := False; end_if; 158 EIO0000000058 10/2013

Command Specific Parameters Parameter Valid Values Target position (in pulses) - 2,147,483,648 to 2,147,483,647 Must be enclosed between SW Low Limit and SW High Limit Target Velocity (in Hz) 1 Hz to 200 khz Absolute value limited by Max Frequency Buffer mode Value 0: Abort Value 1: Buffered Value 2: BlendingPrevious Parameters Parameter Valid Values Hysteresis (Slack) 0 to 255 pulses, default is 0 For A/B Phase output mode only (Normal or Reverse) Start Frequency (in Hz) 0 Hz to 65,535 Hz Default is 0Hz, limited by Max Frequency Stop Frequency (in Hz) 0 Hz to 65,535 Hz Default is 0Hz, limited by Max Frequency Acceleration Rate 10 to 32,500, default is 100, limited by Max Acceleration Deceleration Rate 10 to 32,500 Default is 100, limited by Max Deceleration Emergency Deceleration Rate 10 to 32,500 Default is 100, limited by Max Deceleration Software High Limit (in pulses) -2,147,483,647 to 2,147,483,647 Default is 2,147,483,647 Must be between SW Low Limit and SW Max High Limit Software Low Limit (in pulses) -2,147,483,648 to 2,147,483,646 Default is - 2,147,483,648 Must be enclosed between SW Min Low Limit and SW High Limit EIO0000000058 10/2013 159

Debugging Parameters This table describes all the functional parameters associated to the function. Explicit Command Parameters Setting Parameters Adjustment Parameters Address Parameter Address Parameter Address Parameter %MWr.m.c.6 (byte 0) Command Code (=3) %KWr.m.c.1 (byte 0) Output Mode %MWr.m.c.18 Start Frequency %MDr.m.c.10 Target Velocity %KWr.m.c.1 (byte 12) Acc/Dec Unit %MWr.m.c.19 Stop Frequency %KWr.m.c.4 Acc Max %MWr.m.c.20 Acceleration Rate %KWr.m.c.5 Dec Max %MWr.m.c.21 Deceleration Rate %KDr.m.c.6 FMax %MWr.m.c.25 Hysteresis Special cases If the set target velocity cannot be reached before attaining the target position, the axis velocity will then follow a triangular profile: Complex Profiles Complex profiles for MOVEABSOLUTE Position are the same as for MOVERELATIVE 160 EIO0000000058 10/2013

Relative Positioning: Move Relative Description This function is used to manage a complete movement of the axis from the current position to a specified target position. The target position is directly specified by its distance, in pulses, from the current position of the axis at the time of execution. The velocity of the axis will follow a trapezoidal profile: NOTE: If a move relative command is sent while the axis is not referenced, the command is accepted and the position is first set to 0 before executing the command. However, the axis remains unreferenced. Physical Inputs/Output Input/Output Drive_Ready&Emergency input (optional) Proximity&LimitSwitch input (optional) Counter_in_Position input (optional) Enable_Drive output: Description The pulse output is generated as long as a current goes through Drive_Ready&Emergency input. (see page 223) Used as a LimitSwitch. (see page 223) Only for information. Input from the drive goes high when positioning movement is completed (the drive s error counter is empty). To be connected to the corresponding input of the drive. Enables the drive when active. This output is directly controlled by the user through an implicit command object (%Qr.m.c.0). EIO0000000058 10/2013 161

Configuration Parameters Parameter PTO Output Mode Acceleration / Deceleration Unit Valid Values Value 0: Pulse + Direction (Default) Value 1: CW/CCW Value 2: A/B Phases Value 3: Pulse + Direction Reverse Value 4: CW/CCW Reverse Value 5: A/B Phases Reverse ms or Hz/2ms Default is ms Representation in FBD Representation: Representation in LD Representation: 162 EIO0000000058 10/2013

WARNING UNINTENDED APPLICATION BEHAVIOR-COMMAND SENT ON EACH PLC CYCLE Commands will be sent on every PLC cycle if EN is set to 1. (see page 121) Failure to follow these instructions can result in death, serious injury, or equipment damage. Representation in IL Representation: MOVERELATIVE (CH := (*ANY_IODDT*), TARGET_DISTANCE := (*DINT*), TARGET_VELOCITY := (*DINT*), BUFFERMODE := (*BYTE*)) ST (*BYTE*) Representation in ST Representation: (*BYTE*) := MOVERELATIVE (CH := (*ANY_IODDT*), TARGET_DISTANCE := (*DINT*), TARGET_VELOCITY := (*DINT*), BUFFERMODE := (*BYTE*)); Command example using the WRITE_CMD command mechanism in ST representation: if (ChangePos = True) then %CH0.1.0.CMD_CODE := 4; %CH0.1.0.TGT_VELOCITY := 5000; %CH0.1.0.TGT_POSITION := 50000; %CH0.1.0.BUFFER_MODE :=1; WRITE_CMD(%CH0.1.0); ChangePos := False; end_if; Command Specific Parameters Parameter Valid Values Target Distance (in pulses) - 2,147,483,648 to 2,147,483,647 Must be enclosed between SW Low Limit and SW High Limit Target Velocity (in Hz) 1 Hz to 200 khz Absolute value limited by Max Frequency Buffer mode Value 0: Abort Value 1: Buffered Value 2: BlendingPrevious EIO0000000058 10/2013 163

Adjustment Parameters Parameter Valid Values Hysteresis (Slack) 0 to 255 pulses, default is 0 For A/B Phase output mode only (Normal or Reverse) Start Frequency (in Hz) 0 Hz to 65,535 Hz Default is 0Hz, limited by Max Frequency Stop Frequency (in Hz) 0 Hz to 65,535 Hz default is 0Hz, limited by Max Frequency Acceleration Rate 10 to 32,500 Default is 100, limited by Max Acceleration Deceleration Rate 10 to 32,500 Default is 100, limited by Max Deceleration Emergency Deceleration Rate 10 to 32,500 Default is 100, limited by Max Deceleration Software High Limit (in pulses) -2,147,483,647 to 2,147,483,647 Default is 2,147,483,647 Must be between SW Low Limit and SW Max High Limit Software Low Limit (in pulses) -2,147,483,648 to 2,147,483,646 Default is - 2,147,483,648 Must be enclosed between SW Min Low Limit and SW High Limit Overall Parameters This table describes all the functional parameters associated to the function. Explicit Command Parameters Setting Parameters Adjustment Parameters Address Parameter Address Parameter Address Parameter %MWr.m.c.6 (byte 0) %MWr.m.c.7 (byte 0) Command Code (=4) %KWr.m.c.1 (byte 0) Output Mode %MWr.m.c.18 Start Frequency Buffer Mode %KWr.m.c.1 (byte 12) Acc/Dec Unit %MWr.m.c.19 Stop Frequency %MDr.m.c.8 Target Distance %KWr.m.c.4 Acc Max %MWr.m.c.20 Acceleration Rate %MDr.m.c.10 Target Velocity %KWr.m.c.5 Dec Max %MWr.m.c.21 Deceleration Rate %KDr.m.c.6 FMax %MWr.m.c.25 Hysteresis 164 EIO0000000058 10/2013

Special cases If the set target velocity cannot be reached before attaining the target position, the axis velocity will then follow a triangular profile: EIO0000000058 10/2013 165

Positioning Complex Profile 1 At a Glance While executing a positioning command, it is possible to modify the target position on the fly: 166 EIO0000000058 10/2013

FBD Program Program to obtain the above profile Cmd_Status is the command status follow up (see page 204) function. EIO0000000058 10/2013 167

Time Diagram Time diagram of the MOVERELATIVE Input / Output: 168 EIO0000000058 10/2013

Positioning Complex Profile 2 At a Glance In some cases, the axis has already gone past the new target position, this will require the axis to stop and change direction: EIO0000000058 10/2013 169

FBD Diagram Program to obtain the above profile Cmd_Status is the command status follow up function. (see page 204) 170 EIO0000000058 10/2013

Time Diagram Time diagram of the MOVERELATIVE Input / Output: EIO0000000058 10/2013 171

Positioning Buffer Mode Management At a Glance While a positioning command is running, it is possible to send a new command. The sequence of those two commands can be managed in three different ways according to the BufferMode parameter of the new command: Abort: the new command aborts the previous one and is executed immediately. Buffered: the new command is put into a buffer and executed only once the current command is completed. The current command ends normally (stops when reaching the target position). BlendingPrevious: the new command is put into a buffer and executed only once the target position of the current command is reached. However, the axis does not stop between both commands and the velocity is blended with the target velocity of the current command (see diagram below). 172 EIO0000000058 10/2013

Positioning Buffer Mode Abort Case At a Glance The new command aborts the previous one and is executed immediately. Case of Abortion EIO0000000058 10/2013 173

FBD Program Program to obtain the above profile 174 EIO0000000058 10/2013

Cmd_Status is the command status follow up function. (see page 204) EIO0000000058 10/2013 175

Time Diagram Time diagram of the MOVERELATIVE Input / Output: 176 EIO0000000058 10/2013

Positioning Buffer Mode Buffered Case At a Glance The new command is put into a buffer and executed only after the current command is completed. The current command ends normally (stops when reaching the target position). Case of Bufferizing EIO0000000058 10/2013 177

FBD Program Program to obtain the above profil 178 EIO0000000058 10/2013

Cmd_Status is the command status follow up function. (see page 204) EIO0000000058 10/2013 179

Time Diagram Time diagram of the MOVERELATIVE Input / Output 180 EIO0000000058 10/2013

Positioning Buffer Mode Case of BlendingPrevious At a Glance For the BlendingPrevious buffer mode, there can be two different cases: the second command is received during the acceleration or constant velocity phase of the previous command the second command is received during the stopping phase of the previous command 1 st Case Overview The new command is received by the PTO module during the acceleration phase or constant velocity phase of the previous command. As soon as the first target position is reached, the execution of the second command starts at the Target_Velocity of the previous command: If there was no second command, the frequency profile would have followed the thick dotted line. EIO0000000058 10/2013 181

1 st Case FBD Diagram Program to obtain the above profile 182 EIO0000000058 10/2013

Cmd_Status is the command status follow up function. (see page 204) NOTE: Program conditions for short movements: When sending commands for short movements, please respect the following conditions: PLC cycle time 5 ms t MOVE_1 2 x PLC cycle time t < t MOVE_1 Where t is the time between two MOVE commands are sent to the PTO function. In the example program, t is the Preset delay time of the TON instance. EIO0000000058 10/2013 183

1 st Case Time Diagram Time diagram of the MOVERELATIVE Input / Output 184 EIO0000000058 10/2013

2 nd Case Overview If the new command is received by the PTO channel during the stopping phase of the previous command, the sequence of the two commands is executed as "Buffered". EIO0000000058 10/2013 185

2 nd Case Time Diagram Time diagram of the MOVERELATIVE Input / Output 186 EIO0000000058 10/2013

Homing Description This function commands the axis to search for a reference point set by input signals, and to stop at this reference point. When the homing sequence is completed: The reference point s coordinate is set to the position value (parameter of the homing command) The channel "REFERENCED" status bit is set to 1 which activates software limits if not disabled. There are different homing modes, depending on the physical configuration of the controlled machine. The mode to be used is chosen via the "Homing Type" parameter (cf. description of each type below). Physical Inputs/Outputs Input/Output Drive_Ready&Emergency input (optional) Proximity&LimitSwitch input (optional) Counter_in_Position input (optional) Origin Input Drive_Enable output: Counter_Clear output Description The pulse output is generated as long as a current goes through Drive_Ready&Emergency input. (see page 223) This input can be used in two ways: as proximity signal for the homing profile and detailed below within the description of each homing mode: as a LimitSwitch. (see page 223) For information, input from the drive goes high when positioning movement is completed (the drive s error counter is empty). According to configuration, this input can also be used for the homing process. See below Homing I/O Settings description. Detailed within the description of each homing mode. To be connected to the corresponding input of the drive. Enables the drive when active. This output is directly controlled via an implicit command object (%Qr.m.c.0). See Homing I/O Settings description To be connected to the corresponding input of the drive. Orders a reset of the drive internal error counter EIO0000000058 10/2013 187

Configuration Parameters Parameter PTO Output Mode Acceleration / Deceleration Unit Homing Type Homing I/O Settings Valid Values Value 0: Pulse + Direction (Default) Value 1: CW/CCW Value 2: A/B Phases Value 3: Pulse + Direction Reverse Value 4: CW/CCW Reverse Value 5: A/B Phases Reverse ms or Hz/2ms Default is ms Value 0: Short Cam (Default) Value 1: Long Cam Positive Value 2: Long Cam Negative Value 3: Short Cam with Positive Limit Value 4: Short Cam with Negative Limit Value 5: Short Cam with Marker Value 0: No I/O used (Default) Value 1: With Counter_Clear Output Value 2: With Counter_in_Position Input Representation in FBD Representation: 188 EIO0000000058 10/2013

Representation in LD Representation: WARNING UNINTENDED APPLICATION BEHAVIOR-COMMAND SENT ON EACH PLC CYCLE Commands will be sent on every PLC cycle if EN is set to 1. (see page 121) Failure to follow these instructions can result in death, serious injury, or equipment damage. Representation in IL Representation: HOMING (CH := (*ANY_IODDT*), POSITION := (*DINT*), VELOCITY := (*DINT*)) ST (*BYTE*) Representation in ST Representation: (*BYTE*) := HOMING (CH := (*ANY_IODDT*), POSITION := (*DINT*), VELOCITY := (*DINT*)); Command Specific Parameters Parameter Valid Values Target position (in pulses) - 2,147,483,648 to 2,147,483,647 Must be enclosed between SW Low Limit and SW High Limit Velocity (in Hz) -200 khz to 200 khz ( 0) Absolute value limited by Max Frequency EIO0000000058 10/2013 189

Adjusment Parameters Parameter Hysteresis (Slack) Start Frequency (in Hz) Stop Frequency (in Hz) Valid Values 0 to 255 pulses Default is 0 For A/B Phase output mode only (Normal or Reverse) 0 Hz to 65,535 Hz Default is 0Hz, limited by Max Frequency 0 Hz to 65,535 Hz Default is 0Hz, limited by Max Frequency Acceleration Rate 10 to 32,500 Default is 100, limited by Max Acceleration Deceleration Rate 10 to 32,500 Default is 100, limited by Max Deceleration Emergency Deceleration Rate 10 to 32,500 Default is 100, limited by Max Deceleration Software High Limit (in pulses) -2,147,483,647 to 2,147,483,647 Default is 2,147,483,647 Must be between SW Low Limit and SW Max High Limit Software Low Limit (in pulses) -2,147,483,648 to 2,147,483,646 Default is - 2,147,483,647 Must be enclosed between SW Min Low Limit and SW High Limit Homing Velocity (in Hz) 1 Hz to 65,535 Hz Default is 1Hz, limited by Max Frequency Must be Start Frequency (if enabled) Must be Stop Frequency (if enabled) Homing Time Out Value 0 to 65,535 ms Default is 65,535 ms NOTE: For a detailed explanation on how to keep consistency between parameters, please refer to parameter description section. (see page 125) 190 EIO0000000058 10/2013

Overall Parameters Explicit Command Parameters Setting Parameters Adjustment Parameters Adress Parameter Adress Parameter Adress Parameter %MWr.m.c.6 (byte 0) Command CodeValue (=5) %MDr.m.c.8 Target Position %KWr.m.c.1 (byte 10 & 11) %KWr.m.c.1 (byte 0) Output Mode %MDr.m.c.14 SW High Limit Homing I/O Settings %MDr.m.c.16 SW Low Limit %MDr.m.c.10 Target Velocity %KWr.m.c.1 (byte 12) Acc/Dec Unit %MWr.m.c.18 Start Frequency %KWr.m.c.4 Acc Max %MWr.m.c.19 Stop Frequency %KWr.m.c.5 Dec Max %MWr.m.c.20 Acceleration Rate %KDr.m.c.6 FMax %MWr.m.c.21 Deceleration Rate %KDr.m.c.8 SW Max High Limit %MWr.m.c.23 Homing Velocity %KDr.m.c.10 SW Min Low Limit %MWr.m.c.24 Homing Time Out Value %KWr.m.c.12 Homing Type %MWr.m.c.25 Hysteresis EIO0000000058 10/2013 191

General Homing Features At a Glance There are 6 homing modes: Short Cam (see page 193) Long Cam Positive (see page 194) Long Cam Negative (see page 195) Short Cam with Positive Limit (see page 196) Short Cam with Negative Limit (see page 198) Short Cam with Marker (see page 200) Each homing mode has two velocities: a high velocity, which is set as a command parameter (Velocity), and a low velocity, used to get to the referenced point, set by adjustment (Homing Velocity). Homing I/O Settings Homing I/O settings When the Counter_Clear output is enabled (value 1): In order to synchronize the PTO channel and the drive, a pulse is sent on the Counter_Clear output. When the homing condition is reached, the channel s internal counter is set to the specified position value and the output frequency is stopped. The channel "REFERENCED" status bit is then set to 1. When the Counter_in_Position input is enabled (value 2): After the homing condition is reached, the output frequency is stopped. In order to synchronize the PTO channel and the PTO drive, the homing command remains running (BUSY state) until a rising edge of the Counter_in_Position input is detected. The channel s internal counter is then set to the specified position value and the channel "REFERENCED" status bit is set to 1. A homing function error is reported if Counter_in_Position remains low after a certain duration (time-out value to be configured in setting parameters) by rising the HOMING_FLT bit (%MWr.m.c.5.4) and the AXIS_FLT bit (%IWr.m.c.6.3). When no specific I/O are used for the homing process (value 0): When the homing condition is reached, the channel s internal counter is set to the specified position value and the output frequency is stopped. The channel "REFERENCED" status bit is then set to 1. Synchronization between the PTO channel and the PTO drive cannot be assumed because the end of the homing process is defined internally in the module, independently from any feedback from the drive. For all homing modes described in the following sections, the direction (FORWARD, BACKWARD) is given by the sign of Velocity, specified in the homing command. 192 EIO0000000058 10/2013

Homing Mode: Short Cam Short Cam In the Short Cam homing mode, the reference point is preset at the negative side of the cam, when coming in positive direction (off cam) at low velocity. Inputs used: The Short Cam homing mode only uses the Origin input (Cam). Detected errors that can be encountered: If a limit is bypassed and detected with Proximity&LimitSwitch input (if not disabled), the detected error is reported in the LIMIT_FLT status object (%MWr.m.c.5.1). If the axis is already on the cam at start, the homing function will not be executed and the detected error is reported in the HOMING_FLT status object (%MWr.m.c.5.4). If Drive_Ready&Emergency goes off (if not disabled), the detected error is reported in the DRIVE_KO status object (%MWr.m.c.5.0). The detected errors are also reported in the AXIS_FLT implicit status object (%IWr.m.c.6.3). EIO0000000058 10/2013 193

Homing Mode: Long Cam Positive Long Cam Positive In Long Cam Positive homing mode, the reference point is preset at the negative side of the cam, when coming in negative direction (from the cam) at low velocity. Inputs used: The Long Cam Positive homing mode only uses the Origin input (Cam). Detected errors that can be encountered: If a limit is bypassed and detected with Proximity&LimitSwitch input (if not disabled), the detected error is reported in the LIMIT_FLT status object (%MWr.m.c.5.1). If the axis is off the cam and direction is set backward (negative velocity), the homing function will not be executed and the detected error will be reported in the HOMING_FLT status object (%MWr.m.c.5.4). If Drive_Ready&Emergency goes off (if not disabled), the detected error is reported in the DRIVE_KO status object (%MWr.m.c.5.0). The detected errors are also reported in the AXIS_FLT implicit status object (%IWr.m.c.6.3). 194 EIO0000000058 10/2013

Homing Mode: Long Cam Negative Long Cam Negative In the Long Cam Negative homing mode, the reference point is preset at the positive side of the cam, when coming in positive direction (from the cam) at low velocity. Inputs used: The Long Cam Negative homing mode only uses the Origin input (Cam). Errors that can be encountered: If a limit is bypassed and detected with Proximity&LimitSwitch input (if not disabled), an error is reported in the LIMIT_FLT status object (%MWr.m.c.5.1). If the axis is off the cam and direction is set forward (positive velocity), the homing function will not be executed and an error will be reported in the HOMING_FLT status object (%MWr.m.c.5.4). If Drive_Ready&Emergency goes off (if not disabled), an error is reported in the DRIVE_KO status object (%MWr.m.c.5.0). The error is also reported in the AXIS_FLT implicit status object (%IWr.m.c.6.3). EIO0000000058 10/2013 195

Homing Profile: Short Cam with Positive Limit Short Cam with Positive Limit In the Short Cam with Positive Limit homing mode, the reference point is preset at the negative side of the cam, when coming in positive direction (off cam) at low velocity. The Short Cam with Positive Limit homing mode uses the two homing-specific inputs: The Proximity&LimitSwitch input: used as the positive limit signal. On the rising edge of the signal (negative side), the axis decelerates to change direction. The Origin (Cam) input. 196 EIO0000000058 10/2013

Detected errors that can be encountered: If the axis is already on the cam at start, the homing function will not be executed and the detected error is reported in the HOMING_FLT status object (%MWr.m.c.5.4). When the axis is inside the working area (delimited by LimitSwitch signal) and direction is set backward (negative velocity), the homing function will not be executed and the detected error will be reported in the HOMING_FLT status object (%MWr.m.c.5.4). If Drive_Ready&Emergency goes off (if not disabled and Drive_Enable output is active), the detected error is reported in the DRIVE_KO status object (%MWr.m.c.5.0). The detected errors are also reported in the AXIS_FLT implicit status object (%IWr.m.c.6.3). NOTE: During the homing process, the Proximity&LimitSwitch input will not be used as Limit Switch (no detection of limit crossing). For any other command, this input can still be used as Limit Switch input. EIO0000000058 10/2013 197

Homing Mode: Short Cam with Negative Limit Short Cam with Negative Limit In the Short Cam with Negative Limit homing mode, the reference point is preset at the negative side of the cam, when coming in positive direction (off cam) at low velocity. 198 EIO0000000058 10/2013

The Short Cam with Negative Limit homing mode uses the two homing-specific inputs: The Proximity&LimitSwitch input: used as the negative limit signal. On the rising edge of the signal (positive side), the axis decelerates to change direction. The Origin (Cam) input. Detected errors that can be encountered: If the axis is already on the cam at start, the homing function will not be executed and the detected error is reported in the HOMING_FLT status object (%MWr.m.c.5.4). When the axis is inside the working area (delimited by LimitSwitch signal) and direction is set forward (positive velocity), the homing function will not be executed and the detected error will be reported in the HOMING_FLT status object (%MWr.m.c.5.4). If Drive_Ready&Emergency goes off (if not disabled and Drive_Enable output is active), the detected error is reported in the DRIVE_KO status object (%MWr.m.c.5.0). The detected errors are also reported in the AXIS_FLT implicit status object (%IWr.m.c.6.3). NOTE: During the homing process, the Proximity&LimitSwitch input will not be used as Limit Switch (no detection of limit crossing). For any other command, this input can still be used as Limit Switch input. EIO0000000058 10/2013 199

Homing Mode: Short Cam with Marker Short Cam with Marker In the Short Cam with Marker homing mode, the reference point is preset at the negative side of the zero marker, when coming in positive direction at low velocity. The Short Cam with Zero Marker homing mode uses the two homing-specific inputs: The Proximity&LimitSwitch input: used as the proximity signal. On the falling edge of the signal, the axis decelerates to change direction. The Origin input used as Zero Marker signal. The detected errors that can be encountered: If Drive_Ready&Emergency goes off (if not disabled and Drive_Enable output is active), the detected error is reported in the DRIVE_KO status object (%MWr.m.c.5.0). The detected errors are also reported in the AXIS_FLT implicit status object (%IWr.m.c.6.3). Limit crossing detection: The Proximity&LimitSwitch input can not be used as a Limit Switch input, either for homing commands or any other command. Instead use the Drive_Ready&Emergency input in order to detect a limit-crossing event. (see page 32) 200 EIO0000000058 10/2013

Set Position Description Contrary to the other motion functions, this function does not impact the physical pulse outputs of the channel, and does not generate any motion profiles. Like the homing function, it defines an origin and a reference position of the axis by assigning an absolute coordinate to the current position of the axis and setting to 1 the channel "REFERENCED" status bit. This function can only be used when the axis is in STANDSTILL state. Physical Inputs/Output Input/Output Counter_Clear output Description To be connected to the corresponding input of the drive. When the Counter_Clear output is enabled, the Set Position function also orders the drive to reset its internal counter. Configuration Parameters Parameter Homing I/O Settings Valid Values Value 0: No I/O used (Default) Value 1: With Counter_Clear Output Value 2: With Counter_in_Position Input: not used with SetPosition command. Representation in FBD Representation: EIO0000000058 10/2013 201

Representation in LD Representation: WARNING UNINTENDED APPLICATION BEHAVIOR-COMMAND SENT ON EACH PLC CYCLE Commands will be sent on every PLC cycle if EN is set to 1. (see page 121) Failure to follow these instructions can result in death, serious injury, or equipment damage. Representation in IL Representation: (*BYTE*) := SETPOSITION (CH := (*ANY_IODDT*), POSITION := (*DINT*)); Representation in ST Representation: SETPOSITION (CH := (*ANY_IODDT*), POSITION := (*DINT*)) ST (*BYTE*) Command example using the WRITE_CMD command mechanism in ST representation: if (SetPos = True) then %CH0.1.0.CMD_CODE := 6; %CH0.1.0.TGT_POSITION := 50000; WRITE_CMD(%CH0.1.0); SetPos := False; end_if; Command Specific Parameters Parameter Position (in Pulses) Valid Values - 2,147,483,648 to 2,147,483,647 (Enclosed between SW Low Limit and SW High Limit) 202 EIO0000000058 10/2013

STOP Description Whatever the motion in progress, and at whatever stage of the movement, the user can order the axis to stop, smoothly, by going through a deceleration phase. It is also possible to STOP the axis by setting to 0 the Drive ENABLE command, then the moving part is forced to stop through a deceleration phase (equal to Stop command) Configuration Parameters Parameter PTO Output Mode Deceleration Unit Valid Values Value 0: Pulse + Direction (Default) Value 1: CW/CCW Value 2: A/B Phases Value 3: Pulse + Direction Reverse Value 4: CW/CCW Reverse Value 5: A/B Phases Reverse ms (default) or Hz/2ms Representation The stop function does not have any program representation, it can be activated via the debugging screen (see page 216) (Stop Level Cmd %Qr.m.c.2). Adjustment Parameters Parameter Stop Frequency (in Hz) Deceleration Rate Emergency Deceleration Rate Valid Values 0 Hz to 65,535 Hz, default is 0 Hz, limited by Max Frequency 10 to 32,500, default is 100, limited by Max Deceleration 10 to 32,500, default is 100, limited by Max Deceleration EIO0000000058 10/2013 203

Command Status Follow-Up Description There are two ways for the user to get the information about the status of a command: directly through the implicit objects %IWr.m.c.0 to %IWr.m.c.5. via the Cmd_Status DFB Representation in FBD Representation: NOTE: The command status follow-up is the only PTO function which doesn t need to be enabled (via EN input) in FBD representation. NOTICE UNINTENDED EQUIPMENT OPERATION Link the motion bloc output to the CMB_NB input of the CMB_status DFB through an intermediate static byte value. Failure to follow these instructions can result in equipment damage. 204 EIO0000000058 10/2013

Representation in LD Representation: Representation in IL Representation: CAL FBI_x (Channel := (*T_PTO_BMX*), Cmd_Nb := (*BYTE*), Done => (*BOOL*), Busy => (*BOOL*), Active => (*BOOL*), CommandAborted => (*BOOL*), Error => (*BOOL*)) where x is a number. Representation in ST Representation: FBI_x (Channel := (*T_PTO_BMX*), Cmd_Nb := (*BYTE*), Done => (*BOOL*), Busy => (*BOOL*), Active => (*BOOL*), CommandAborted => (*BOOL*),Error => (*BOOL*)); where x is a number. EIO0000000058 10/2013 205

Input/Output Description Inputs description: Name Type Description Channel T_PTO_BMX The IODDT of the PTO channel to which the command has been sent. This pin is also repeated as an output of the block. Cmd_Nb BYTE The number of the command. This object corresponds either to: The output of a PTO EF The CMD_SENT_NB (%MWr.m.c.13) object converted to BYTE type - after use of the WRITE_CMD instruction. Outputs description: Name Type Description Done BOOL The command has been executed and completed successfully Busy BOOL The command has been accepted by the PTO channel but is not completed yet. Active BOOL The command is being executed. CommandAborted BOOL The command has been aborted before completion. Error BOOL An error has been detected before the command completion. The boolean outputs "Done", "Busy", "CommandAborted" and "Error" indicate the current status of the command. As required by the PLCopen standard, these outputs are mutually exclusive: only one will be set TRUE at a given time. NOTE: If Cmd_Nb is different from 0, at least one of these outputs will be TRUE, except during one PLC cycle when all outputs will be FALSE, immediatly after the Cmb_Nb input value is modified. For buffered commands: when the command is in buffer (not yet in execution), Busy is TRUE. when the command is being executed, Active is TRUE. For non-buffered commands, the values for Active and Busy are TRUE when the command is being executed. NOTE: The DFB outputs will remain unchanged as long as there is no change in the status of the specified command or up to the moment the command number is re-used by another command. If, after a periode of time a new command is sent that has the same command number, the outputs of the DFB will then change to reflect the status of this new command. 206 EIO0000000058 10/2013

Modicon M340 EIO0000000058 10/2013 Chapter 12 Adjustment Adjustment Overview This chapter provides necessary information to adjust the BMX MSP 0200 module. What Is in This Chapter? This chapter contains the following topics: Topic Page Adjust Screen for BMX MSP 0200 PTO module 208 Position Control Mode Adjustment 211 Slack Correction 212 EIO0000000058 10/2013 207

Adjust Screen for BMX MSP 0200 PTO module At a Glance This section presents the adjust screen for the BMX MSP 0200 PTO module. Illustration The figure below presents the adjust screen offline for the BMX MSP 0200 PTO module in position control mode: 208 EIO0000000058 10/2013

The figure below presents the adjust screen online for the BMX MSP 0200 PTO module in position control mode: EIO0000000058 10/2013 209

Description of the Screen The following table presents the various parts of the above screen: Number Element Function 1 Label field This field contains the name of each variable that may be adjusted. This field cannot be modified. 2 Tab The tab in the foreground indicates the current mode. The current mode is therefore the adjust mode in this example. 3 Symbol field This field contains the mnemonics of the variable. This field cannot be modified. 4 Initial value field This field displays the value of the variable that has been adjusted in the "value" column in offline mode. 5 Value field The function of this field depends on the mode in which the user is working: In offline mode: initial value of the variable can be adjusted. In online mode: the current value of the variable can be displayed and adjusted. Modifying a value requires a validation action. 6 Unit field This field contains the unit of each variable that may be configured. This field cannot be modified. 210 EIO0000000058 10/2013

Position Control Mode Adjustment At a Glance The adjustment values of a BMX MSP 0200 PTO module are stored in 2 areas: %MWadjust for current values, %KP for initial values. The parameters r,m and c shown in the following tables represent the topological addressing of the module. Each parameter has the following signification: r: represents the rack number, m:represents the position of the module on the rack, c: represents the channel number. Adjustment Objects The table below presents the position control mode configurable elements. Number Address in the configuration Configurable values SW High Limit %MDr.m.c.14-2,147,483,647 to 2,147,483,647 (default value = 2,147,483,6437 or SW Max High Limit if lower) SW Low Limit %MDr.m.c.16-2,147,483,648 to 2,147,483,646 (default value = 2,147,483,648 or SW Min Low Limit if higher) Use Start Frequency %MWr.m.c.18 Disable (default) Enable Start Frequency %MWr.m.c.18 1 to 65,535 (default 1) Use Stop Frequency %MWr.m.c.19 Disable (default) Enable Stop Frequency %MWr.m.c.19 1 to 65,535 (default 1) Acceleration Rate %MWr.m.c.20 10 to 32,500 (default value = 100 or Max Acceleration if lower) Deceleration Rate %MWr.m.c.21 10 to 32,500 (default value = 100 or Max Deceleration if lower) Emergency %MWr.m.c.22 10 to 32,500 (default value = 100 or Max Deceleration if lower) Deceleration Rate Homing Velocity %MWr.m.c.23 1 to 65,535 (default 1) Homing Time Out %MWr.m.c.24 1 to 65,535 (default 65,535) Value Hysteresis (Slack) %MWr.m.c.25 0 to 255 (default value = 0) The values have value restrictions that needs to be respected. (see page 125) EIO0000000058 10/2013 211

Slack Correction At a Glance The adjustment parameter Hysteresis (Slack) is used to define the number of output pulses to ignore from the position after every change of direction. Configuration Procedure To apply a slack correction, it is necessary to follow this procedure in order to configure it properly: Step: Action: 1 Set the Slack Correction value and validate the change. The Slack Correction will be activated if value is different than 0. 2 Before sending a command, it is necessary to reference the axis (SETPOSITION is not enought). 3 The system will automatically take in account the slack value for the following commands. Illustration When the configured pulse output mode is A/B phases (either normal or reverse), a hysteresis can be applied when changing direction. The behavior will then be as follows: Slack correction: 212 EIO0000000058 10/2013

Modicon M340 EIO0000000058 10/2013 Chapter 13 Diagnostic and debugging the BMX MSP 0200 PTO module Diagnostic and debugging the BMX MSP 0200 PTO module At a Glance This chapter provides necessary information to diagnose and debug the BMX MSP 0200 module. What Is in This Chapter? This chapter contains the following topics: Topic Page Debug Screen for BMX MSP 0200 PTO Module 214 Debugging Parameter Description 216 Diagnostic Screen for the BMX MSP 0200 PTO module 219 Diagnostic Parameters Description 221 Management of Detected Errors 223 EIO0000000058 10/2013 213

Debug Screen for BMX MSP 0200 PTO Module At a Glance This section presents the debug screen for BMX MSP 0200 PTO module. A module s debug screen can only be accessed in online mode. Illustration The screen presents the debug screen for the BMX MPS 0200 PTO module: 214 EIO0000000058 10/2013

Description of the Screen The following table presents the various parts of the above screen: Number Element Function 1 Reference field This field contains the address of the variable in the application. This field may not be modified. 2 Label field This field contains the name of each variable that may be configured. This field may not be modified. 3 Tab The tab in the foreground indicates the current mode. The current mode is therefore the debug mode in this example. 4 Symbol field This field contains the mnemonics of the variable. This field may not be modified. 5 Value field This field contains a drop-down menu containing all the possible values. If there is no downward pointing arrow, this field simply displays the current value of the variable. EIO0000000058 10/2013 215

Debugging Parameter Description Overview This is a description af the parameters found on the debugging screen on Unity Pro. Possible Actions Different actions are possible with language interface objects 216 EIO0000000058 10/2013

Value Table This table describes all the debugging elements with their default value. Label Address in configuration Type Internal values Default value Current Position %IDr.m.c.8 Num Signed 0 Current Frequency %IDr.m.c.10 Num Signed 0 Command in progress %IWr.m.c.0 Num Unsigned 0 Pending command %IWr.m.c.1 Num Unsigned 0 Last command %IWr.m.c.2 Num Unsigned 0 Result of last command %IWr.m.c.3 List Done N/A Error Aborted N/A Previous command %IWr.m.c.4 Num 0 Result of previous command %IWr.m.c.5 List Done Error Aborted N/A Command busy %IWr.m.c.7.0 Binary Yes(0)/No(1) No Command pending %IWr.m.c.7.1 Binary Yes(0)/No(1) No Axis Moving %IWr.m.c.6.0 Binary Yes(1)/No(0) No Axis Stopping %IWr.m.c.6.1 Binary Yes(1)/No(0) No Axis in fault %IWr.m.c.6.3 Binary Yes(1)/No(0) No Axis in Velocity %IWr.m.c.6.6 Binary Yes(1)/No(0) No Axis referenced %IWr.m.c.6.7 Binary Yes(1)/No(0) No Drive Ready&Emergency Input %Ir.m.c.0 Binary 0/1 0 Counter in Position Input %Ir.m.c.1 Binary 0/1 0 Origin Input %Ir.m.c.2 Binary 0/1 0 Proximity & LimitSwitch Input %Ir.m.c.3 Binary 0/1 0 Drive Enable Output State %Ir.m.c.4 Binary 0/1 0 Drive Enable Output Cmd %Qr.m.c.0 Binary 0/1 0 Counter Clear Output State %Ir.m.c.5 Binary 0/1 0 Counter Clear Output Cmd %Qr.m.c.1 Binary 0/1 0 Stop Level Cmd %Qr.m.c.2 Binary 0/1 0 N/A EIO0000000058 10/2013 217

Label Address in configuration Type Internal values Default value Reset Axis Error Cmd %Qr.m.c.3 Binary 0/1 0 Disable Drive KO Fault %QWr.m.c.1.0 Binary Yes(1)/No(0) No Disable LimitSwitch Fault %QWr.m.c.1.1 Binary Yes(1)/No(0) No Disable SW Limit Fault %QWr.m.c.1.2 Binary Yes(1)/No(0) No 218 EIO0000000058 10/2013

Diagnostic Screen for the BMX MSP 0200 PTO module At a Glance This section presents the diagnostic screen for the BMX MSP 0200 PTO module. A module s diagnostic screen may only be accessed in online mode unlike other modules for M340, the PTO module diagnostic screen is accessible even if CH_ERROR = 0. Illustration The figure below presents the Diagnostic Screen for the BMX MSP 0200 PTO module in position control mode. EIO0000000058 10/2013 219