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.

Array (File)/Misc. <strong>Instructions</strong> (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE) 349File Search and Compare(FSC)The FSC instruction compares values in an array, element by element.Operands:Relay LadderOperand Type Format DescriptionControl CONTROL tag control structure for the operationLength DINT immediate number of elements in the array tobe manipulatedPosition DINT immediate offset into arrayinitial value is typically 0CONTROL StructureMnemonic Data Type Description.EN BOOL The enable bit indicates that the FSC instruction is enabled..DN BOOL The done bit is set when the instruction has operated on the last element(.POS = .LEN)..ER BOOL The error bit is not modified..IN BOOL The inhibit bit indicates that the FSC instruction detected a true comparison. You must clearthis bit to continue the search operation..FD BOOL The found bit indicates that the FSC instruction detected a true comparison..LEN DINT The length specifies the number of elements in the array on which the instruction operates..POS DINT The position contains the position of the current element that the instruction is accessing.Description:Arithmetic Status Flags:When the FSC instruction is enabled and the comparison is true, theinstruction sets the .FD bit and the .POS bit reflects the array positionwhere the instruction found the true comparison. The instruction setsthe .IN bit to prevent further searching.Arithmetic status flags are affected.Fault Conditions:A Major Fault Will Occur If Fault Type Fault Code.POS < 0 or .LEN < 0 4 21Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!