Download as pdf
Download as pdf
You are on page 1of 6
Rung (5-Input) A » © Function Code 110 Function code 110 implements a rung of a Ladder logic pro- RNGS a [i gram (relay type). It accepts five boolean input signals and per- ec forms a fundamental operation on each input in sequential sw. order. After each input is operated on, the resulting value goes sno to the top of the stack. The output of the rung block is the value on the top of the stack unless S1 forces it to another value. Outputs Bik | Type Description N Output value determined by S1 and value on top of stack If S1 =, output = value on top of stack If St = 1, output = previous value of output 181 =2, outpu If $1 =3, output Specifications Spec | Tune | Default | Type | Range Description st Y oO 1 0-3 Output descriptor: 0 =normal 1 = hold previous value 2 = force output to logic 0 3 = force output to logic 1 $2 Y 0 1 0-242 | Operation performed on input 1 $3 Y 0 1 0-242 | Operation performed on input 2 s4 Y 0 1 0-242 | Operation performed on input 3 $5 Y 0 1 0-242 | Operation performed on input 4 sé Y oO I 0-242 | Operation performed on input 5 s7 N oO I Note 1 Block address of input 1 SB N oO 1 Note 1 Block address of input 2 sg N oO I Note 1 Block address of input 3 $10 N oO I Note 1 Block address of input 4 sit N oO I Note 1 Block address of input 5 NOTES: 1, Maximum values are 9,998 for tre BRC-100,, IMMFP11/12 31,998 forthe HAC WBPEEUIZ10504B0 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 out- put mode selected with $1. 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. Fig- ures 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 $2 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 har- mony 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 per- formed, 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 overrid- den 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 opera- tions are performed on the desired values. Specifications $1-OUT (Output descriptor) Defines the output: 410-2 0 = Normal output. The value of the output will be the value on top of the stack when all operations on inputs are complete. WBPEEUIZ1050480 S20 S6-F1 to F5 S7tosit INT to INS Outputs N 1 = Hold previous output. The value of the output will be the previous output value, regardless of the value on top of the stack. 2 = Force output to logic 0. The value of the output will be logic 0 regardless of the value on top of the stack. 3 = Force output to logic 1. The value of the output will be logic 1 regardless of the value on top of the stack. 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 $2. through S6 is in the format: xXx LLoperation LUT value on top of stack AND valve with value on op of stack X02 = OR valve with value ontop of stack State of Input Acted On XOX = use value from stack (0 or 1) X1X = use logical state of input (0 or 1) X2X = use logical state of inverted input (0 oF 1) erform operation when input makes a 0 to 1 transition (1) X4X = perform operation when input makes a 1 to 0 transition (0) Override Indicator OXX = no input override 2XX = force input to logic 0 Block addresses of inputs one through five. Dependent on value on top of the stack and the value of S1. + IfS1 = 0, output = value on top of the stack. + If$1 = 1, output = previous value of output, regardless of the value on top of the stack. + IfS1 =2, output = logic 0, regardless of the value on top of the stack. WBPEEUIZ10504B0 110-3 vv a + IfS1 =3, output = logic 1, regardless of the value on top of the stack. 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 infor- mation 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 down- loaded to a controller. (ay 2) (4) (5) a a -—— output (3) TorTe2d Figure 110-1. Four-Input Logic Rung s7 (| - |----» ouTPUT 511 © Tor743A Figure 110-2. AND-OR Logic Representation of Ladder Rung in Figure 110-1 110-4 WBPEEUIZ1050480 Specifications si-0 $2-010 $3-011 S4—o12 $5-021 S6-011 87 88 89 sto sit Output value on top of stack. No input override, use logical state of input, PUT value on top of stack. No input override, use logical state of input, AND with value on top of stack. No input override, use logical state of input, OR with value on top of stack. No input override, use logical state of inverted input, AND with value on top of stack. No input override, use logical state of inverted input, AND with value on top of stack. Block address of input one. Block address of input two. Block address of input three. Block address of input four. Block addr of input five. The circuit is complete when input five equals one and input four equals zero, and either inputs one and two, or input three is true (Fig. 110-2) NOTE: The PC90 Ladder programmer is best suited for Ladder programming type logic. Refer to the Ladder Programming (SLAD) instruction, WBPEEUIZ10504B0 110-5 vv WSPEEUI21050480

You might also like