Relay Ladder; Structured Text - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 17
ASCII Serial Port Instructions (ABL, ACB, ACL, AHL, ARD, ARL, AWA, AWT)
Description:
Arithmetic Status Flags:
Fault Conditions:
Condition
Prescan
Rung-condition-in is false
Rung-condition-in is true
EnableIn is set
Instruction execution
Postscan
bar_code_count.EN
/
582
The ACB instruction counts the characters in the buffer.
Follow these guidelines to program the ACB instruction.
1. Configure the serial port of the controller for user mode.
2. This is a transitional instruction.
· In relay ladder, toggle the rung-condition-in from cleared to set each
time the instruction should execute.
· In structured text, condition the instruction so that it executes only on a
transition.
Not affected
None
Execution:
Relay Ladder Action
The rung-condition-out is set to false.
The rung-condition-out is set to false.
The instruction executes when rung-condition-in toggles
from cleared to set.
The rung-condition-out is set to true.
N/A
The instruction counts the characters in the buffer.
The .EN bit is set.
The remaining status bits, except .UL, are cleared.
The instruction attempts to enter the ASCII queue.
The rung-condition-out is set to false.
Example:
Continuously count the characters in the buffer.

Relay Ladder

Structured Text

ACB(0,bar_code_count);
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Structured Text Action
No action taken.
N/A
N/A
EnableIn is always set.
The instruction executes.
No action taken.
ACB
ASCII Chars in Buffer
Channel
SerialPort Control
bar_code_count
Character Count
EN
0
DN
ER
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents