Professional Documents
Culture Documents
Service Book
KM002100G
1.
1.1.
Electronic interface
The electronic interface installed on the Piovan Micro Processor controller is RS485. The serial communication line can link
up to 31 slaves. The wiring between the serial communication line and the Piovan Micro Processor controller is done
through screw terminals.
1.2.
Network configuration
MOD-BUS protocol is suitable for a 1-master / 255-slave network. The number of possible slaves can be limited by the electronic interface used.
The Piovan Micro Processor controller works as a slave.
1.3.
Transmission format
1.4.
Communication procedure
The communication can be started only from the master unit. The slave unit can transmit only after a query from the master.
The general format of the master / slave transmission is the following:
Range
Slave address
Byte
1
Function code
Data
The slave recognizes the transmission of a query frame when the time between two characters is greater than 3 T.U.
(T.U. = time unit = necessary time to transmit one character).
1.5.
These function codes are used by the master unit to request the value of a certain number of bits, that represent the status
of the slave unit.
Range
Byte
Byte
1
Byte count
Data
1- G
ENGLISH
The "data" field indicates the bit requested: the bit with lower address is the bit 0 of the first byte, the next is the bit 1 and
so on.
The possible bit necessary to complete the last byte must be put at 0.
1.6.
These function codes are used by the master unit to read a group of words (16 bit) which contains the value of the variable
of the slave unit.
Range
Slave address (1-255)
Byte
1
Byte
1
Byte count
Data
The "data" field indicates the requested words in the following format: high byte of the first word, low byte of the first word,
high byte of the second word, and so on.
For addresses not implemented, the "data" field will show 8000h.
1.7.
By using this command, the master unit can change the status of one bit of the slave unit.
Range
Byte
1
Data
Byte
1
Data
"Data" field
ENGLISH
=0
to reset the bit
= FF00h to set the bit
2- G
1.8.
By using this command, the master unit can change the status of one word of the slave unit.
Range
Slave address (1-255)
Byte
1
Data
Byte
1
Data
1.9.
By using this command, the master unit can change the status of one or more bits of the slave unit.
Range
Slave address (1-255)
Byte
1
Data
Byte
1
3- G
ENGLISH
Byte
1
Data
Byte
1
NOTES:
"Broadcast" address
When using writing codes 5 and 6, the address 0 of the slave units is allowed. In this case all the slaves
connected accept the command but do not give any answer.
Words format
Every time the information transfer is made by using 2 byte (1 word of 16 bit), the first byte transmitted is
the most significant. For the negative numbers is used the "two complement" format.
Error reply
The slave unit can find out errors in the master query.
If the "error check" is incorrect or the function code is not implemented, the slave does not send any answer to the master.
If other errors are detected on query frame, the slave replies forcing at "1" the bit 7 of the byte "Function
code" and gives an error code.
Error reply
Range
Byte
1
Slave address
Function code (+80h)
Error code
Error #.
10
ENGLISH
4- G
Answer time
The slave replies from 2 ms to 700 ms after the end of a query. (That is detected counting the received
bytes).
Decimal digits/ negative numbers
In case of transmission of decimal digits and/or negative numbers, please see example.
Example:
Number to transmit 205.6 -----------> 2056 is transmitted
Number to transmit -12.50 ----------> -1250 is transmitted
WORDS
Address
Description
Type
Digits
M.U.
27
R/W
10
11
R/W
xx,x
R/W
xx,x
12
R/W
xx,x
13
R/W
xx,x
14
R/W
xx,x
15
R/W
16
R/W
17
R/W
18
R/W
19
R/W
20
R/W
21
R/W
22
R/W
xxx
23
R/W
xx.x
kg
hg
24,25
Notes
R/W
xxxxx
26
R/W
xx.x
27
R/W
xx.x
28
xxxx
29
mdw controls
30
mdw controls
50
mdw state
10
51
1..16 alarms
11
52
17..32 alarms
12
53
33..48 alarms
13
54
15
55
16
56
kg/h
or alarms
63,64
xxxxx,x
65,66
xxxxx,x
67,68
xxxxx,x
69,70
xxxxx,x
71,72
xxxxx,x
73,74
xxxxx,x
100
remote flag
R/W
5- G
17
ENGLISH
Address
Description
Type
Digits
M.U.
Notes
400,401
station 1 totalizator
xxxxx,xxx
kg
36
402,403
station 2 totalizator
xxxxx,xxx
kg
36
404,405
station 3 totalizator
xxxxx,xxx
kg
36
406,407
station 4 totalizator
xxxxx,xxx
kg
36
408,409
station 5 totalizator
xxxxx,xxx
kg
36
410,411
station 6 totalizator
xxxxx,xxx
kg
36
412,413
xxxxx,x
414
xx,x
415
xx,x
416
xx,x
417
xx,x
418
xx,x
419
xx,x
456,457
xxxxx,x
458,459
xxxxx,x
460,461
xxxxx,x
462,463
xxxxx,x
464,465
xxxxx,x
g
g
466,467
xxxxx,x
468,469
xxxxxxxx
NOTES
Note 1
Variable
Description
1.
[ON]
read-only alarm
2.
[ON]+[STOP]
Note 2
Variable
Description
From v 6.06.03: IF THE EXCHANGING FLAG OF STATIONS 2, 3 IS ON (note 30) SEE NOTE 3
1.
[ON][TOT]
2.
[ON]+[STOP]
[TOT]
3.
[ON]+[2->1][TOT]
4.
NOT APPLICABLE
5.
[ON][1]
6.
[ON]+[STOP][1]
7.
[ON]+[2->1][1]
ENGLISH
6- G
Note 3
Variable
Description
From v 6.06.03: IF THE EXCHANGING FLAG OF STATIONS 2, 3 IS ON (note 30) SEE NOTE 2
1.
[ON][TOT]
2.
[ON]+[STOP]
[TOT]
3.
[ON]+[3->1][TOT]
4.
[ON]+
[BATCH->1]
[TOT]
5.
[ON][1]
6.
[ON]+[STOP][1]
[ON]+
[BATCH->1][1]
[ON]+[3->1][1]
From v 6.06.03 on: alarm, dosage trans. to station 1 and percentage referring to
station 1
[ON]+[3->1][1]
[ON]+
[BATCH->1][1]
From v 6.06.03 on: alarm, whole batch trans. to station 1 and percentage referring to station 1
7.
8.
From v 6.06.01 on: read-only alarm and percentage referring to the addition
[1+3]
[ON]+
[STOP][1+3]
From v 6.06.01 on: alarm and doser stop and percentage referring to the addition [1+3]
From v 6.06.01 on: alarm, dosage trans. to station 1 and percentage referring to
addition [1+3]
[ON]+
[BATCH->1][1+3]
From v 6.06.01 on: alarm, trans. of whole batch to station 1 and percentage
referring to addition [1+3]
7- G
ENGLISH
Note 4
Variable
1.
[ON][TOT]
2.
[ON]+[STOP][TOT
]
3.
[ON]+
[BATCH->1]
[TOT]
4.
Description
read-only alarm and percentage referring to batch
alarm and doser stop and percentage referring to batch
alarm, whole batch transfer to station 1 and percentage referring to the batch
NOT APPLICABLE
5.
[ON][1]
6.
[ON]+[STOP][1]
7.
[ON]+
[BATCH->1][1]
alarm, whole batch trans. to station 1 and percentage referring to the station 1
8.
NOT APPLICABLE
9.
[ON][1+3]
10.
[ON]+
[STOP][1+3]
12.
[ON]+
[BATCH->1][1+3]
From v 6.06.03 on: alarm, whole batch transfer to station 1 and percentage
referring to stations 1 + 3
[ON]+[BATCH>1]
[1+3]
Note 7
Description
0.
local
1.
remote
Note 8 (bit)
Description
0.
1.
alarms acknowledge
2.
totalizators reset
3.
alarms reset
4.
ENGLISH
8- G
Note 9 (bit)
0.
Note 10 (bit)
Description
stop
Description
0.
stop state
1.
running state
2.
pause state
3.
4.
calibration state
Note 11 (bit)
Alarm
Description
0.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10
10.
11
11.
12
12.
13
13.
14
14.
15
15.
16
9- G
ENGLISH
Note 12 (bit)
Alarm
Description
0.
17
1.
18
2.
19
3.
20
4.
21
5.
22
6.
23
7.
24
8.
25
9.
26
10.
27
11.
28
12.
29
13.
30
14.
31
15.
32
Note 13 (bit)
Alarm
Description
0.
33
1.
34
2.
35
3.
36
4.
37
5.
38
6.
39
7.
40
8.
41
9.
42
10.
43
11.
44
12.
45
13.
46
14.
47
15.
48
ENGLISH
10 - G
Note 15 (bit)
Description
0.
1.
2.
3.
4.
5.
6.
7.
8.
safety devices
9.
10.
11.
12.
13.
14.
15.
Note 16 (bit)
Description
0.
1.
2.
3.
4.
5.
6.
mixer control
7.
8.
9.
siren control
10.
11.
12.
13.
14.
15.
11 - G
ENGLISH
Note 17 (bit)
Description
0.
any alarm
1.
Note 36 (bit)
-
Description
To zero the totalizators, use the MODBUS 29 address.
ENGLISH
12 - G