Add an MSG_CIPGENERIC function block and variables

Use the following steps to add a MSG_CIPGENERIC function block to a ladder diagram program and then add input variables to the function block.
To add an MSG_CIPGENERIC function block and variables
  1. Add a controller.
    1. In
      Project Organizer
      , select
      New device
      .
    2. In
      Add device
      , select the checkbox beside the 2080-L50E-48QVB controller.
    3. In
      Selection
      , enter a name for the controller, and then select
      Add
      .
  2. Add a ladder diagram program.
    1. In
      Project Organizer
      , expand the controller node.
    2. Right-click
      Programs
      , and then select
      New program
      .
    3. In
      New program
      , in the
      Name
      box, enter
      CIPExplicitMessage
      .
    4. Verify that the program type is
      Ladder Diagram
      .
    5. Select
      Create
      .
  3. Add the MSG_CIPGENERIC function block.
    1. In
      Project Organizer
      , double-click
      CIPExplicitMessage
      to open the program.
    2. In
      Toolbox
      , in
      Search
      , enter
      MSG_CIPGENERIC
      , and then drag the function block to a valid location in the language editor or double-click
      MSG_CIPGENERIC
      to add it to the language editor.
  4. Add MSG_CIPGENERIC local input variables.
    1. In
      Project Organizer
      , double-click
      Local Variables
      to open the local variable grid.
    2. In the local variable grid, add the following variables according to the following table.
      Variables and data types on the Variables page
      Parameter
      Variable Name
      Data Type
      MSG_CIPGENERIC
      MSG_ReadDrive
      MSG_CIPGENERIC
      CtrlCfg
      MyCtrlCfg
      CIPCONTROLCFG
      AppCfg
      MyAppCfg
      CIPAPPCFG
      TargetCfg
      MyTargetCfg
      CIPTARGETCFG
      ReqData
      MyReqData
      USINT
      ReqLength
      MyReqLength
      UINT
      ResData
      MyResData
      USINT (array)
  5. For the MyResData variable, double click
    Dimension
    and change the array size to [1..81].
    The variable grid should look similar to the following image:
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal