CPX-CEC-...
1.9.2
Error handling by the CPX-CEC-...
Warning
If an error occurs, the controller is not stopped and program processing continues. Unwanted
actuator movements can cause collisions resulting in serious injury.
•
Integrate error handling mechanisms for all error categories in the user program.
•
Make sure that nobody enters the positioning range of the drives or other connected actuators.
The CoDeSys controller offers the following error handling mechanisms in user programs:
System event CPX_system_fault
–
Channel/module diagnosis in the flag words
–
Module support in Festo_CPX.lib
–
CPX-specific system event "CPX_system_fault"
The CPX-specific system event "CPX_system_fault" starts a specific error program as soon as a CPX
class 1-3 error occurs (SF LED flashes).
The program linked by the operator is executed once for the incoming event.
A function registered to the system event "CPX_system_fault" is implemented so that error handling can
be initiated.
Figure: System events
This system event occurs upon every error.
In the example, a distinction is made between two different cases:
A message is issued when medium-level errors occur.
–
If serious errors occur, another message is issued and the IEC program stops.
–
44