0 commands, 1 output command format, Commands – Rice Lake 920i Programmable HMI Indicator/Controller - Profibus DP Interface User Manual

Page 9: Decimal point handling, Command number

Advertising
background image

Commands

5

3.0

Commands

Commands are used by the Profibus master device to
send and receive data from the Profibus Interface as
integer or floating-point data. The master sends eight
bytes in the output format (used to write commands to
the indicator) and reads eight bytes in the input format
(used to read data from the indicator).

Decimal Point Handling

I n t e g e r c o m m a n d s r e t u r n n o d e c i m a l p o i n t
information to the master. For example, a value of
750.1 displayed on the indicator is returned to the
master as 7501. Floating point commands support
decimal point information with no special handling.

3.1

Output Command Format

To perform a command, the master uses the output
command format to send four 16-bit words to the
Profibus Interface. These four words contain the
command and any parameters necessary to execute it.
The output command format is shown in Table 3-1.

The contents of each output command format word
are described below:

Command number

The number representing the indicator command is
sent in the first word. Table 3-2 lists the commands
that can be specified for

520

,

720i

,

820i

, and

920i

indicators.

NOTE: A lockout feature that looks for any change in the
output format data is incorporated into the indicator receive
mechanism to prevent inundation by the same command.
Repeated commands must be separated by any other valid
command/parameter/value combination.

Word

Description

Word 1

Command number

Word 2

Parameter

Word 3

Value (MSW)

Word 4

Value (LSW)

Table 3-1. Output Command Format

Decimal

Hex

Command

0

0x000

Return Status and Weight (integer)

1

0x001

Display Channel

2

0x002

Display Gross Weight

3

0x003

Display Net Weight

4

0x004

Display Count

9

0x009

Gross/Net key press (toggle)

10

0x00A

Zero

Table 3-2.

520/720i/820i/920if Remote Commands

11

0x00B

Display Tare

12

0x00C

Enter Tare

13

0x00D

Acquire Tare

14

0x00E

Clear Tare

16

0x010

Primary Units

17

0x011

Secondary Units

18

0x012

Tertiary Units

19

0x013

Units key press (toggle units)

20

0x014

Print Request

21

0x015

Display Accumulator

22

0x016

Clear Accumulator

23

0x017

Push Weight to Accumulator

32

0x020

Return Gross (integer)

33

0x021

Return Net (integer)

34

0x022

Return Tare (integer)

35

0x023

Return Count

37

0x025

Return Current Display (integer)

38

0x026

Return Accumulator (integer)

39

0x027

Return Rate of Change (integer)

40

0x028

Return Peak (integer)

95

0x05F

Set Batching State

96

0x060

Batch Start

97

0x061

Batch Pause

98

0x062

Batch Reset

99

0x063

Batch Status

112

0x070

Lock Indicator Front Panel

113

0x071

Unlock Indicator Front Panel

114

0x072

Set Digital Output ON

115

0x073

Set Digital Output OFF

116

0x074

Read Digital I/O Status

128

0x80

Enable Bus Command Handler

253

0x0FD

No operation

254

0x0FE

Reset Indicator

256

0x100

Return Status as Weight (float)

268

0x10C

Set Tare (float)

288

0x120

Read Gross (float)

289

0x121

Read Net (float)

290

0x122

Read Tare (float)

291

0x123

Read Piece Count (float)

293

0x125

Read Current Display (float)

Decimal

Hex

Command

Table 3-2.

520/720i/820i/920if Remote Commands

Advertising