Gsv/Ssv Programming Example; Get Fault Information; 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

GSV/SSV Programming
Example

Get Fault Information

The following examples use GSV instructions to get fault information.
Example 1:
This example gets fault information from the I/O module disc_in_2 and places
the data in a user-defined structure disc_in_2_info.

Relay Ladder

Structured Text

GSV(MODULE,disc_in_2,FaultCode,disc_in_2_info.FaultCode);
GSV(MODULE,disc_in_2,FaultInfo,disc_in_2_info.FaultInfo);
GSV(MODULE,disc_in_2,Mode,disc_in_2info.Mode);
Example 2:
This example gets status information about program discrete and places the data
in a user-defined structure discrete_info.
Relay Ladder
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Input/Output Instructions (MSG, GSV, SSV, IOT)
Chapter 4
213

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents