You are on page 1of 38

i 30 - i 35 indicators

WWW.PRECIAMOLEN.COM
04-52-00-1 MR A / 03/2014

Communication Protocols
Contents

1. Introduction .......................................................................................................................................... 3
Foreword .................................................................................................................................................... 3
Pictogram .............................................................................................................................................. 3
Marking ................................................................................................................................................. 3
Communication protocols available ........................................................................................................... 3
Serial protocols ..................................................................................................................................... 3
Field bus ............................................................................................................................................... 5
Additional information ................................................................................................................................ 5

2. ASCII Serial Protocols ...................................................................................................................... 7


General principle ........................................................................................................................................ 7
Message structure ................................................................................................................................ 7
A+ Master protocol ..................................................................................................................................... 7
Communication principle ....................................................................................................................... 7
Message structure ................................................................................................................................ 8
A+ Slave Protocols ..................................................................................................................................... 8
Communication principle ....................................................................................................................... 8
Request to read the configured frame .................................................................................................. 8
Request to read n blocks of information ............................................................................................... 8
Request to write n blocks of information ............................................................................................... 9
Request the status of writing n blocks of information ............................................................................ 9
Sending a command ............................................................................................................................. 10
Request for order status ....................................................................................................................... 10
Information block and command details .................................................................................................... 11
Information blocks ................................................................................................................................. 11
Commands ............................................................................................................................................ 14
Examples of sending a frame using the A+ Slave protocol ........................................................................ 15
Without checksum ................................................................................................................................. 15
With check-sum .................................................................................................................................... 18
With checksum and slave no. set to 1 .................................................................................................. 21

3. Modbus RTU ......................................................................................................................................... 23


PWS exchange table ................................................................................................................................. 23
Output data (input for the PLC) ............................................................................................................. 23
Input data (PLC output) ......................................................................................................................... 23
Detailed description of variables ........................................................................................................... 24
Block Diagram for the commands ......................................................................................................... 26

04-52-00-1 MR A 1
i 30 - i 35 indicators

4. Field bus ................................................................................................................................................ 29


CANopen .................................................................................................................................................... 29
Exchange table ..................................................................................................................................... 30
Block Diagram for the commands ......................................................................................................... 34

2 04-52-00-1 MR A
Introduction 1
 Foreword

 Pictogram

 Note aiming to:


- facilitate reading the manual.
- optimally implement the equipment.

 Marking

Menu or parameters options (executed in CONFIGURATION mode on the indicator) are noted:
• OPTION 1 / OPTION 2... / PARAMETER

 Communication protocols available

 Serial protocols

ASCII protocols (microcomputer oriented)


• Type A+
- A+ Master: Send the frame automatically periodically or at measurement stability.
- A+ Slave: exchange of information with an associated master system and reception of orders.
• Master D: simple protocol for specific use.
• ERIC: specific use, adapted to ARPEGE - MASTER K indicators.
• PT6S3: specific use, adapted to METTLER indicators.

Modbus RTU protocol (PLC oriented)


• RTU Modbus Slave: Exchange information with an associated master system and receive commands in
accordance with PWS (Process Weighing Software) structure.

Physical ports

The previous protocols are available on ports:


• COM1 serial port
• COM2 serial port
• USB Serial
• Ethernet
(The Modbus RTU protocol is not available on this link).

04-52-00-1 MR A 3
i 30 - i 35 indicators

Configuration

The protocol selection is done by configuring the indicator for the selected communication port (serial, USB,
etc.). The procedure is described in the Installation Manual, P/N 04-52-00 MI.

• Serial, USB and Ethernet port

The table below shows the main configuration parameters to be set for proper operation of the communication
protocol used.
(The format parameters, 1 to 5, relate only to the serial links.)

ASCII Protocols
Parameter Item Modbus.
A+ Slave A+ Master
1. Transmission speed SPEED 300, 1200, 2400, 4800, 9600, 19200, 38400, 115200
2. Number of Bits NB.B ITS (7 or 8 bits)
3. Parity PARITY Even, odd or none
4. Number of stop bits NB.S TOP (1 or 2 stop bits)

5. Type of physical link(i) RS232/485 RS 232 or RS 485


6. Slave number ID No. Optional Optional Mandatory and  00
7. Frame emission period PERIOD Not applicable Mandatory(ii) Not applicable

8. Frame emission STABILITY Not applicable Mandatory(ii) Not applicable

9. Modbus memory ADDRESS Not applicable Not applicable Mandatory


10. Checksum CHECKSUM Optional Optional Not applicable

(i) Based on options.


(ii) It is necessary to choose between the automatic transmission of the periodic frame and the automatic transmission of the frame when
measurement stability is reached.

ASCII protocols allow the definition of a configured frame. This is established in the configuration section
TRAME.CONF where you must validate the block numbers to be sent.

• USB port – Driver Installation


This installation is required on any PC to establish a serial connection in serial USB mode with an i 30 -
i 35 indicator, regardless of the protocol used.

1. Navigate to the folder containing file precia-vcom.inf.

2. Open the context menu by right-clicking Install.

If a security warning appears, click the Install driver regardless.

4 04-52-00-1 MR A
3. Connect the indicator to the computer with the USB cable.

4. The device is detected, the link is being synchronized.

5. Once synchronization is complete, the following message appears:

6. The connection can be used.

• Ethernet Port - Specific Configuration

1. Specify:
-IP ADDRESS
- Subnet MASK If DHCP disabled
- GATEWAY (optional)
2. Connect on port 11001.

 The link is interrupted after 30 s of inactivity. A single "client" connection possible (TCP server).
 Field bus

• Exchange information with specific protocol:


- CANopen

 Additional information
The protocols use standard ASCII coding denoted in hexadecimal (00 to FF). Codes 0-20 have special
meaning; they are defined in the table below:

Dec. Hex. Symbol Definition Dec. Hex. Symbol Definition


00 00 NUL Null
17 11 DC1 Device Control 1 (Xon)
01 01 SOH Start Of Heading
18 12 DC2 Device Control 2
02 02 STX Start of Text
19 13 DC3 Device Control 3 (Xoff)
03 03 ETX End of Text
20 14 DC4 Device Control 4
04 04 EOT End Of Transmission
21 15 NAK Negative Acknowledge
05 05 ENQ Enquiry
22 16 SYN Synchronous idle
06 06 ACK Acknowledge
23 17 ETB End of Transmission Block
07 07 BEL Bell
24 18 CAN Cancel
08 08 BS Backspace
25 19 EM End of Medium
09 09 HT Horizontal Tabulation
26 1A SUB Substitute
10 0A LF Line Feed
27 1B ESC Escape
11 0B VT Vertical Tabulation
28 1C FS File Separator
12 0C FF Form Feed
29 1D GS Group Separator
13 0D CR Carriage Return
30 1E RS Record Separator
14 0E SO Shift Out
31 1F US Unit Separator
15 0F SI Shift In
32 20 SP Space
16 10 DLE Data Link Escape

04-52-00-1 MR A 5
i 30 - i 35 indicators

Code Code Code Key Code Code Code Key


Character Character
Dec. Hex. Binary keyboard Dec. Hex. Binary keyboard
00 00 0000 0000 NUL Ctrl. @
01 01 0000 0001 SOH Ctrl. A
66 42 0100 0010 B B
02 02 0000 0010 STX Ctrl. B
67 43 0100 0011 C C
03 03 0000 0011 ETX Ctrl. C
68 44 0100 0100 D D
04 04 0000 0100 EOT Ctrl. D
69 45 0100 0101 E E
05 05 0000 0101 ENQ Ctrl. E
70 46 0100 0110 F F
06 06 0000 0110 ACK Ctrl. F
71 47 0100 0111 G G
07 07 0000 0111 BEL Ctrl. G
72 48 0100 1000 H H
08 08 0000 1000 BS Ctrl. H
73 49 0100 1001 I I
09 09 0000 1001 HT Ctrl. I
74 4A 0100 1010 J J
10 0A 0000 1010 LF Ctrl. J
75 4B 0100 1011 K K
11 0B 0000 1011 VT Ctrl. K
76 4C 0100 1100 L L
12 0C 0000 1100 FF Ctrl. L
77 4D 0100 1101 M M
13 0D 0000 1101 CR Ctrl. M
78 4E 0100 1110 N N
14 0E 0000 1110 SO Ctrl. N
79 4F 0100 1111 O O
15 0F 0000 1111 SI Ctrl. O
80 50 0101 0000 P P
16 10 0001 0000 DLE Ctrl. P
81 51 0101 0001 Q Q
17 11 0001 0001 DC1 Ctrl. Q
82 52 0101 0010 R R
18 12 0001 0010 DC2 Ctrl. R
83 53 0101 0011 S S
19 13 0001 0011 DC3 Ctrl. S
84 54 0101 0100 T T
20 14 0001 0100 DC4 Ctrl. T
85 55 0101 0101 Ü Ü
21 15 0001 0101 NAK Ctrl. Ü
86 56 0101 0110 V V
22 16 0001 0110 SYN Ctrl. V
87 57 0101 0111 W W
23 17 0001 0111 ETB Ctrl. W
88 58 0101 1000 X X
24 18 0001 1000 CAN Ctrl. X
89 59 0101 1001 Y Y
25 19 0001 1001 EM Ctrl. Y
90 5A 0101 1010 Z Z
26 1A 0001 1010 SUB Ctrl. Z
91 5B 0101 1011 [ [
27 1B 0001 1011 ESC Ctrl. [
92 5C 0101 1100 \ \
28 1C 0001 1100 FS Ctrl. \
93 5D 0101 1101 ] ]
29 1D 0001 1101 GS Ctrl. ]
94 5E 0101 1110 ^ ^
30 1E 0001 1110 RS Ctrl. ^
95 5F 0101 1111 _ _
31 1F 0001 1111 US Ctrl. _
96 60 0110 0000 ‘ ‘
32 20 0010 0000 SP Space
97 61 0110 0001 A A
33 21 0010 0001 ! !
98 62 0110 0010 B B
34 22 0010 0010 " "
99 63 0110 0011 C C
35 23 0010 0011 # #
100 64 0110 0100 d d
36 24 0010 0100 $ $
101 65 0110 0101 e e
37 25 0010 0101 % %
102 66 0110 0110 F F
38 26 0010 0110 & &
103 67 0110 0111 g g
39 27 0010 0111 ’ ’
104 68 0110 1000 h h
40 28 0010 1000 ( (
105 69 0110 1001 i i
41 29 0010 1001 ) )
106 6A 0110 1010 j j
42 2A 0010 1010 * *
107 6B 0110 1011 k k
43 2B 0010 1011 + +
108 6C 0110 1100 l l
44 2C 0010 1100 , ,
109 6D 0110 1101 m m
45 2D 0010 1101 - -
110 6E 0110 1110 n n
46 2E 0010 1110 . .
111 6F 0110 1111 o o
47 2F 0010 1111 / /
112 70 0111 0000 p p
48 30 0011 0000 0 0
113 71 0111 0001 q q
49 31 0011 0001 1 1
114 72 0111 0010 r r
50 32 0011 0010 2 2
115 73 0111 0011 s s
51 33 0011 0011 3 3
116 74 0111 0100 t t
52 34 0011 0100 4 4
117 75 0111 0101 u u
53 35 0011 0101 5 5
118 76 0111 0110 v v
54 36 0011 0110 6 6
119 77 0111 0111 w w
55 37 0011 0111 7 7
120 78 0111 1000 x x
56 38 0011 1000 8 8
121 79 0111 1001 y y
57 39 0011 1001 9 9
122 7A 0111 1010 z z
58 3A 0011 1010 : :
123 7B 0111 1011 { {
59 3B 0011 1011 ; ;
124 7C 0111 1100 | |
60 3C 0011 1100 < <
125 7D 0111 1101 } }
61 3D 0011 1101 = =
126 7E 0111 1110 ~ ~
62 3E 0011 1110 > >
127 7F 0111 1111 (DEL) <DEL>
63 3F 0011 1111 ? ?
64 40 0100 0000 @ @
65 41 0100 0001 A A

6 04-52-00-1 MR A
ASCII Serial Protocols 2
 General principle

 Message structure

The general structure of all messages is as follows:

SOH 1 Message 2 CR LF

1 Instrument number:
09H HT Slave protocol
• 1 start character
0BH VT Master protocol
• Instrument Number of 2 ASCII coded numeric characters (0-9)
2 Check-sum: or exclusive of all previous characters on 2 bytes encoded ASCII

The instrument number and the checksum are optional elements defined by configuration.

To facilitate reading of the following paragraphs, the following representation is used.

SOH HTxx or VTxx Message CS CR LF

 Ininstrument
the case where there is no slave no. ( id.nr = 00), the instrument number (1: = 00), the
number (1: or VTxx) must not appear in the frame.
HTxx

 A+ Master protocol

 Communication principle

Periodic

The Master Protocol A+ ensures the periodic emission of the frame configured to a destination slave computer.
The message transmission frequency is configurable. Any configuration with a zero period (= 0 ms) comes down to
sending as often as possible (no frequency management).

On stability

The frame is transmitted when a configured stable weight above the configured threshold is detected and the
weight is passed below this same threshold since the last transmission.

04-52-00-1 MR A 7
i 30 - i 35 indicators

 Message structure

Frame transmitted by the indicator


SOH VTxx 1 1 CS CR LF

1 Information blocks with each block:


• 1 STX block start character (02H)
• 2 ASCII numeric coded characters (30H to 39H) definition of the block number
• Associated Information (see information details and structure § )

 A+ Slave Protocols

 Communication principle

The A+ Slave protocol allows the following features:


• the sending of the configured frame on request of the associated computer,
• sending a frame consisting of 1 to 4 blocks of information on request of the associated computer,
• receiving the information block transmitted from the computer,
• sending the status on writing information blocks received at the request of the computer,
• receiving the command transmitted from the computer,
• sending the status of the command received from the computer on request of the computer.

All exchanges are initiated by the computer.

 Request to read the configured frame

Computer request

SOH HTxx CS CR LF

Instrument response

SOH HTxx 1 1 CS CR LF

1 Information blocks with each block:


• 1 block start character 02H STX
• 2 ASCII numeric coded characters (30H to 39H) definition of the block number
• Associated Information (see information details and structure)

 Request to read n blocks of information

Computer request

SOH HTxx 1 1 CS CR LF

1 Information blocks with each block:


• 1 block start character 05H ENQ
• 2 ASCII numeric coded characters (30H to 39H) definition of the block number
• 1 character to select the type of information: 0BH L Current data

 The maximum number of information blocks, for the same application is 4.

8 04-52-00-1 MR A
Instrument response

SOH HTxx 1 1 CS CR LF

1 Information blocks with each block:


• 1 block start character 02H STX
• 2 ASCII numeric coded characters (30H to 39H) definition of the block number
• Associated Information (see information details and structure § )

 Request to write n blocks of information

Computer request

SOH HTxx 1 1 CS CR LF

1 Information blocks with each block:


• 1 block start character 02H STX
• 2 ASCII numeric coded characters (30H to 39H) definition of the block number
• Associated Information (see information details and structure § )

 The maximum number of information blocks, for the same application is 4.


 Request the status of writing n blocks of information

Computer request

SOH HTxx 1 1 CS CR LF

1 Information blocks requested with each block:


• 1 block start character 05H ENQ
• 2 ASCII numeric coded characters (30H to 39H) definition of the block number
• 1 character 3FH ? State request

Instrument response

SOH HTxx 1 1 CS CR LF

1 Information blocks on each block:


• 1 block start character 02H STX
• 2 ASCII numeric coded characters (30H to 39H) definition of the block number
• Report 63H c Data being written
6DH m Consistent data and storage in memory
72H r Data denied

04-52-00-1 MR A 9
i 30 - i 35 indicators

 Sending a command

Computer request

SOH HTxx 1 1 CS CR LF

 We can only send one command at a time (the 2nd will not be treated).
1 Command block to execute:
• 1 block start character 10H DLE
• 2 ASCII numeric coded characters (30H to 39H) definition of the block number(i)
• Switch 0BH M Execution of the command

(i)See command paragraph.

 Request for order status

Computer request

SOH HTxx 1 1 CS CR LF

1 Request block of command status:


• 1 block start character 10H DLE
• 2 ASCII numeric coded characters (30H to 39H) definition of the block number(i)
• Switch 3FH ? Command status request

(i) See command paragraph.

Instrument response

SOH HTxx 1 1 CS CR LF

1 Command status block:


• 1 block start character 10H DLE
• 2 ASCII numeric coded characters (30H to 39H) definition of the block number(i)
63H c Command in progress
• Command Status 74H t Command completed
72H r Command denied

(i) See command paragraph.

10 04-52-00-1 MR A
 Information block and command details

 Information blocks

The accessibility of certain information blocks available at the configuration level of the indicator is determined
by the functional configuration. The following table briefly describes the different blocks and associated transmission
conditions.

Access
• L Read only.
• R/W Read / Write.

 functional
CAUTION: the same block number may have a different name according to the instrument
configuration.

Block no. Data Access Remarks


01 30H 31H Gross weight L
02 30H 32H Tare weight L/E
03 30H 33H Net weight L
04 30H 34H Status L See page 12
05 30H 35H Status of measurement ranges L See page 13.
08 30H 38H No. of the selected channel L See page 13.
80 38H 30H Date L
81 38H 31H Time L
98 39H 38H DSD Registration Number L
99 39H 39H DSD Registration Number (i) L

(i) Block 99 is reserved for the DSD.

Bloc 01: Gross weight

30H 31H 1 2

1 Absolute value of the gross weight using 7 ASCII numeric characters and decimal point (0 to 9 and .)
6BH 67H 20H kg_ kilogram
2 Unit on 3 ASCII coded bytes
20H 67H 20H _g_ gram

Bloc 02: Tare weight

30H 32H 1 2

1 Absolute value of the Tare weight using 7 ASCII numeric characters and decimal point (0 to 9 and .)
6BH 67H 20H kg_ kilogram
2 Unit on 3 ASCII coded bytes
20H 67H 20H _g_ gram

04-52-00-1 MR A 11
i 30 - i 35 indicators

Bloc 03: Net weight

30H 33H 1 2

1 Absolute value of the Net weight using 7 ASCII numeric characters and decimal point (0 to 9 and .)
6BH 67H 20H kg_ kilogram
2 Unit on 3 ASCII coded bytes
20H 67H 20H _g_ gram

Bloc 04: Status of the measurement

30H 34H 1

1 Status using 4 bytes

• Byte 1

0 0 1 1 b3 b2 * b0 * Reserved

11 Net weight less than zero or - 7e  Gross < 0


b3 b2 Net weight
00 Net weight greater than or equal to zero
1 Predetermined tare
b0 Predetermined tare
0 No Tare predetermined

• Byte 2

0 0 1 1 b3 b2 b1 b0

00 XXXXX
01 XXXX.X
b3 b2 Decimal point position
10 XXX.XX
11 XX.XXX
b1  Stability
b0 Out of range (Gross  PMAX or Gross  0)

• Byte 3

0 0 1 1 b3 b2 b1 b0

b3  Zone zero (Gross or Net)


b2 1  Out of range - 7e: 7e  Gross  0
00 Not out of range.
01 Out of range - (Gross  7e)
b1 b0 Out of range
10 Out of range + (Gross  PMAX 7e)
11 Out of range converter

• Byte 4

0 0 1 1 * * b1 b0 * Reserved

00 Selection of GROSS weight indicator


b1 b0 The type of weight displayed:
10 Selection of NET weight indicator (tare  0)

12 04-52-00-1 MR A
Bloc 05: Status of measurement range

30H 35H 1

1 Status of measurement range using 2 bytes

• Byte 1

0 0 1 1 * * b1 b0 * Reserved

b1b0 Range of active measurement 01 Range W1


10 Range W2
00 Single range function

• Byte 2: Not significant

This block is only meaningful as an indicator defined in double range.

Bloc 08: No. of the selected channel

30H 38H 1

Integer value of an (i) ASCII coded numeric character (0-9)


1

(i)Single channel indicator: Return an ASCII character 0 (30H).

Bloc 80: Date

38H 30H 1

1 Date using 8 ASCII numeric characters (0-9) in the format ddmmyyyy

Bloc 81: Time

38H 31H 1

1 Time using 4 ASCII numeric characters (0-9) in hhmm format

Bloc 99: DSD Registration Number


39H 39H 1

1 DSD registration Number using : 5 ASCII numeric (0-9) (If I200 compatibility = YES)
: 6 characters (If I200 compatibility = NO)

04-52-00-1 MR A 13
i 30 - i 35 indicators

 Commands

Command no. Name Remarks


01 30H 31H Reset to zero request
02 30H 32H Change to range 2
04 30H 34H Semi-automatic tare
(i)
06 30H 36H Print request If printer configured
99 39H 39H DSD Registration Request If configured

(i) Not available on i 30

• The following commands are for immediate execution (if the command is accepted):
- 02: Change to range 2.
- 99: DSD registration request (if the conditions are met DSD no. 0, otherwise DSD no. =0).
- 06: Print request
• The following commands are with deferred execution, if the order is accepted and the conditions fulfilled
(stability, zero range, etc.):
- 01: Reset request,
- 04: Semi-automatic taring

14 04-52-00-1 MR A
 Examples of sending a frame using the A+ Slave protocol

 Without checksum
• Implementation

Meaning an i 30 - i 35 indicator with the following configuration:


- A+ Slave Protocol,
- Id: 00 (no slave no.),
- Message: Block 1, 2, 3, 4 activated,
- Checksum: NO,
- Weight sent: Weight displayed.

The speed ??and transmission format are presumed to be identical on indicator and computer sides and the
serial connection is in operation.

 activated,
By default, blocks 4 (status), 1 (gross), 2 (tare) and 3 (net) are activated. If no other block is
blocks 4, 1, 2, 3 constitute the "configured frame".

 REMINDER: In the case where there is no slave no. ( id. = 00), the instrument number (1:
VTxx) must not appear in the frame.
HTxx or

• Request to read the configured frame

In the above conditions the request for the configured frame boils down to:

Computer request

SOH CR LF
Hex.: 01H 0DH 0AH
CtrL A Ctrl M Ctrl J

Instrument response

SOH STX 04 0200 STX 01 123456.kg_ STX 02 000000.kg_ STX 03 123456.kg_ CR LF


1 2 3 4 5 6 7 8

1. Status Block no. 2. Status (using 4 bytes) 3. Gross Block no. 4. Gross weight
5. Tare block no. 6. Tare weight 7. Net block no. 8. Net weight

• Request to read from an information block

e.g.: Bloc 01: Gross weight

Computer request
1
SOH ENQ 01 L CR LF
Hex. : 01H 05H 30H 31H 4CH 0DH 0AH
CtrL A Ctrl E 0 1 L Ctrl M Ctrl J

1. Gross Block no.

04-52-00-1 MR A 15
i 30 - i 35 indicators

Instrument response

SOH STX 01 000456.kg_ CR LF


1 2

1. Gross Block no.

2. Gross weight
• Request to write an information block

e.g.: Bloc 02: Tare

Computer request
1
SOH STX 02 000123.kg_ CR LF
Hex.: 01H 02H 30H 32H 30H30H30H31H32H33H2EH6BH67H20H 0DH 0AH
CtrL A Ctrl B 0 2 000123.kg_ Ctrl M Ctrl J
2

1. Tare block no.

2. (space)

The tare of 123 kg is placed in the indicator.


• Sending a command
- e.g.: Reset Request (Command: No. 01)

Computer request
1

SOH DLE 01 M CR LF
Hex.: 01H 10H 30H 31H 4DH 0DH 0AH
CtrL A Ctrl P 0 1 M Ctrl M Ctrl J

1. Command no.

The indicator is reset (if conditions are met).


- e.g.: Tare request (Command no.: 04)

Computer request
1

SOH DLE 04 M CR LF
Hex.: 01H 10H 30H 34H 4DH 0DH 0AH
CtrL A Ctrl P 0 4 M Ctrl M Ctrl J

1. Command no.

The taring is performed (if conditions are met).

16 04-52-00-1 MR A
- e.g.: DSD registration request (Command no.: 99)

Computer request
1

SOH DLE 99 M CR LF
Hex.: 01H 10H 39H 39H 4DH 0DH 0AH
CtrL A Ctrl P 9 9 M Ctrl M Ctrl J

1. Command no.

The registration is performed (if conditions are met).

In case the DSD is configured with the default settings, the indicator returns the configured frame + DSD No.*
of 5** characters (0).

Instrument response

SOH Configured frame STX 99 12345 CR LF


1 2

1. DSD block no.

2. DSD no.

*If the DSD number = 00000, registration has not been made.
** or 6, if compatibility i 200 at NO

04-52-00-1 MR A 17
i 30 - i 35 indicators

 With check-sum
• Definition and calculation

The checksum is the exclusive or of all characters that precede, converted using 2 ASCII bytes.

Calculation algorithm:
Checksum

CHK = 0

Reading of the 1st


message byte

CHK = CHK +
+ : means EXCLUSIVE OR
decimaled byte

Next Byte

Last Byte
NO
(before check-sum)
CHK
YES

Quartet 1= High order


CHK

Quartet 2= Low order


CHK

or : means EXCLUSIVE OR CHK1= Quartet 1 or 30H

CHK2= Quartet 2 or 30H

END

Sample calculation for a DSD registration request (Command no. 99):


Checksum
SOH DLE 99 M CS CR LF
Hex. : 01H 10H 39H 39H 4DH CHK1 CHK2 0DH 0AH
ASCII Hex value Binary value
SOH 01H 0000 0001
DLE 10H  0001 0000
0001 0001 (1st calculation)
9 39H  0011 1001

0010 1000 (2nd calculation) CHK1 = 35H


9 39H  0011 1001 CHK2 = 3CH
0001 0001 (3nd calculation)
M 0BH  0100 1101
0101 1100 (Result) Quartet 1 = 0101 Quartet 2 = 1100
5 CHK1 = Quartet 1 or 30H = 35H 0011 0101
< CHK2 = Quartet 2 or 30H = 3CH 0011 1100 (30H: 0011 0000)

18 04-52-00-1 MR A
• Implementation

Meaning an i 30 - i 35 indicator with the following configuration:


- A+ Slave Protocol,
- Id: 00 (no slave no.),
- Message: Block 1, 2, 3, 4 activated,
- Checksum: YES,
- Weight sent: Weight displayed.

The speed and transmission format are assumed identical on the indicator and computer side and serial links is
operating.

 activated,
By default, blocks 4 (status), 1 (gross), 2 (tare) and 3 (net) are activated. If no other block is
blocks 4, 1, 2, 3 constitute the "configured frame".

 REMINDER: In the case where there is no slave no. (id. = 00), the instrument number (1:
VTxx) must not appear in the frame.
HTxx or

• Request to read the configured frame

In the above conditions the request for the configured frame boils down to:

Computer request
Checksum

SOH 01 CR LF
Hex.: 01H 30H 31H 0DH 0AH
CtrL A 0 1 Ctrl M Ctrl J

Instrument response
Checksum
SOH STX 04 0200 STX 01 000456.kg_ STX 02 000000.kg_ STX 03 000456.kg_ CS CR LF
1 2 3 4 5 6 7 8

1. Status Block no. 2. Status (using 4 bytes) 3. Gross Block no. 4. Gross weight
5. Tare block no. 6. Tare weight 7. Net block no. 8. Net weight

• Request to read from an information block


- e.g.: Bloc 02: Tare

Computer request
1 Checksum
SOH ENQ 02 L 4A CR LF
Hex.: 01H 05H 30H 32H 4CH 34H 3AH 0DH 0AH
CtrL A Ctrl E 0 2 L 4 : Ctrl M Ctrl J

1. Tare block no.

04-52-00-1 MR A 19
i 30 - i 35 indicators

Instrument response
Checksum
SOH STX 02 000123.kg_ CS CR LF
1 2

1. Tare block no.

2. Tare
• Sending a command
- e.g.: Tare request (Command no.: 04)

Computer request
1 Checksum
SOH DLE 04 M 58 CR LF
Hex.: 01H 10H 30H 34H 4DH 35H 38H 0DH 0AH
CtrL A Ctrl P 0 4 M 5 8 Ctrl M Ctrl J

1. Command no.

The taring is performed (if conditions are met).


- e.g.: Reset Request (Command: No. 01)

Computer request
1 Checksum
SOH DLE 01 M 5= CR LF
Hex.: 01H 10H 30H 31H 4DH 35H 3DH 0DH 0AH
CtrL A Ctrl P 01 M 5 = Ctrl M Ctrl J

1. Command no.

The indicator is reset (if conditions are met).


- e.g.: DSD registration request (Command no.: 99)

Computer request
1 Checksum
SOH DLE 99 M 5C CR LF
Hex.: 01H 10H 39H 39H 4DH 35H 3CH 0DH 0AH
CtrL A Ctrl P 9 9 M 5 < Ctrl M Ctrl J

1. Command no.

The registration is performed (if conditions are met).

20 04-52-00-1 MR A
 With checksum and slave no. set to 1

In the case where several instruments are connected to one master, they should be identified with a slave
no.: (idnrA).
• Implementation

Meaning an i 30 - i 35 indicator with the following configuration:


- A+ Slave Protocol,
- Id: 01 (Slave no. to 1),
- Checksum: YES,
• Sending a command
- e.g.: DSD registration request (Command no.: 99)

Computer request
1 1 Checksum
SOH HT 01 DLE 99 M 54 CR LF
Hex.: 01H 09H 30H 31H 10H 39H 39H 4DH 35H 34H 0DH 0AH
CtrL A Ctrl I 0 1 Ctrl P 9 9 M 5 4 Ctrl M Ctrl J

1. Slave no. 01

2. Command no.

The registration is performed (if conditions are met).

04-52-00-1 MR A 21
i 30 - i 35 indicators

22 04-52-00-1 MR A
Modbus RTU 3
The Modbus communication protocol is normalised, the dialogue principle is assumed to be known.

In the following table, the Address column specifies the address of variables exchanged between the I 35 - i 30
indicator and the client's equipment, where @ is the starting value of the starting address zone defined by the
configuration of the serial port considered.
- COM x / PC/PLC / ADVANCED / PROTOCOL / MODBUS / ADDRESS
- USB / PROTOCOL / MODBUS

 PWS exchange table

Type of information
• 16 bit integer E16
Unsigned binary value using 1 word (2 bytes): 0 to + 65535.
• 32 bit integer E32
Signed binary value using 2 words (4 bytes): - 2147483648 to + 2147483647.

Access
• L Read only.
• R/W Read / Write.

 Output data (input for the PLC)

Address(i) Variables Type Access Comments

Channel # 1
@ + 256 Gross E32 L Gross current weight or Gross DSD Weight
@ + 258 Tare E32 L Current Tare or DSD Tare
@ + 260 Net E32 L Current Net weight or DSD Net Weight
@ + 262 DSD number E32 L Stored DSD number
Status (See “Status of the
@ + 264 measurement”, page 24.) E32 L State of weighing channel / controls / inputs

(i) Address expressed as a 16-bit word (decimal notation).

 Input data (PLC output)

Address(i) Variables Type Access Comments

Channel # 1
@ + 00 Metrological control E16 L/E See “Command”, page 25.
@ + 01 Command parameter E32 L/E
@ + 03 Forcing digital outputs E32 L/E See “Forcing outputs”, page 25.

(i) Address expressed as a 16-bit word (decimal notation).

04-52-00-1 MR A 23
i 30 - i 35 indicators

 Detailed description of variables

Status of the measurement

Bit Value Meaning


b0
b1 0 to 111 Number of decimal places (0 to 7)
b2
b3 1: Yes / 0: No Stable weight
b4 1: Yes / 0: No Valid weight
b5 1: Yes / 0: No Weight out of range +
b6 1: Yes / 0: No Weight out of range -
b7 1: Yes / 0: No Weighing error
b8 1: Yes / 0: No CAN open network fault
b9 1: Yes / 0: No B/T/N DSD weight shown in gateway output table
b10 1: Yes / 0: No B/T/N DSD in HR shown in gateway output table
b11 1: Yes / 0: No Command executed correctly
b12 1: Yes / 0: No Command not executed correctly
b13 N.U.
b14 N.U.
b15 N.U.
b16 1: Yes / 0: No Logical input state # 1
b17 1: Yes / 0: No Logical input state # 2
b18 N.U.
b19 N.U.
b20 N.U.
b21 N.U.
b22 N.U.
b23 N.U.
b24 N.U.
b25 N.U.
b26 N.U.
b27 N.U.
b28 N.U.
b29 N.U.
b30 N.U.
b31 N.U.

24 04-52-00-1 MR A
Command

cmd Action performed Parameter


0 Cancel command none
1 Set zero none
2 Taring none
3 Deleting tare none
4 DSD recording request none
5 Reserved
7 Predetermined tare Tare value to store
0: non HR
8 Choosing this type of weight in B/T/N
1: HR (this choice is stored when switched off)
11 Releasing the Gel of DSD weights

The "Application for DSD Registration" command (if done correctly) causes the rise of "bit 9" of the word
STATE (weight B/T/N DSD) and the replacement of current B/T/N weight by the weight recorded in DSD.

The command "Release of Gel of DSD weights" allows finding the current B/T/N weights.

The "Choosing the type of weight" command, allows presenting the current weights in standard resolution or
high resolution. DSD weights are always presented in standard resolution.

Forcing outputs

Bit Meaning
b0 Forcing logical output logic # 1
b1 Forcing logical output logic # 2
b2 Forcing logical output logic # 3
b3 Forcing logical output logic # 4
b4
... Bits 4 to 31 not used
b31

 The status of the outputs is normally controlled by the indicator configuration. See the
installation manual (ref. 04-52-00 MI).

To properly control an output (no. x) by communication:


In the indicator configuration, define the FUNCTION parameter corresponding to EACH.

04-52-00-1 MR A 25
i 30 - i 35 indicators

 Block Diagram for the commands

It is important to follow the process as shown below to ensure the correct use of a command.

START

No CDE = 0
?

Writing the Yes


command 00 in
exchange table

Writing the
command to be executed
in the exchange table

Checking status bits


command (b11; b12)
See “Status of the
measurement”, page 24.

Writing the
command 00 in Equivalent to an end of
exchange table command acknowledgement

The next command


END can be sent

26 04-52-00-1 MR A
Synchronisation for sending commands between PLC and indicator.

Host Output
"Command" word
Acknowledgement of command
Non zero value = command executed by the PLC

Value = 0 Value = 0

Host input
"Status" word
Bit 11(OK) Bit 12 (NOK)

Value = 1

Value = 0

04-52-00-1 MR A 27
i 30 - i 35 indicators

28 04-52-00-1 MR A
Field bus 4
 The CANopen field bus uses a specific exchange table described in the following pages.
 CANopen
Download the peripheral description EDS file from the PRECIAMOLEN Website.

04-52-00-1 MR A 29
i 30 - i 35 indicators

 Exchange table

• Output data (input for the PLC)

TPDO2: Weight, Measuring state, Measuring scale, Mode


COB-ID= 0x280+indicator ID. Transmitted up to 120 times / second and at least 4 times / second.

TPDO 8 byte description:

1 2 3 4 5 6 7 8
Weight 1 Status Weight 2 Scales + Mode

Weight 1

Net in high resolution or display unit (24 bit signed integer).

Weight 2

Tare in HR step or display unit (24 bit signed integer).

Comments:
• The controller can recalculate the gross weight as: Gross = Net + Tare.
• Depending on the indicator's configuration, weights 1 and 2 are expressed in the displayed resolution
(metrological) or high resolution (by default, the resolution is 10 times higher).
- Example:
Normal: Displayed weight 10.536, weight transmitted 10535
High resolution: Displayed weight 10556, weight transmitted 105563

Status

000 Measurement OK
001 - 7 e < Gross < 0
7 6 5 4 3 2 1 0 010 Pmax < Gross < Pmax + 7 e
011 Gross  - 7 e
100 GrossPmax + 7 e
101 Out of converter range (invalid measurement)
110 Converter read error (invalid measurement)
111 Parameter faults (invalid measurement)

0 Gross operation (Tare = 0)


1 Net operation (Tare  0)

0/1 Synchronisation command and Weight Toggle*

0 Gross weight at 0 ± 1/4 step


1 Gross weight = at 0 ± 1/4 step

0 Unstable weight
1 Stable weight

0 Weighted tare or 0
1 Preset tare (a tare was downloaded)

* The "toggle bit" state change allows the controller to make sure that a command has been interpreted by the i40 indicator and the command
status corresponds properly to the command that the controller has just sent (and not the previous one).

30 04-52-00-1 MR A
Scales + Mode

Scales are only useful when using multi-increments.

7 6 5 4 3 2 1 0

Gross weight scale:


00 Scale No. 1
01 Scale No. 2
10 Scale No. 3

Tare scale:
00 Scale No. 1
01 Scale No. 2
10 Scale No. 3

Net scale:
00 Scale No. 1
01 Scale No. 2
10 Scale No. 3

Mode in progress
00 Stop
01 User
10 Setting

 The logical inputs-outputs (2 inputs, 4 outputs) and the analogue output of the indicator are not
managed by CANopen.

04-52-00-1 MR A 31
i 30 - i 35 indicators

TPDO3: Data, Command status and Unit


COB-ID= 0x380+indicator ID. Transmitted up to 10 times / second and at least 4 times / second.

TPDO 8 byte description:

1 2 3 4 5 6 7 8
Command
ASCII command Additional status NU
status

Command status

Value Char. Description


0x63 'c' Command in progress
0x74 't' Command completed without error
0x72 'r' Command completed with error
0x69 'i' Unknown command

Additional status

Value Description
0x00 No error
0x01 Reserved
0x02 Unknown command
0x03 Reserved
0x04 Command rejected
0x05 Reserved
0x06 Time-out
0x07 Adjustment mode
0x08 Already in adjustment mode
0x09 Unstable measurement
0x0A Measurement out of range
0x0B Reserved
0x0C Zero out-of-limits
0x0D Out of limit
0x0E Invalid setting

32 04-52-00-1 MR A
• Input data (PLC output)

RPDO2: Commands
COB-ID= 0x300+indicator ID

RPDO 8 byte description:

1 2 3 4 5 6 7 8
Tare Tare decimal point ASCII command NU

Tare

Corresponds to the preset tare (tare value to be downloaded into the indicator), this value is a 24-bit signed
integer.

Tare decimal point

Determines the number of digits after the decimal point of the preset tare value.

To be valid, this value must be associated with the Tare decimal point byte as shown below:

(e=0.005) B=20.000
Command
chaining Tare field Decimal point field Command value Displayed Net Displayed Net after
before
1 0x2710 (10000) 0x03 0x06 20.000 10.000
2 0x2713(10003) 0x03 0x06 10.000 9.995
3 0x0 0x03 0x06 9.995 20.000
4 0x3E8 (1000) 0x02 0x06 20.000 10.000

Command code

Value Description
0x01 Semi-automatic zero (>> Gross Weight = 0 if in allowable zone)
0x02 Range change (only in multi-range use)
0x04 Taring (Tare = Current Gross) >> Net = 0 if stable weight
0x05 Taring on the fly (only possible outside legal metrology)
0x06 Preset tare (Tare download)
0x0F Initial zero (Dead load cancellation if in allowable zone)

04-52-00-1 MR A 33
i 30 - i 35 indicators

 Block Diagram for the commands

It is important to follow the process as shown below to ensure the correct use of a command.

START

Writing 0
into command code **

Command code * = 0 ? Yes

Yes

Write command code to be


executed **

Error processing Read


command status ***

No: "r" Command completed In progress: "c"


without error?

Yes: "t"

The next command can be sent

* TPDO3 - byte 1 (See “TPDO3: Data, Command status and Unit”, page 32.)
** RPDO2 - byte 5 (See “RPDO2: Commands”, page 33.)
*** TPDO3 - byte 2 (See “TPDO3: Data, Command status and Unit”, page 32.)

34 04-52-00-1 MR A
WWW.PRECIAMOLEN.COM

Head Office & Plant PRECIA-MOLEN


BP 106 - 07000 Privas - France
Tel. 33 (0) 475 664 600
Fax 33 (0) 475 664 330
E-MAIL webmaster@preciamolen.com

RCS: 386 620 165 RCS Aubenas

You might also like