2 input command format, Parameter value value, Command number status data – Rice Lake 920i Programmable HMI Indicator/Controller - Profibus DP Interface User Manual
Page 10
6
520/720i/820i/920i
Profibus DP 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 3.3 on page 7 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.
3.2
Input Command Format
In response to a command, the Profibus 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 3-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.
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.
Status Data
Indicator status data is returned in the second word
(see Table 3-4). Batch commands return batch status
in place of the low byte (see Table 3-5). Setpoint
commands return batch status in the low byte of the
status word and the setpoint number in the high byte.
294
0x126
Read Accumulator (float)
295
0x127
Read Rate of Change (float)
296
0x128
Read Peak (float)
304
0x130
Set Setpoint Value (float)
305
0x131
Set Setpoint Hysteresis (float)
306
0x132
Set Setpoint Bandwidth (float)
307
0x133
Set Setpoint Preact (float)
320
0x140
Read Setpoint Value (float)
321
0x141
Read Setpoint Hysteresis (float)
322
0x142
Read Setpoint Bandwidth (float)
323
0x143
Read Setpoint Preact (float)
368
0x170
Set Register
402
0x192
Get Register
Word
Description
Word 1
Command number
Word 2
Status
Word 3
Value (MSW)
Word 4
Value (LSW)
Table 3-3. Input Command Format
Decimal
Hex
Command
Table 3-2.
520/720i/820i/920if Remote Commands
Word 2
Bit
Indicator Status Data
Value=0
Value=1
00
Error
No error
01
Tare not entered
Tare entered
02
Not zero
Center of zero
03
Weight invalid
Weight OK
04
Standstill
In motion
05
Primary units
Other units
06
Tare not acquired
Tare acquired
07
Gross weight
Net weight
08
Channel number
(NOTE: Value 0 represents scale #32)
09
10
11
12
13
Not used
14
Integer data
Floating point data
15
Positive weight
Negative weight
Table 3-4. Indicator Status Data Format
Word 2
Bit
Batch Function Status Data
Value=0
Value=1
00
Digital input 4 OFF
(
520
) Error
Digital input 4 ON
(
520
) No error
01
Digital input 3 OFF
Digital input 3 ON
02
Digital input 2 OFF
Digital input 2 ON
03
Digital input 1 OFF
Digital input 1 ON
04
Batch not paused
Batch paused
05
Batch not running
Batch running
06
Batch not stopped
Batch stopped
07
Alarm OFF
Alarm ON
Table 3-5. Batch Function Status Data Format