EStopOn Function
Returns the Emergency Stop status.
Syntax
EstopOn
Return Values
True if the status is Emergency Stop, otherwise False.
Description
EStopOn function is used only for NoEmgAbort task (special task using NoEmgAbort at Xqt).
See Also
ErrorOn, SafetyOn, Wait, Xqt
EstopOn Function Example
The following example shows a program that monitors the Emergency Stop and switches the I/O On/Off when Emergency Stop occurs.
Notes
Forced Flag
This program example uses Forced flag for On/Off command.
Be sure that the I/O outputs change during error, or at Emergency Stop or Safety Door Open when designing the system.
Error Handling
As this program, finish the task promptly after completing the error handling.
Outputs OFF during Emergency Stop
As this program example, when the task executes I/O On/Off after the Emergency Stop, uncheck the [Setup]-[System Configuration]-[Controller]-[Preferences]-[Outputs off during emergency stop] check box. If this check box is checked, the execution order of turn Off by the controller and turn On using the task are not guaranteed.
Function main
Xqt EStopMonitor, NoEmgAbort
:
:
Fend
Function EStopMonitor
Wait EStopOn
Print "EStop !!!"
Off 10, Forced
On 12, Forced
Fend