Relay Ladder; Structured Text - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

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);
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Input/Output Instructions (MSG, GSV, SSV, IOT)
Chapter 4
215

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents