Publication 1766-RM001A-EN-P - October 2008
378 ASCII Instructions
Instruction Operation
The controller searches the source (file type ST) for the first character
between 0 and 9. All numeric characters are extracted until a non-numeric
character or the end of the string is reached. Action is taken only if
numeric characters are found. The string length is limited to 82 characters.
Commas and signs (+, -) are allowed in the string. However, only the
minus sign is displayed in the data table.
This instruction sets the following math flags in the controller status file:
ACN - String
Concatenate
Instruction Type: output
ACI Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 92.
Parameter
Data Files
(1)
Function Files
CS - Comms
IOS - I/O
DLS - Data Log
Address
Mode
Address Level
O
I
S
B
T, C, R
N
F
ST
L
MG, PD
RI/RIX
PLS
RTC
HSC
PTOX, PWMX
STI
EII
BHI
MMI
LCD
Immediate
Direct
Indirect
Bit
Word
Long Word
Element
Source • • •
Destination • • • • • •
• ••
(1) The Control data file is the only valid file type for the Control Element.
Table: 0.C
Math Flag Description
S: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 String
Manipulation
Error
Flag is set if the Source string exceeds 82 characters.
When S:5/15 is set, the Invalid String Length Error (1F39H) is
written to the Major Error Fault Code (S:6).
ACN
String Concatenate
Source A ST10:11
Source B ST10:12
Dest ST10:10
ACN
Execution Time for the ACN Instruction
Controller When Instruction Is:
True False
MicroLogix 1400 9.4852 µs 0.1982 µs
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive