Publication 1763-RM001C-EN-P - October 2009
ASCII Instructions        323
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.
ACB - Number of 
Characters in Buffer 
Instruction Type: output
Use the ACB instruction to determine the number of characters in the 
buffer. On a false-to-true transition, the controller determines the total 
number of characters and records it in the POS field of the control data 
file. The channel configuration must be set to ASCII.
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 313.
• Characters are the number of characters in the buffer that the 
controller finds (0 to 1024). This parameter is read-only.
• Error displays the hexadecimal error code that indicates why the ER 
bit was set in the control data file. See page 337 for error 
descriptions.
Addressing Modes and File Types can be used as shown below:
EN
DN
ER
ACB
Ascii Chars In Buffer
Channel 0
Control R6:1
Characters 2<
 Error 0<
ACB
Execution Time for the ACB Instruction
Controller When Instruction Is:
True False
MicroLogix 1100 10.93 ÎĽs 11.43 ÎĽs
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive