4 setting a float value, 5 reading a float value, 3 command descriptions – Rice Lake 880 Performance Series Panel Mount Indicator/Controller - Profibus DP Interface Option Installation and Programming Manual User Manual

Page 18: Setting a float value, Reading a float value

Advertising
background image

14 Profibus DP Installation and Programming Manual

3.2.4

Setting a Float Value:

Setting a float value in a setpoint requires the value to be sent in two separate integer
values. Most PLCs have a mechanism to take a float value and separate it into to
integer values.
The following is what is needed in the output words to set the value of Setpoint #1 to
10000.

Command word = 304
Parameter word = 1
MSW = 17948
LSW = 16384

3.2.5

Reading a Float Value:

When a float value is read it will be retuned in two integers that will represent the
float value.
The PLC will need to combine MSW and LSW integer values back into a float value.
The following is what is will be returned in the input words if the weight on the scale
is 800.5.

Command Word = 288
Status word = Scale status
MSW= 17480
LSW = 8192

3.3 Command Descriptions

Return Status and Current Weight as Integer

Command: 0, 0x000
Parameter: Scale number

Command 0 returns the status and gross or net scale weight (per scale configuration)
of the specified scale in integer format, without changing the display. This command
also causes the format-independent commands to return a value in the integer format.
Display Channel

Command: 1, 0x001
Parameter: Scale number

Command 1 causes the weight of the specified scale to be displayed and returned in
its current mode and format.
Display Gross Weight

Command: 2, 0x002
Parameter: Scale number

Command 2 causes the gross weight of the specified scale to be displayed and
returned.
Display Net Weight

Command: 3, 0x003
Parameter: Scale number

Command 3 causes the net weight of the specified scale to be displayed and returned.
Gross/Net Key Press (toggle mode)

Command: 9, 0x009
Parameter: Scale number

Command 9 toggles between gross and net mode (and count mode, if enabled). If a
scale number other than 0 is specified, the action will not be seen until the specified
scale is displayed.
Zero

Command: 10, 0x00A

Command 10 performs a

ZERO

operation on the current scale.

Advertising