Publication 1766-RM001A-EN-P - October 2008
ASCII Instructions
373
Entering Parameters
Enter the following parameters when programming this instruction:
•
Channel
is the number of the RS-232 port, Channel 0.
•
Source
is the string element you want to write.
•
Control
is the control data file. See page 365.
•
String Length
(.LEN) is the number of characters you want to write
from the source string (0…82). If you enter a 0, the entire string is
written. This is word 1 in the control data file.
•
Characters Sent
(.POS) is the number of characters that the
controller sends to an external device. This is word 2 in the control
data file. Characters Sent (.POS) is updated after all characters have
been transmitted.
The valid range for .POS is from 0…82. The number of characters
sent to the destination may be smaller or greater than the specified
String Length (.LEN) as described below:
–
Characters Sent (.POS) may be smaller than String Length (.LEN)
if the length of the string sent is less than what was specified in
the String Length (.LEN) field.
–
Characters Sent (.POS) can be greater than the String Length
(.LEN) if inserted values from in-line indirection are used. If the
String Length (.LEN) is greater than 82, the string written to the
destination is truncated to 82 characters.
•
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:
AWT 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 - Comms
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
BHI
MMI
LCD
Immediate
D
ir
ect
In
dir
ect
Bit
Wo
rd
Lo
ng W
o
rd
E
lemen
t
Channel
•
•
Source
•
•
•
Control •
•
•
(1) The Control data file is the only valid file type for the Control Element.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive