User Manual Owner's manual
Rockwell Automation Publication 1789-UM002J-EN-P - December 2012 147
Chapter 8
Program Windows Events to Monitor and
Change Controller Execution
This chapter discusses how to program Windows events to control and monitor
execution of the SoftLogix controller. There are different ways to
programmatically use Windows events to monitor and change SoftLogix
controller execution.
Use Outbound Events
Use outbound events in asynchronous external routines to detect a change in the
mode of a controller, allowing the external routine to start and stop asynchronous
code appropriately.
Use the standard Windows ‘wait’ functions to test or wait for these events.
Replace the ‘xx’ with the 2-digit slot number where the controller resides. For
example, if you want to detect if the controller in slot 4 is in Run mode, check the
SOFTLOGIX_04_RUN event.
Topic Page
Use Outbound Events 147
Configure Windows Events to Launch Tasks within the SoftLogix Controller 151
Programmatically Saving the Controller 156
Windows Event Description
SOFTLOGIX_
xx_STARTUP This event is set after the controller in slot xx completes its power-up sequence. This event is reset when the
controller is removed from the chassis or is shut down by the Windows operating system.
SOFTLOGIX_
xx_SHUTDOWN This event is set when the controller in slot xx is removed from the chassis or is shut down by the Windows operating
system. This event is reset otherwise.
SOFTLOGIX_
xx_MODE_CHANGE This event is set whenever the controller in slot xx changes mode. This event is created as an automatic reset event.
SOFTLOGIX_xx_PROGRAM This event is set when the controller in slot xx is in Program mode. This event is reset when the controller in slot xx
is not in Program mode.
SOFTLOGIX_
xx_RUN This event is set when the controller in slot xx is in Run mode. This event is reset when the controller in slot xx is not
in Run mode.
SOFTLOGIX_
xx_TEST This event is set when the controller in slot xx is in Test mode. This event is reset when the controller in slot xx is not
in Test mode.
SOFTLOGIX_xx_FAULT This event is set when the controller in slot xx is faulted. This event is reset when the controller in slot xx is
not faulted.