Publication 1747-RM001G-EN-P - November 2008
ASCII Instructions 10-5
Entering Parameters
The control element for ASCII instructions includes eight status bits, an error
code byte, and two character words.
EN = Enable Bit
EU = Queue Bit
DN = Asynchronous Done Bit
EM = Synchronous Done Bit
ER = Error Bit
UL = Unload Bit
IN = Running Bit (This is the IN Bit in the control data file [R6:].)
FD = Found Bit
• Found Bit FD (bit 8) indicates that the instruction found the end of line
or termination characters in the buffer (applies to ABL and ACB
instructions).
• Running Bit IN (bit 9) indicates that a queued instruction is executing.
• Unload Bit UL (bit 10) ceases instruction operation before (may be
queued) or during execution. If this bit is set while an instruction is
executing, any data already processed is sent to the destination. Note
that the instruction is not removed from the queue; any remaining data
is just not processed. You set this bit.
• Error Bit ER (bit 11) indicates that an error occurred while executing
the instruction, such as a mode change via channel 1, or the instruction
was cancelled using the UL bit or ACL instruction.
• Synchronous Done Bit EM (bit 12) is set concurrently to a program
scan to indicate the completion of an ASCII instruction.
• Asynchronous Done Bit DN (bit 13) is set opposite to a program scan
when an instruction successfully completes its operation. Note that an
instruction can take longer than one program scan to finish executing.
• Queue Bit EU (bit 14) indicates that an ASCII instruction was placed in
the ASCII queue. This action is delayed if the queue is already filled. The
queue may contain up to 16 instructions.
• Enable Bit EN (bit 15) indicates that an instruction is enabled due to a
false-to-true transition. This bit remains set until the instruction has
completed executing or errors.
Table 10.5 ASCII Control Element
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Word 0 EN EU DN EM ER UL IN FD Error Code
Word 1 Number of Characters For Sending or Receiving (LEN)
Word 2 Number of Characters Sent or Received (POS)