Publication 1766-RM001A-EN-P - October 2008
366
ASCII Instructions
Control Data File
File Description
The control data element is used by ASCII instructions to store control
information required to operate the instruction. The control data element
for ASCII instructions includes status and control bits, an error code byte,
and two character words as shown below:
Addressing Control Files
The addressing scheme for the control data file is shown below.
ASCII Instructions Control Data File Elements
Control Element
Word 15
14
13
12
11
10
09
08
0
7
0
6
0
5
0
4
0
3
0
2
0
1
0
0
0
EN
(1)
(1) EN = Enable Bit - indicates that an instruction is enabled due to a false-to-true transition. This bit remains set until the
instruction completes execution or generates an error.
EU
(2)
(2) EU = Queue Bit - when set, indicates that an ASCII instruction was placed in the ASCII queue. This action is delayed if
the queue is already filled.
DN
(3)
(3) DN = Asynchronous Done Bit - is set when an instruction successfully completes its operation.
EM
(4)
(4) EM = Synchronous Done Bit - not used
ER
(5)
(5) ER = Error Bit - when set, indicates that an error occurred while executing the instruction.
UL
(6)
(6) UL = Unload Bit - when this bit is set by the user, the instruction does not execute. If the instruction is already
executing, operation ceases. If this bit is set while an instruction is executing, any data already processed is sent to
the destination and any remaining data is not processed. Setting this bit will not cause instructions to be removed
from the ASCII queue. This bit is only examined when the instruction is ready to start executing.
RN
(7)
(7) RN = Running Bit - when set, indicates that the queued instruction is executing.
FD
(8)
(8) FD = Found Bit - when set, indicates that the instruction has found the end-of-line or termination character in the
buffer. (only used by the ABL and ACB instructions)
Error Code Byte
1
Number of characters specified to be sent or received (LEN)
2
Number of characters actually sent or received (POS)
NOTE: The RN bit is not addressable
via the Control (R) file.
Table 3:
Format
Explanation
R
Control file
R:e.s/b
f
File number
The valid file number range is from 3…255.
:
Element delimiter
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive