Structured Text; Relay Ladder; Set Enable And Disable Flags - 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

Chapter 4
Input/Output Instructions (MSG, GSV, SSV, IOT)
214

Structured Text

GSV(PROGRAM,DISCRETE,LASTSCANTIME,
discrete_info.LastScanTime);
GSV(PROGRAM,DISCRETE,MAXSCANTIME,discrete_info.MaxScanTim
e);
Example 3:
This example gets status information about task IO_test and places the data in a
user-defined structure io_test_info.

Relay Ladder

Structured Text
GSV(TASK,IO_TEST,LASTSCANTIME,io_test_info.LastScanTime);
GSV(TASK,IO_TEST,MAXSCANTIME,io_test_info.MaxScanTime);
GSV(TASK,IO_TEST, W ATCHDOG,io_test_info.WatchDog);

Set Enable And Disable Flags

The following example uses the SSV instruction to enable or disable a program.
You could also use this method to enable or disable an I/O module, which is
similar to using inhibit bits with a PLC-5 processor.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents