Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 215
Input/Output Instructions (MSG, GSV, SSV, IOT) Chapter 4
Example: Based on the status of SW.1, place the appropriate value in the disableflag
attribute of program discrete.
Relay Ladder
Structured Text
IF SW.1 THEN
discrete_prog_flag := enable_prog;
ELSE
discrete_prog_flag := disable_prog;
END_IF;
SSV(PROGRAM,DISCRETE,DISABLEFLAG,discrete_prog_flag);