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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

450 Program Control <strong>Instructions</strong> (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT)EXT_ROUTINE_CONTROL StructureMnemonic Data Type Description ImplementationErrorCode SINT If an error occurs, this value identifies the error.Valid values are from 0-255.NumParams SINT This value indicates the number of parametersassociated with this instruction.ParameterDefsReturnParamDefEXT_ROUTINE_PARAMETERS[10]EXT_ROUTIN_PARAMETERSThis array contains definitions of theparameters to pass to the external routine. Theinstruction can pass as many as 10 parameters.This value contains definitions of the returnparameter from the external routine. There isonly one return parameter.EN BOOL When set, the enable bit indicates that the JXRinstruction is enabled.ReturnsValue BOOL If set, this bit indicates that a return parameterwas entered for the instruction. If cleared, thisbit indicates that no return parameter wasentered for the instruction.DN BOOL The done bit is set when the external routinehas executed once to completion.ER BOOL The error bit is set if an error occurs. Theinstruction stops executing until the programclears the error bit.FirstScan BOOL This bit identifies whether this is the first scanafter switching the controller to Run mode. UseFirstScan to initialize the external routine, ifneeded.There are no predefined error codes. Thedeveloper of the external routine mustprovide the error codes.Display only - this information is derived fromthe instruction entry.Display only - this information is derived fromthe instruction entry.Display only - this information is derived fromthe instruction entry.The external routine sets this bit.Display only - this information is derived fromthe instruction entry.The external routine sets this bit.The external routine sets this bit.The controller sets this bit to reflect scanstatus.EnableOut BOOL Enable output. The external routine sets this bit.EnableIn BOOL Enable input. The controller sets this bit to reflectrung-condition-in. The instruction executesregardless of rung condition. The developer ofthe external routine should monitor thisstatus and act accordingly.User1 BOOL These bits are available for the user. The Either the external routine or the userUser0BOOLcontroller does not initialize these bits. program can set these bits.ScanType1 BOOL These bits identify the current scan type: The controller sets these bits to reflect scanScanType0 BOOLstatus.Bit Values: Scan Type:00 Normal01 Pre Scan10 Post Scan (not applicable to relayladder programs)Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!