PBL input gates

Use the
Advanced - Input gates
tabs of the
PBL Properties
dialog box to configure the input gates for Process Boolean Logic (PBL) instructions. The eight input gates are split into two groups, with gates 1 through 4 on the first tab and gates 5 through 8 on the second tab.
Configure Input gates for Process Boolean Logic (PBL) instructions
  1. On the instruction in the routine, perform one of these actions:
    • On the Ladder or FBD instruction, select .
    • In the Structured Text editor, right-click the tag name and select
      Configure <tag name>
      .
  2. Under the
    Advanced
    tab, select
    Input gate 1 - 4
    or
    Input gate 5 - 8
    .
  3. Select a
    Gate type
    to set the function for the gate:
    • Gate not used
      . Disables the gate.
    • AND.
      The gate output is true if all of the enabled gate inputs (after configured inversions) are true.
    • OR
      . The gate output is true if any of the enabled gate inputs (after configured inversions) are true.
    • XOR.
      The gate output is true if an odd number of the enabled gate inputs (after configured inversions) are true.
    • M out of N (majority gate).
      The gate’s output is set true if a majority of its inputs (after configured inversions) are true (2 out of 2, 2 out of 3, or 3 out of 4). Enable at least two inputs.
    • Set-Reset (latch)
      . The gate's output is set true if one of its Set inputs is true. The output clears to false if one of its Reset inputs is true. See
      Rules for Set-reset gates in Process Boolean Logic (PBL) instructions
      for more information.
    • Select (Switch gate)
      . If input 3 is false, the state of input 1 is passed to the gate output. If input 3 is true, the state of input 2 is passed to the gate output. A Select gate must have input 3 enabled and either or both of inputs 1 and 2 enabled.
  4. To enable an input, select the
    Use
    checkbox.
  5. On the
    Input select
    menu, select the source for the input. An input's source can be any of the 8 instruction inputs or the output of an earlier gate. For example, the outputs of Gates 1 and 2 can be selected as inputs to Gate 3, but not the outputs of Gates 3 through 8.
  6. To invert the source value, select the
    Invert
    checkbox.
  7. When online with the controller, monitor the
    Device state
    and
    Device issues
    indicators at the bottom left of the dialog box:
    • Device state
      . Displays the current device state depending on the value of the Out_Live parameter. Use the
      HMI
      tab to enter text in the
      Text to display when output equals 0
      and
      Text to display when output equals 1
      boxes.
    • Device issues
      . Displays fault conditions:
      None
      , or
      Configuration error
      .
  8. Select
    Apply
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.