Publication 1766-RM001A-EN-P - October 2008
ASCII Instructions 369
When instructions are removed from the ASCII queue, the following bits
are set: ER = 1, RN = 0, EU = 0, and ERR = 0x0E.
AIC - ASCII Integer to
String
Instruction Type: output
The AIC instruction converts an integer or long word value (source) to an
ASCII string (destination). The source can be a constant or an address.
The source data range is from -2,147,483,648…2,147,483,647.
Addressing Modes and File Types can be used as shown below:
AWA - ASCII Write with
Append
Instruction Type: output
Use the AWA instruction to write characters from a source string to an
external device. This instruction adds the two appended characters that
you configure on the Channel Configuration screen. The default is a
carriage return and line feed appended to the end of the string.
AIC
Integer to String
Source N7:0
Dest ST14:1
AIC
Execution Time for the AIC Instruction
Controller Data Size When Instruction Is:
True False
MicroLogix 1400 word 8.3032 µs 0.2591 µs
long word 9.8913 µs 0.2155 µs
AIC 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 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 •
• •
EN
DN
ER
AWA
ASCII Write Append
Channel 0
Source ST14:3
Control R6:2
String Length 12
Characters Sent 0
Error 0
AWA
Execution Time for the AWA Instruction
Controller When Instruction Is:
True False
MicroLogix 1400 10.7810 µs 9.0122 µs
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive