13.07.2015 Views

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

378 ASCII InstructionsACI Instruction Valid Addressing Modes and File TypesFor definitions of the terms used in this table see Using the Instruction Descriptions on page 92.ParameterOISBT, C, RNData Files (1)FSTLFunction FilesMG, PDRI/RIXPLSRTCHSCPTOX, PWMXSTIEIIBHIMMILCDAddressModeAddress LevelCS - CommsIOS - I/ODLS - Data LogImmediateDirectIndirectBitWordLong WordElementSource • • •Destination • • • • • • • • •(1) The Control data file is the only valid file type for the Control Element.Instruction OperationThe controller searches the source (file type ST) for the first characterbetween 0 and 9. All numeric characters are extracted until a non-numericcharacter or the end of the string is reached. Action is taken only ifnumeric characters are found. The string length is limited to 82 characters.Commas and signs (+, -) are allowed in the string. However, only theminus sign is displayed in the data table.This instruction sets the following math flags in the controller status file:Table: 0.CMath FlagDescriptionS:0/1 Overflow (V) Flag is set if the result is outside of the valid range.S:0/2 Zero (Z) Flag is set if the result is zero.S:0/3 Sign (S) Flag is set if the result is negative.S:5/0 Overflow Trap Flag is set when the Overflow flag (S:0/1) is set.S:5/15 ASCII StringManipulationErrorFlag is set if the Source string exceeds 82 characters.When S:5/15 is set, the Invalid String Length Error (1F39H) iswritten to the Major Error Fault Code (S:6).ACN - StringConcatenateACNString ConcatenateSource A ST10:11Source B ST10:12Dest ST10:10Instruction Type: outputExecution Time for the ACN InstructionControllerWhen Instruction Is:TrueFalse<strong>MicroLogix</strong> <strong>1400</strong> 9.4852 µs 0.1982 µsPublication <strong>1766</strong>-<strong>RM001A</strong>-<strong>EN</strong>-P - October 2008

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

Saved successfully!

Ooh no, something went wrong!