EasyManua.ls Logo

Automationdirect.com HX-ECOM Series - Shift Register; Store if Equal

Automationdirect.com HX-ECOM Series
129 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Ethernet Communications Modules, 3rd Edition, Rev. D
4–20
Chapter 4: RLL Programming for Communications
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Shift Register
The Shift Register can be used for creating interlocks, as an alternative to using control relays.
For a complete explanation of the function of the Shift Register, see the User Manual for
your PLC. If you have more than a few RX/WX instructions, using control relays can become
cumbersome. The Shift Register allows a single contact to be used in each communication rung
as an interlock.
Store If Equal
The Store If Equal instruction detects when
the Shift Register is reset to zeros. When
that condition is true the C60 bit is SET by
this rung. The C60 bit becomes the high bit
shifted by the Shift Register until each RX/WX
instruction is executed in turn.
The data input to the Shift Register (SR) is
Special Relay SP1. SP1 is the always-on bit.
Combined with a normally closed contact it
sends zeros to the Shift Register data input.
The clock input to the Shift Register is SP122,
the communication busy bit. Each time one
of the RX/WX instructions executes, the Shift
Register moves the set bit over one place.
C63 is used in this example to reset the Shift
Register to all zeros.
SR
SP1
C60
C77
SP122
C63
ShiftRegister after firstRX/WX.
C74C73 C72C71 C70C67 C66C65 C64C63 C62C61 C60C75C76C77
ShiftRegisterafter first scan.
C74C73 C72C71 C70C67 C66C65 C64C63 C62C61 C60C75C76C77
C74C73 C72C71 C70C67 C66C65 C64C63 C62C61 C60C75C76C77
C74C73 C72C71 C70C67 C66C65 C64C63 C62C61 C60C75C76C77
C74C73 C72C71 C70C67 C66C65 C64C63 C62C61 C60C75C76C77
ShiftRegisterafter second RX/WX.
ShiftRegister aftersecond scan.
C74C73 C72C71 C70C67 C66C65 C64C63 C62C61 C60C75C76C77
ShiftRegister after thirdRX/WX.
ShiftRegister afterthird RX/WXplus one scan.
V40603
SET
=
K0
C60

Table of Contents