Publication 1763-RM001C-EN-P - October 2009
326
ASCII Instructions
ACN - String
Concatenate
Instruction Type: output
The ACN instruction combines two ASCII strings. The second string is
appended to the first and the result stored in the destination.
Entering Parameters
Enter the following parameters when programming this instruction:
•
Source A
is the first string in the concatenation procedure.
•
Source B
is the second string in the concatenation procedure.
•
Destination
is where the result of Source A and B is stored.
Addressing Modes and File Types can be used as shown below:
Instruction Operation
This instruction executes on a false-to-true rung transition. Source B is
appended to Source A and the result is put in the Destination. Only the
first 82 characters (0 to 81) are written to the destination. If the string
length of Source A, Source B, or Destination is greater than 82, the ASCII
String Manipulation Error bit S:5/15 is set and the Invalid String Length
Error (1F39H) is written to the Major Error Fault Code word (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 1100
50.15
μ
s + 0.11
μ
s/
character
0.87
μ
s
ACN Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 82.
Parameter
Data Files
(1)
Function Files
CS - Comm
s
IOS - I/O
DLS - Da
ta
Lo
g
Address
Mode
Address Level
O
I
S
B
T,
C
, R
N
F
ST
L
MG, PD
RI/RIX
PLS
RTC
HSC
PTO
, PWM
STI
EII
BHI
MMI
LCD
Immediate
D
ir
ect
In
dir
ect
Bit
Wo
rd
Lo
ng W
o
rd
E
lemen
t
Source A
•
•
•
Source B
•
•
•
Destination
•
•
•
(1) The Control data file is the only valid file type for the Control Element.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive