Publication 1766-RM001A-EN-P - October 2008
ASCII Instructions
375
Entering Parameters
Enter the following parameters when programming this instruction:
•
Channel
is the number of the RS-232 port, Channel 0.
•
Control
is the control data file. See page 365.
•
Characters
are the number of characters in the buffer that the
controller finds (0…1024). This parameter is read-only and resides
in word 2 of the control data file.
•
Error
displays the hexadecimal error code that indicates why the ER
bit was set in the control data file. See page 390 for error code
descriptions.
Addressing Modes and File Types can be used as shown below:
Instruction Operation
When the rung goes from false-to-true, the Enable bit (EN) is set. The
instruction is put in the ASCII instruction queue, the Queue bit (EU) is set,
and program scan continues. The instruction is then executed outside of
the program scan. However, if the queue is empty the instruction executes
immediately. Upon execution, the Run bit (RN) is set.
The controller determines the number of characters (up to and including
the termination characters) 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 termination characters were found. The Found bit (FD) is
set if the POS field is set to a non-zero value.
ABL 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 - Com
m
s
IOS
-
I/O
DL
S -
D
a
ta
Log
Address
Mode
Address Level
O
I
S
B
T,
C
, R
N
F
ST
L
MG, PD
RI/RIX
PLS
RTC
HS
C
PTOX, P
W
MX
STI
EII
BH
I
MMI
LCD
Immedia
te
Dir
e
c
t
Indir
e
ct
Bit
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.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive