Publication 1766-RM001A-EN-P - October 2008
ASCII Instructions
379
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…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).
AEX - String Extract
Instruction Type: output
ACN 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 - C
o
mm
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
X
, PW
MX
STI
EII
BH
I
MMI
LCD
Immediate
Dir
e
c
t
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.
AEX
String Extract
Source
ST10:0
Index
1
Number
5
Dest
ST10:3
AEX
Execution Time for the AEX Instruction
Controller
When Instruction Is:
True
False
MicroLogix 1400
10.0290 µs
0.1850 µs
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive