Add an EQ operator and a coil

The Equal instruction triggers a value write upon successful data type conversion. Use the following steps to add an EQ (=) operator, variables, and a coil.
To add an EQ operator and a coil
  1. Add a second rung by doing one of the following:
    • From
      Toolbox
      , drag Add branch button to the place under the first ladder rung.
    • Select the first rung, and then select
      Alt+Shift+R
      .
  2. Add an EQ operator by doing one of the following:
    • In
      Toolbox
      , in the
      Search
      box, enter
      EQ
      , and then drag it to a valid location on the second ladder rung.
    • Select the second ladder rung, and then in
      Toolbox
      , double-click
      EQ
      .
  3. Add EQ variables.
    1. In the ladder diagram POU, right-click a variable, and then select
      Select variable
      .
    2. In the variable selector, assign variables according to the following table.
      Variable parameters and names
      Parameter
      Variable name
      i1
      COPsts
      i2
      1
  4. Add a coil to the EQ operator.
    1. In
      Toolbox
      , in
      Search
      , enter
      OTE
      , and then drag it to the right of the EQ operator output on the second ladder rung.
    2. On the second ladder rung, right-click the
      OTE
      , and then select
      New variable
      .
    3. In
      New variable
      , enter the variable name
      WriteValue
      , and then select
      Create
      .
    The second rung of your ladder diagram program for MSG_CIPGENERIC messaging looks similar to the following image:
    How the second rung of MSG_CIPSYMBOLIC looks like
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal