Publication 1766-RM001A-EN-P - October 2008
ASCII Instructions
377
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.
•
Destination
- This is the location which receives the result of the
conversion. The data range is from -32,768…32,767 if the
destination is a word and from -2,147,483,648…2,147,483,647 if the
destination is a long word.
Addressing Modes and File Types can be used as shown below:
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 1400
word
6.5719 µs
0.2142 µs
long word
7.1146 µs
0.1978 µs
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive