background image

4. PLC interface MCP1 

Festo GDCP-CMXR-F-EN 0909a  

27 

successful 

 

SREG.LOADED is set and shows that at least one program 

has been loaded. 

Loading a further program with positive confirmation 

Condition 

 

SREG.ACK is set and shows that the loading procedure was 

successful 

 

SREG.LOADED stays set and shows that at least one program 

has been loaded. 

Loading first program with negative confirmation 

Condition 

 

SREG.NACK is set and shows that the loading procedure was 

not successful. 

 

SREG.LOADED stays FALSE 

 

SREG.ERROR shows present error 

Loading a further program with negative confirmation 

Condition 

 

SREG.NACK is set and shows that the loading procedure was 

not successful 

 

SREG.LOADED stays set and shows that at least one program 

has been loaded. 

 

SREG.ERROR shows present error. 

Signal curves: Loading first program with positive confirmation: 

 

Min. 1 prg. loaded  

SREG2.B7 LOADED 

 

1

 Requirements: 

ACK and NACK = 0 

2

 Rising edge at “Load 

program” loads the new 

program number N 

 Condition: 

Program is error free and 

can be loaded. 

3

 The LOAD output must 

carry 1-signal for as long as 

it takes until the ACK input 

also reports 1-signal. 

4

 As soon as ACK = 1 has 

been recognised by the 

PLC, it may reset LOAD to 0. 

The CMXR reacts with 

a falling edge at ACK. 

5

 As soon as ACK = 0 has 

Acknowledge 

SREG2.B5 NACK 

Load/reset Ack 

SREG2.B4 ACK 

Load the program 

CREG2.B7 LOAD 

Req. prg number 

Output data 

Summary of Contents for CMXR-C1

Page 1: ...Beschneiden Oben 61 5 mm Unten 61 5 mm Links 43 5 mm Rechts 43 5 mm Controller Description PLC interface Type CMXR C1 Description 560 328 en 0909a 748 998...

Page 2: ......

Page 3: ...ngen Federal Republic of Germany 2009 Internet http www festo com E mail service_international festo com The reproduction distribution and utilization of this document as well as the communication of...

Page 4: ...e File saved at Consec no Description Index of revisions Date of amendment 001 First edition en 0805NH 09 07 08 002 Revision en 0909a 02 09 09 Trademarks Microsoft Windows Registered trademark of Micr...

Page 5: ...4 3 2 Control signals in the PROFIBUS data packet 17 4 3 3 Status signals in the PROFIBUS data packet 19 4 4 Function of the PLC interface MCP1 21 4 4 1 Watchdog 21 4 4 2 Error active 21 4 4 3 Messag...

Page 6: ...38 5 3 1 Return values 38 6 Communication variables 39 6 1 Position variables 39 6 1 1 Access from the robot program 39 6 1 2 Interface format 39 6 2 Reference system variables 40 6 2 1 Access from th...

Page 7: ...the corresponding CECX analogue input output module GDCC CECX C 2G2 Assembly installation and commissioning instructions for the corresponding encoder interface GDCC CDCX G PB S V0 Assembly installat...

Page 8: ...1 General 8 Festo GDCP CMXR F EN 0909a 1 3 Service Please consult your local Festo repair service if you have any technical problems...

Page 9: ...omation technology matching their field of activity 2 1 Safety instructions on handling The modules used in the system are sensitive against electrostatic discharge in a dismantled state Caution Assem...

Page 10: ...nuals Provide the load and operating voltage as a circuit with limited energy as per IEC DIN EN 61131 2 and always make sure there is fuse protection with max 10 A The 24 V supply for the equipment mu...

Page 11: ...n This document is intended for users and programmers of the CMXR multi axis control system Warning The CMXR C1 multi axis control system is not designed for safety relevant control tasks e g shutdown...

Page 12: ...ndant can be connected for all methods Operation without external control not covered here see the system manual Controlled by a higher level control system via digital inputs and outputs with MotionC...

Page 13: ...iption of the three I O modules BasicIO Signal Name Function Control sovereignty required Description DO 0 doutError CMXR error active No 4 4 2 DO 1 Reserved DO 2 doutAutoSelected Automatic operation...

Page 14: ...o System manual DO 3 DRREF Drives referenced No System manual DO 4 ACCENA Write access not assigned No 4 4 6 DO 5 WRACC Write access received Yes 4 4 6 DO 6 ERROR Error is active No 4 4 2 DO 7 WDBIT W...

Page 15: ...No 4 4 11 ff DO 6 RUNNING Program is running No 4 4 11 ff DO 7 LOADED Program is loaded No 4 4 11 ff DI 0 PRGNR Bit0 Selection of program no Yes DI 1 PRGNR Bit1 Selection of program no Yes DI 2 PRGNR...

Page 16: ...ted Automatic operation mode set No 4 4 10 DO 3 doutManSelected Manual operation mode set No 4 4 10 DO 4 Unassigned For free use DO 5 Unassigned For free use DO 6 Unassigned For free use DO 7 Unassign...

Page 17: ...VR CJOG EDATA1 EDATA2 Override JOG register 8 input bits 8 input bits Byte 9 Byte 10 Byte 11 Byte 12 JOGPOS Target position of the JOG axis Control register 1 Bit 7 6 5 4 3 2 1 0 CREG1 WDBIT QUITERR W...

