Installation manual

Publication 1747-RM001G-EN-P - November 2008
ASCII Instructions 10-3
Using the ASCII Data File Type
These are 1-word elements. Assign ASCII addresses as follows.
Using the String (ST) Data File Type
This file type is valid for SLC 5/03 OS301 and higher, SLC 5/04, and SLC
5/05 processors. These are 42-word elements. You can address string lengths
by adding a .LEN to any string address (for example, ST17:1.LEN). Valid
string data file numbers are 9 to 255.
String lengths must be between 0 and 82 bytes. In general, lengths that are
outside of this range cause the processor to set the ASCII Error bit (S:5/15)
and the instruction is not executed.
Data Bits Toggles between 7 and 8. The default is 8.
Termination Characters Allows you to configure up to 2 ASCII characters. The
default is CR.
Append Characters Allows you to configure up to 2 ASCII characters. The AWA
instruction adds the characters to the end of every string to
serve as termination characters for the receiving device.
The default is CR LF.
Table 10.3 Addressing Format
Format Explanation
A ASCII file
Af:e/b
f File number. A file number between 9 to 255 can be used.
: Element delimiter
e Element number Ranges from 0 to 255. This is a 1-word element.
/ Bit delimiter
b Bit number Bit location within the element. Ranges from 0
to 15.
Examples A9:2 Element 2, ASCII file 9
A10:0/7 Bit 7, Element 0, ASCII file 10
TIP
You can enter ASCII strings characters either directly
into the ST file or as \ followed by the Hex value of
the ASCII character. Refer to See Table 10.9 for more
information.
Table 10.2 ASCII Protocol Parameters
Description Specification