5. PLC interface MCP 2
38
Festo GDCP-CMXR-F-EN 0909a
5.3
Function codes
Access to communication variables
Function
CODE SUBCODE
INDEX
Parameters
Read communication
variable
1
1
2
3
4
CARTPOSREG
AXISPOSREG
DINTREG
CARTRSREG
0 ... 255
0 ... 255
0 ... 255
0 ... 15
Value acc. to data type placed into
PROFIBUS output data range
(MCP2 –ADATA)
Write communication
variable
2
1
2
3
4
CARTPOSREG
AXISPOSREG
DINTREG
CARTRSREG
0 ... 255
0 ... 255
0 ... 255
0 ... 15
Value acc. to data type read by
PROFIBUS 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
World
Object
x
Setpoint position
Format: Position variable
(see communication variables)
Read actual position
9
1
2
3
Axes
World
Object
x
Actual position
Format: Position variable
(see communication variables)
5.3.1
Return values
The following codes are located in the RETVAL register after a command has been
executed.
RETVAL
Meaning
0
Command executed correctly
1
Incorrect CODE was transmitted
2
Incorrect SUBCODE was transmitted
3
Incorrect INDEX was transmitted
Содержание CMXR-C1
Страница 2: ......
Страница 42: ...6 Communication variables 42 Festo GDCP CMXR F EN 0909a...