Beruflich Dokumente
Kultur Dokumente
RNG5
(1 1 0 )
N
S7
S8
S9
S10
S11
Outputs
Blk
Type
Description
Output value determined by S1 and value on top of stack
If S1 = 0, output = value on top of stack
If S1 = 1, output = previous value of output
If S1 = 2, output = logic 0
If S1 = 3, output = logic 1
Specifications
Spec
Tune
Default
Type
Range
S1
0-3
S2
0 - 242
S3
0 - 242
S4
0 - 242
S5
0 - 242
S6
0 - 242
S7
Note 1
S8
Note 1
S9
Note 1
S10
Note 1
S11
Note 1
NOTES:
1. Maximum values are:
WBPEEUI210504B0
Description
Output descriptor:
0 = normal
1 = hold previous value
2 = force output to logic 0
3 = force output to logic 1
110 - 1
Explanation
This block accepts five boolean inputs, performs a specified
fundamental operation on each input in turn, and provides an
output dependent on the results of the operations and the output mode selected with S1.
The controller takes a Ladder program entered on a human
system interface (HSI) and translates it to a group of rung
blocks internally (refer to the Ladder Programming (SLAD)
product instruction for operating instructions). Any changes
made to the Ladder program after the conversion are easily
saved by downloading them to the controller. This insures that
all information is in the proper format when it is processed.
The function code the rung is translated to depends on the
number of inputs to the rung. This is automatically defined in
the Harmony controllers by the PC90 Ladder programmer. Figures 110-1 and 110-2 illustrate how to use the rung function
codes (110, 111, 112) without the PC90 Ladder programmer.
AND, OR and PUT operations are performed sequentially on
inputs one through five as specified with S2 through S6. The
PUT operation places the specified value on top of a stack of
values. The result of the most current operation always goes to
the top of the stack. The value resulting from operation one is
placed on a stack that has an initial value of one in the harmony controllers. Operation two is then performed, and the
resulting value becomes the value on top of the stack, and so
on through operation five. Once all operations have been performed, the controller reads S1 to determine the output value.
If it is zero, the value from the top of the stack (the result of
operation five) is the output. Otherwise, the output is overridden and forced to zero or one or held from the previous output.
The value on the top of the stack reverts to the initial value at
the beginning of each controller execution cycle, so the first
operation should always be a PUT to insure that the operations are performed on the desired values.
Specifications
S1 OUT
110 - 2
WBPEEUI210504B0
Identify:
1. The operation to be performed on the input.
2. The input value the operation is performed on.
3. The input override.
Specification information for S2 through S6 is in the format:
X X
X
Operation
XX0 = PUT value on top of stack
XX1 = AND value with value on top of stack
XX2 = OR value with value on top of stack
State of Input Acted On
X0X = use value from stack (0 or 1)
X1X = use logical state of input (0 or 1)
X2X = use logical state of inverted input (0 or 1)
X3X = perform operation when input makes a 0 to 1 transition (1)
X4X = perform operation when input makes a 1 to 0 transition (0)
Override Indicator
0XX = no input override
1XX = force input to logic 1
2XX = force input to logic 0
S7 to S11
IN1 to IN5
Outputs
N
WBPEEUI210504B0
Applications
Figures 110-1 and 110-2 illustrate the operations the Ladder
programmer performs internally. Ladder logic uses the logic
states of various inputs to drive devices. Figure 110-1 is one
rung of a Ladder program. Figure 110-2 is the AND/OR logic
representing that rung. The specifications list shows the information entered by the operator in order to implement this logic
in a controller when not using the Ladder programmer. The
Ladder programmer translates the Ladder logic created by the
operator directly into rung function blocks that can be downloaded to a controller.
(1 )
(2)
(4)
(5)
O U T PU T
(3 )
T 01 74 2 A
(1 )
S7
(2 )
S8
S9
S 10
S 11
A
N
D
OR
(3 )
(4)
A
N
D
O U TPU T
NOT
(5 )
T 01 7 43 A
110 - 4
WBPEEUI210504B0
Specifications
S1 0
S2 010
S3 011
S4 012
S5 021
S6 011
S7
S8
S9
S10
S11
WBPEEUI210504B0
110 - 5
WBPEEUI210504B0