Page 18: ...mit the nominal value of the speed of the kinematics e g for the commissioning procedure Jog register Bit 7 6 5 4 3 2 1 0 CTJOG AXIS COORD JOGN JOGP JOG axis JOG coordinate system Jogging negative Jog...

Page 19: ...yte 9 Byte 10 Byte 11 Byte 12 ACTPOS Actual position of the JOG axis Status register 1 Bit 7 6 5 4 3 2 1 0 SREG WDBIT ERROR WRACC ACCENA DRREF DRRDY HOLD CTRDY Watchdog bit Error is active Control sov...

Page 20: ...rride value JOG register Bit 7 6 5 4 3 2 1 0 SJOG AXIS COORD ESN ESP JOG axis JOG coordinate system Limit switch negative Limit switch positive ADATA1 ADATA2 Size 2x8 bits The multi axis control syste...

Page 21: ...l system that at least one error is active The cause of the error can be evaluated using the SREG3 register A faultless robot controller is a requirement for operation via the PLC interface 4 4 3 Mess...

Page 22: ...Blocks component 2 4 Error in RobotControl component 2 5 Error in Basis system component 2050 xx 2 6 Error in IO system component 2220 xx 2 7 Error in IEC runtime system component 2 8 Error in commun...

Page 23: ...ion of the disabled and enabled functions can be found in the table in the Signals of the PLC interface chapter Requesting and receiving control sovereignty If you receive write access for an interfac...

Page 24: ...Jog axis CJOG AXIS and a Jog coordinate system CJOG COORD are selected in the JOG control register Activity Set the CJOG JOGN or CJOG JOGP bit Reaction The selected Jog axis is moved in the selected...

Page 25: ...axis 6 is selected axis 5 is active COORD JOG coordinate system Axis coordinate system World coordinate system Active reference system Tool coordinate system JOGN JOG bit negative direction Manual mo...

Page 26: ...he system manual for the multi axis control system The period of time for switching from one operation mode to another valid one is currently defined at 1 00 sec 4 4 11 Load the program The program wi...

Page 27: ...ondition SREG NACK is set and shows that the loading procedure was not successful SREG LOADED stays set and shows that at least one program has been loaded SREG ERROR shows present error Signal curves...

Page 28: ...rry 1 signal for as long as it takes until the ACK input also reports 1 signal 4 As soon as NACK 1 has been recognised by the PLC it may reset LOAD to 0 The CMXR reacts with a falling edge at NACK 5 A...

Page 29: ...ogram is error free and can be loaded 3 The LOAD output must carry 1 signal for as long as it takes until the ACK input also reports 1 signal 4 As soon as ACK 1 has been recognised by the PLC it may r...

Page 30: ...ler is ready for a new job The cause of the failed load procedure is registered as an error Acknowledge SREG2 B4 ACK Not Acknowledge SREG2 B5 NACK Load the program CREG2 B7 LOAD Req prg number Output...

Page 31: ...Acknowledge SREG2 B5 NACK Acknowledge SREG2 B4 ACK Unload program CREG2 B6 UNLOAD Req prg number Output data 4 4 13 Starting the program The loaded program with the transferred program number is start...

Page 32: ...alling edge at ACK 5 As soon as ACK 0 has been recognised by the PLC the controller is ready for a new job Acknowledge SREG2 B5 NACK Load reset Ack SREG2 B4 ACK Start the program CREG2 B5 START Req pr...

Page 33: ...wledge SREG2 B5 NACK Load reset Ack SREG2 B4 ACK Stop the program CREG2 B4 STOP Req prg number Output data 4 4 15 Parallel programs The PLC interface can be used to start only one program It is necess...

Page 34: ...ly valid override remains unchanged Condition Control sovereignty on PLC interface Activity Write the new overrides into the COVR register Reaction The specified override is accepted and remirrored in...

Page 35: ...h MCP2 MCP1 PB MCP2 PB MCP1 EA Header Parameters Input data 2 bytes 10 bytes 4 bytes 48 bytes Output data 2 bytes 10 bytes 4 bytes 48 bytes 5 1 1 Control signals Byte 1 2 3 4 Header CREG CODE SUBCODE...

Page 36: ...eader consists of 4 byte I O data respectively CREG SREG Control or status register 1 byte CODE Function code SUBCODE Subcode of the function code INDEX Index of the function code Command sequence Bef...

Page 37: ...oes back to False Command executed SREG B5 DONE Execute the command CREG B0 EXECUTE Fig 5 1 MCP2 transmission successful Error SREG B1 ERROR 1 Requirements DONE FALSE 2 Rising edge at EXECUTE transmit...

Page 38: ...or input data range MCP2 EDATA Teach communication variable 3 1 2 CARTPOSREG AXISPOSREG 0 255 0 255 X Access to actual values Function CODE SUBCODE INDEX Parameters Read setpoint position 8 1 2 3 Axes...

Page 39: ...variables 6 1 1 Access from the robot program The interface includes 256 Cartesian and 256 axis positions respectively They are predefined as follows plc_CartPos 0 255 CARTPOS plc_AxisPos 0 255 AXISPO...

Page 40: ...nterface format In the PLC interface the position and angle values are transferred in integer form The conversion is just the same as with the position values Format of the Cartesian position in the R...

Page 41: ...6 Communication variables Festo GDCP CMXR F EN 0909a 41 6 3 2 Interface format The DINT variables are not subjected to a conversion and are transmitted 1 1 into the CMXR control system or PLC...

Page 42: ...6 Communication variables 42 Festo GDCP CMXR F EN 0909a...

Reviews: