Publication 1763-RM001C-EN-P - October 2009
324
ASCII Instructions
Instruction Operation
When the rung goes from false-to-true, the Enable bit (EN) is set. When
the instruction is placed in the ASCII queue, the Queue bit (EU) is set. The
Running bit (RN) is set when the instruction is executing. The Done bit
(DN) is set on completion of the instruction.
The controller determines the number of characters in the buffer and puts
this value in the POS field of the control data file. The Done bit (DN) is
then set. If a zero appears in the POS field, no characters were found. The
Found bit (FD) is set when the POS filed is set to a non-zero value
ACI - String to Integer
Instruction Type: output
Use the ACI instruction to convert a numeric ASCII string to an integer
(word or long word) value.
Entering Parameters
Enter the following parameters when programming this instruction:
•
Source
- The contents of this location are converted to an integer
value.
ACB 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 - Comms
IO
S -
I/O
DL
S
- Da
ta
L
o
g
Address
Mode
Address Level
O
I
S
B
T,
C
, R
N
F
ST
L
MG,
PD
RI/RIX
PLS
RTC
HS
C
PTO, P
W
M
STI
EII
BH
I
MMI
LCD
Imme
diate
Di
re
c
t
In
di
re
ct
Bi
t
Wo
rd
Long
W
o
rd
E
lem
en
t
Channel
•
•
Control •
•
•
(1) The Control data file is the only valid file type for the Control Element.
ACI
String to Integer
Source
ST10:0
Dest
N7:0
0<
ACI
Execution Time for the ACI Instruction
Controller
Data Size
When Instruction Is:
True
False
MicroLogix 1100
word
39.06
μ
s
0.87
μ
s
long word
41.99
μ
s
0.87
μ
s
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive