beautypg.com

1 byte swapping, 2 input data format, 1 command number – Rice Lake 880 Performance Series Panel Mount Indicator/Controller - ProfiNet Interface Option Installation and Programming Manual User Manual

Page 16: Byte swapping, Command number, See section 4.1.1 fo

background image

12 ProfiNet Installation and Programming Manual

Parameter value

To allow communication with a multi-scale indicator, the scale number is sent in the
second word of the output command format. Zero (0) represents the current scale.
Certain commands require a parameter other than a scale number, such as a slot
number, setpoint number, or other selection parameter. See the command descriptions
in Section 4.3 on page 15 for specific command requirements.

Value

The third and fourth words of the output format are used to pass value data on certain
commands. Values entered in these words are treated as unsigned long integers or
floating-point values, depending on the command.

4.1.1

BYTE Swapping

Note

See the Ports Menu in the 880 Technical/Service manual (PN 158387)

The 880 indicator sends out and receives data in integer format.
The standard format would be as follows for all input and output values:

High BYTE – Low BYTE

If the Parameter in the 880 FLDBUS/SWAP parameter is set to YES then the BYTE
order changes to:

Low BYTE – High BYTE

Example:
If the weight on the scale reads 10 lbs and a value of 2560 is displayed in your PLC,
either swap the BYTES in your PLC or change the SWAP parameter to YES.

4.2 Input Data Format

In response to a command, the interface returns data and status information to the
master as four 16-bit words. This information is returned in the input command
format shown in Table 4-3.
The value type can be set for those commands that do not specify integer or floating
point data by sending a command 0x000 to specify integer data or command 0x100
for floating-point data. The value type is returned in the status word (bit 14) of the
input format.

Table 4-3. Input Data Format

Word

Description

Word 1

Command number

Word 2

Status

Word 3

Value (MSW)

Word 4

Value (LSW)

Note

See Section 4.1.1 for BYTE swapping parameters.

4.2.1

Command number

The first word echoes the command number. If the command fails or is not
recognized, the negative of the command number is returned to signal the error.