Chapter 1
Produce and Consume a Tag
22
Rockwell Automation Publication 1756-PM011J-EN-P - February 2018
When sharing data with a PLC-5C controller, do the following.
Action
Details
In the ControlNet configuration
of the PLC-5C controller,
schedule a message.
If the PLC-5C
controller
This
Then in RSNetWorx software
Produces
Integers
In the ControlNet configuration of the PLC-5C controller,
insert a Send Scheduled Message.
Consumes
Integers
Do these steps in the ControlNet configuration of the PLC-5C
controller.
•
Insert a Receive Scheduled Message.
•
In the Message size, enter the number of integers in the
produced tag.
REALs
Do these steps in the ControlNet configuration of the PLC-5C
controller.
•
Insert a Receive Scheduled Message.
•
In the Message size, enter two times the number of REALs
in the produced tag. For example, if the produced tag
contains
10 REALs, enter 20 for the Message size.
If the PLC-5C controller
consumes REALs, reconstruct
the values.
When you produce REALs (32-bit floating-point values) for a PLC-5C controller, the PLC-5C
controller stores the data in consecutive 16-bit integers.
•
The first integer contains the upper (leftmost) bits of the value.
•
The second integer contains the lower (rightmost) bits of the value.
This pattern continues for each floating-point value.
If the PLC-5C controller
consumes REALs, reconstruct
the values.
When you produce REALs (32-bit floating-point values) for a PLC-5C controller, the PLC-5C
controller stores the data in consecutive 16-bit integers.
•
The first integer contains the upper (leftmost) bits of the value.
•
The second integer contains the lower (rightmost) bits of the value.
This pattern continues for each floating-point value.
The following example shows how to reconstruct a REAL (floating-point
value) in the PLC-5C controller.
Additional steps for a
PLC-5C controller