July 2013 6.2 PLC axes 639
Module 9229 Status of coupling function
Module 9229 is used to determine the status and error conditions of Module
9228 (coupling functions). The module can calculate the current position value
to avoid nominal-position steps when axes are coupled, and to be able to pre-
position the coupling axes appropriately.
Condition:
The status or error code is available no sooner than during the next PLC scan
after PLC module 9228 has been called. (Exception: status/error 4, error
code in W1022)
Call:
PS K/B/W/D <Coupling function>
The parameter is evaluated only if mode = 1.
PS K/B/W/D <Coupling axis>
The parameter is evaluated only if mode = 0.
PS K/B/W/D <Mode>
0: Status/Error feedback, possible states/errors: 0, 1, 2, 3, 4
after Module 9228 has been called.
1: One-time position calculation (only possible in submit/
spawn), possible errors: 3, 4
CM 9229
PL B/W/D <Status/Error>
If the status/error is 0 to 3, M4203 is not set:
0: No coupling function active for programmed axis
1: Coupling function is active for programmed axis
2: Coupling function canceled (see additional info)
3: Syntax error in coupling function of Module 9228 or
9229 (see additional info)
4: See error codes in W1022
PL B/W/D <Additional info>
Mode 0:
If additional info on status/error = 2 (cancelation):
0: Canceled by emergency stop
1: Canceled due to computing error during run time
If additional info on status/error = 3 (syntax error):
0: Not yet supported
Mode 1:
Position value or additional info in the event of an error:
0x80000000 (largest negative value)
Error code:
Marker Value Meaning
M4203 0 No error
1 Error code in W1022 (also see error code above)
W1022 1 Invalid mode programmed
2 Invalid axis number programmed
11 Invalid PLC string programmed as formula
20 Call from the cyclic PLC program
45 Canceled due to error message from operating
system