Communication instructions Chapter 9
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 233
To assign the variables to the parameters
1. In the ladder diagram POU, click the top portion of the variable input
block to display the variable drop-down list.
2. From the list, assign each input parameter to its correct input variable as
identified in the following table.
Parameter Input variable Comments
CtrlCfg MyCtrlCfg The catalog number must only be retrieved one time so the MyCtrlCfg.TriggerType initial value is
set to 0.
AppCfg MyAppCfg The initial values were determined by looking up the object data values for Service, Class,
Instance and Attribute.
Target MyTargetCfg The initial values are for target device configuration.
ReqData MyReqData Because this is a Read message, there is no request data so the ReqData parameters is not used.
ReqLength MyReqLength Because this is a Read message, there is no request data so the ReqLength parameters is not
used.
ResData MyResData The catalog number string is stored in the array in the ODVA short string format.
The first array element defines the strength length and the rest store the string character's
hexadecimal value.
The maximum number of characters is 80, plus the length element so MyResData is defined as a 1
dimension array with 81 elements.
Result
Your instance of the MSG_CIPGENERIC function block should look similar to
the following image.