DF1 PLC2 Unprotected Write

Use this section while Defining a trigger for a Rockwell unsolicited message when you select DF1 PLC2 Unprotected Write command.

Unsolicited Logix Listener DF1 PLC2 Unprotected Write Command payload parameters

The following parameters are displayed on the trigger definition panel when the DF1 PLC2 Unprotected Write command is selected. The values entered in these parameters must match the values that were entered while defining the unsolicited message in the RSLogix 5000 software.

Parameter Description
Input Data Type Select the data type that matches the data the message is expecting.
Data Table Address The address of the data table. The address of the data table. The value here must match the value entered in the Data Table Address field for the message defined in the message block on the PLC.
Message Length The length of the message

As part of the trigger execution, the data to be returned to the Logix device must be specified. This is done by populating the Event.Variable.Data variable defined as a destination or output parameter in a trigger action. An example of this would be defining the Event.Variable.Data variable within the Destination parameter of a Set action.

When the trigger ends its status and the data set in the Event.Variable.Data will be sent back to the PLC. The MSG instruction “DN” or “ER” bit will be set. The “DN” bit will be set if the trigger completes successfully. Triggers that complete in an error state will return an error code to the ladder logic of the PLC where the message originated. The MSG instruction could complete with errors and this is signaled by the ER bit set.

Input Variables

Event Variables Data Type Description
Data Varies depending upon selection The data sent by the PLC. The data type can be either 1, 2, 4 or 8 Byte, Integer data, or 4 byte floating point data, or String data
Data Length UINT4 The length of the data portion of the message. The length divided by the size of one item, will indicate the number of elements sent in the message. For example if the data length is 100 and the user is sending 4 byte integers, the message contains 25 items.
Destination String Length 64 bytes The value that was entered in the Destination field of the PLC2 Unprotected Write message in the Rockwell MSG block that is sending the message.
Destination Link ID UINT2 The data highway destination link ID
Destination Station Number UINT1 The station number of the Rockwell Logix PLC within the data highway connection
Destination User Number UINT1 The destination user number defined in the data highway message
IP Address STRING length of 32 The IP Address of the PLC that sent the message
Source Link ID UINT2 The data highway source link ID
Source Station Number UINT1 The station number of the Allen Bradley PLC within the data highway connection
Source User Number UINT1 The source user number defined in the data highway message

Output Variables

Event Variable Data type Description
Result Status UINT1 Return code to send back to the PLC. By default a value of 0 will be returned to the PLC.