Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
Chapter Five PLC Function Code
45
V
o
lume
I Programming
Parameter:
S1 : Set the shifting data address, it composes of one storage area by 1 byte.
Length: it is a 4-digit, which is shown in the following figure:
Fig. 5-20-2
L: its range is 0~8
A: It is treated as bit-parameter, it is always shifted when ACT =1 during A =0, and it moves
once each period.
ACT is regarded as the pulse signal when A = 1, and when the value turns into 1 from 0, it
moves once.
Output:
W : “1” state does not move out when the W = 0 shifting operation is performed.
“1” state moves out when the W = 1 shifting operation is performed.
5.21 DIFU (Rising Edge Detection)
Function:
This code is set the output signal to 1 during the scan period of the input signal rising edge.
Format
DIFU
ACT
L Rising edge
number
(
W
)
Fig. 5-21-1
Controllable condition:
Input signal: The output signal is set to 1 at the rising edge (0
1) of the input signal.
Output signal: The output signal keeps to 1 during one scan period of the ladder diagram when
the function code is performed.
Parameter
:
L : The range of the rising number is 0~255. The system alarm may occur when another
DIFU code or DIFD code is used the same number in the ladder diagram.
Operation: