12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Input/Output <strong>Instructions</strong> (MSG, GSV, SSV, IOT) 197GSV/SSV ProgrammingExampleExample 1:Get Fault InformationThe following examples use GSV instructions to get fault information.This example gets fault information from the I/O module disc_in_2and places the data in a user-defined structure disc_in_2_info.Relay LadderStructured TextGSV(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 andplaces the data in a user-defined structure discrete_info.Relay LadderStructured TextGSV(PROGRAM,DISCRETE,LASTSCANTIME,discrete_info.LastScanTime);GSV(PROGRAM,DISCRETE,MAXSCANTIME,discrete_info.MaxScanTime);Publication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!