IME NEO96HD ModBUS MAP
IME NEO96HD ModBUS MAP
Contents
1.0 ABSTRACT ..................................................................................................................................................................................... 2
2.0 DATA MESSAGE DESCRIPTION ............................................................................................................................................. 3
2.1 Parameters description ............................................................................................................................................................. 3
2.2 Data format .................................................................................................................................................................................. 4
2.3 Description of CRC calculation .............................................................................................................................................. 5
2.4 Error management .................................................................................................................................................................... 5
2.5 Timing ............................................................................................................................................................................................ 6
3.0 COMMANDS ................................................................................................................................................................................... 7
4.0 VARIABLES ..................................................................................................................................................................................... 8
5.0 REMOTE RESETS AND PROGRAMMING .......................................................................................................................... 15
1.0 ABSTRACT
Physical level
The physical communication line complies with the EIA-RS485 standard in half-duplex modality.
In this case, as only two wires are used, only one instrument at a time can engage the line; this means that there
must be a master which polls the slave instruments so the demand and the request are alternated.
On the same physical line only 32 instruments can be attached (master included). In order to increase the
number of the slave instrument, the necessary repeaters must be used.
The data are transmitted in a packet form (message) and are checked by a word (CRC).
See the description of the data packet in the next paragraphs for more details.
Application level
Error answer
CRC word : it is the result of the calculation done on all the bytes in the message
COMMUNICATION MODBUS PROTOCOL Pag. 4/31
If the required data is in a DWORD format, 2 WORDS are transmitted and the MSW comes before the LSW
(depending on the setting in the NEMO 96 : big endian / little endian / swap WORDS
Example : 1000 = 0x 03 e8 or
0x 00 00 03 e8 (if UDWORD)
crc16 = (crc16 >> 8) | (crc16 << 8); /* LSB is exchanged with MSB */
return (crc16);
} /* calc_crc */
If the received message is incorrect (CRC16 is wrong) the polled slave doesn’t answer.
If the message is correct but there are errors (wrong functional code or data) it can’t be accepted, so
the slave answers with an error message.
The error codes are defined in the following part of the document.
COMMUNICATION MODBUS PROTOCOL Pag. 6/31
2.5 Timing
MASTER
BYTE 1 BYTE 2
BYTE n RESPONSE
T1
MESSAGE
SLAVE
T2 T3
T3 Time before a new message request from the Master Min = 20 ms.
COMMUNICATION MODBUS PROTOCOL Pag. 7/31
3.0 COMMANDS
Code 0x03 : reading of one or more consecutive WORDS
Command format :
The BYTES number must always match the WORDS number (in the demand) * 2.
Error codes :
* 0x01 : incorrect functional code
* 0x02 : wrong first WORD address
* 0x03 : incorrect data
Command format :
BYTE BYTE MSB LSB MSB LSB BYTE MSB LSB MSB LSB
Funct. First WORD WORDS BYTE
Device address Word Value CRC16
Code address number numbers
The BYTES number must always match the WORDS number (in the demand) * 2.
Error codes :
* 0x01 : incorrect functional code
* 0x02 : wrong first WORD address
* 0x03 : incorrect data
COMMUNICATION MODBUS PROTOCOL Pag. 8/31
4.0 VARIABLES
Variables or groups of variables may be required up to 100 BYTES (sw. version < 1.09)
Variables or groups of variables may be required up to 240 BYTES (sw. version >= 1.09)
A second address table is implemented in the software and the user may decide to use one
or both freely.
SW version
0x1500 UD_WORD Low Positive Active Energy (7) 2.30
0x1502 UD_WORD High Positive Active Energy (8) 2.30
0x1504 UD_WORD Low Positive Reactive Energy (7) 2.30
0x1506 UD_WORD High Positive Reactive Energy (8) 2.30
0x1508 UD_WORD Low Negative Active Energy (7) 2.30
0x150A UD_WORD High Negative Active Energy (8) 2.30
0x150C UD_WORD Low Negative Reactive Energy (7) 2.30
0x150E UD_WORD High Negative Reactive Energy (8) 2.30
0x1510 UD_WORD Low Partial Active Energy (7) 2.30
0x1512 UD_WORD High Partial Active Energy (8) 2.30
0x1514 UD_WORD Low Partial Reactive Energy (7) 2.30
0x1516 UD_WORD High Partial Reactive Energy (8) 2.30
0x1518 SD_WORD Signed Total Active Power (9) 2.30
0x151A SD_WORD Signed Total Reactive Power (9) 2.30
0x151C SD_WORD Signed Phase1 Active Power (9) 2.30
0x151E SD_WORD Signed Phase2 Active Power (9) 2.30
0x1520 SD_WORD Signed Phase3 Active Power (9) 2.30
0x1522 SD_WORD Signed Phase1 Reactive Power (9) 2.30
0x1524 SD_WORD Signed Phase2 Reactive Power (9) 2.30
0x1526 SD_WORD Signed Phase3 Reactive Power (9) 2.30
0x1528 SD_WORD Signed Total Power Factor 1/100 2.30
0x152A SD_WORD Signed Phase1 Power Factor 1/100 2.30
0x152C SD_WORD Signed Phase2 Power Factor 1/100 2.30
0x152E SD_WORD Signed Phase3 Power Factor 1/100 2.30
SW version
0x2000 16 U_WORD Standard setup parameters (6) ALL
0x2100 24 U_WORD Programming parameters of Module on SLOT 1 (6) ALL
0x2200 24 U_WORD Programming parameters of Module on SLOT 2 (6) ALL
0x2300 24 U_WORD Programming parameters of Module on SLOT 3 (6) ALL
COMMUNICATION MODBUS PROTOCOL Pag. 13/31
(1) ---------------------------------------------------------------------------------
Variable
MSB (BYTE 3) BYTE 2 BYTE 1 LSB (BYTE 0)
Slot 3 Slot 2 Slot 1 Slot 0
Type of slot :
‘-’ : NO MODULE
‘A’ : RS485
‘b’ : PULSES OUT
‘C’ : ALARMS OUT
‘d’ : ANALOG OUT
‘E’ : NEUTRAL CURRENT
‘F’ : I/O MODULE
‘h’ : TEMPERATURE
‘H’ : THD and HARMONICS MODULE
‘M’ : MEMORY MODULE
(2) ---------------------------------------------------------------------------------
Variable
BIT 3 BIT 2 BIT 1 BIT 0
Alarm 3 Alarm 2 Alarm 1 alarm 0
(3) ---------------------------------------------------------------------------------
(4) ---------------------------------------------------------------------------------
(5) ---------------------------------------------------------------------------------
0 : positive
1 : negative
(6) ---------------------------------------------------------------------------------
It is possible to read the setup parameters for each slot mounted in the device.
The data area dedicated for each slot is 24 WORDS long even if not all are used.
COMMUNICATION MODBUS PROTOCOL Pag. 14/31
For instance : Pulse Output Module has three setup Parameters for each output (six for
the whole Module), instead Alarm Output Module has ten setup Parameters for each
output(twenty for each Module).
W23 | …. | W0
(7) ---------------------------------------------------------------------------------
(8) ---------------------------------------------------------------------------------
Always in Wh / VArh
(9) ---------------------------------------------------------------------------------
Address 0x2700 : write word with value = 0x5AA5 (Master Unlock Key)
Reset of NEMO 96
Any writing operation of any parameter will have effect only in the volatile memory (RAM).
After any writing operation of parameters described in the following of the document, if necessary to go back to the default
then it is mandatory to send the following commands :
Address 0x2700 : write word with value = 0x5AA5 ( Master Unlock Key )
Address 0x2800 : write word with value = 0xYYYY ( any value )
This command will reset the NEMO 96 and in this way all changes will be lost so returning to the previous conditions.
EEPROM savings
If it is necessary to save the new parameters in EEPROM it is mandatory to send these following messages :
Address 0x2700 : write word with value = 0x5AA5 ( Master Unlock Key )
Address 0x2600 : write word with value = 0xYYYY ( any value )
ADDRESS TABLE
(8)To reset desired measurements write the following word (in binary) :
0|0|0|0|0|0|0|0|0|0|b6|b5|b4|b3|b2|b1|b0
b7 .. b15 = 0
(9)Write any value to save the new parameters changed by Remote commands
(10)To do any remote programming write operation, it’s mandatory to write a safety
key = 0x5AA5.
(11)Write any value to abort any remote programming write operation and go back
to previous values.
COMMUNICATION MODBUS PROTOCOL Pag. 17/31
24 WORDs R/W
x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|W5|W4|W3|W2|W1|W0
W0 and W3
0 => Energy Type ACTIVE
1 => Energy Type REACTIVE
W1 and W4
0 => Pulse Weight 0.01 K
1 => Pulse Weight 0.1 K
2 => Pulse Weight 1.0 K
3 => Pulse Weight 10.0 K
4 => Pulse Weight 100.0K
5 => Pulse Weight 1.0 M
6 => Pulse Weight 10.0 M
W2 and W5
0 => Pulse Duration 50 ms
1 => Pulse Duration 100 ms
2 => Pulse Duration 200 ms
3 => Pulse Duration 300 ms
W9, W8, W7, W6, W5, W4, W3, W2, W1, W0 for OUT1
W19,W18,W17,W16,W15,W14,W13,W12,W11,W10 for OUT2
W0 and W10
0 => Alarm on V phase 1
1 => Alarm on V phase 2
2 => Alarm on V phase 3
3 => Alarm on I phase 1
4 => Alarm on I phase 2
5 => Alarm on I phase 3
6 => Alarm on V12
7 => Alarm on V23
8 => Alarm on V31
9 => Alarm on P phase 1
10 => Alarm on P phase 2
11 => Alarm on P phase 3
12 => Alarm on Q phase 1
13 => Alarm on Q phase 2
14 => Alarm on Q phase 3
15 => Alarm on P threephase
16 => Alarm on Q threephase
17 => Alarm on PF threephase
18 => Alarm on Frequency
19 => Alarm on Active Power Demand
20 => Alarm on Reactive Power Demand
21 => Alarm on Current SUM
22 => Alarm on Temperature Channel 1
23 => Alarm on Temperature Channel 2
W1 and W11
0 => Sign + for Set Point
1 => Sign - for Set Point (Possible only for Powers)
W2 and W12
0 => Decimal Point Position X.XXX
1 => Decimal Point Position XX.XX
2 => Decimal Point Position XXX.X
W3 and W13
0 => kilo for Powers (Inductive for PF)(V for Voltages) (A for Currents)
(Hz for Frequency)
1 => Mega for Powers (Capacitive for PF)(kV for Voltages) (kA for Currents)
(Hz for Frequency)
W4 and W14
0 - 9999 => Value of the Set Point (threshold)
W5 and W15
0 => Alarm active when Lower than Set Point
1 => Alarm active when higher than Set Point
W6 and W16
0 => Relay normally Open
1 => Relay normally Close
COMMUNICATION MODBUS PROTOCOL Pag. 19/31
W7 and W17
0-10 => 0-10 % Hysteresys of Set Point
11 => 15 % Hysteresys of Set Point
12 => 20 % Hysteresys of Set Point
W8 and W18
0 - 99 => Alarm activation delay
W9 and W19
0 - 99 => Alarm de-activation delay
COMMUNICATION MODBUS PROTOCOL Pag. 20/31
24 WORDs R/W
x|x|x|x|W19|W18|W17|W16|W15|W14|W13|W12|W11|W10|W9|W8|W7|W6|W5|W4|W3|W2|W1|W0
W9, W8, W7, W6, W5, W4, W3, W2, W1, W0 for OUT1
W19,W18,W17,W16,W15,W14,W13,W12,W11,W10 for OUT2
W0 and W10
0 => range 4-20 mA
1 => range 0-20 mA
W1 and W11
0 => Transduced Measurement V phase 1
1 => Transduced Measurement V phase 2
2 => Transduced Measurement V phase 3
3 => Transduced Measurement I phase 1
4 => Transduced Measurement I phase 2
5 => Transduced Measurement I phase 3
6 => Transduced Measurement V12
7 => Transduced Measurement V23
8 => Transduced Measurement V31
9 => Transduced Measurement P phase 1
10 => Transduced Measurement P phase 2
11 => Transduced Measurement P phase 3
12 => Transduced Measurement Q phase 1
13 => Transduced Measurement Q phase 2
14 => Transduced Measurement Q phase 3
15 => Transduced Measurement P threephase
16 => Transduced Measurement Q threephase
17 => Transduced Measurement PF threephase
18 => Transduced Measurement Frequency
19 => Transduced Measurement Active Power Demand
20 => Transduced Measurement Reactive Power Demand
21 => Transduced Measurement Current SUM
22 => Transduced Measurement Temperature Channel 1
23 => Transduced Measurement Temperature Channel 2
W2 and W12
0 => Sign + for Begin Scale
1 => Sign - for Begin Scale (Possible only for Powers)
W3 and W13
0 => Decimal Point Position X.XXX
1 => Decimal Point Position XX.XX
2 => Decimal Point Position XXX.X
W4 and W14
0 => kilo for Powers (Inductive for PF)(V for Voltages) (A for Currents)
(Hz for Frequency)
1 => Mega for Powers (Capacitive for PF)(kV for Voltages) (kA for Currents)
(Hz for Frequency)
W5 and W15
0 - 9999 as value for Begin Scale
W6 and W16
0 => Sign + for End Scale
1 => Sign - for End Scale
W7 and W17
0 => Decimal Point Position X.XXX
1 => Decimal Point Position XX.XX
2 => Decimal Point Position XXX.X
W8 and W18
0 => kilo for Powers (Inductive for PF)(V for Voltages) (A for Currents)
(Hz for Frequency)
1 => Mega for Powers (Capacitive for PF)(kV for Voltages) (kA for Currents)
(Hz for Frequency)
COMMUNICATION MODBUS PROTOCOL Pag. 21/31
Writing
Value Reading
The value of the neutral current is given back at the same address where In is in all
tables.
COMMUNICATION MODBUS PROTOCOL Pag. 22/31
Pulse cont : example for a NEMO96HD with address 255 (0xFF) – input 4
Request FF | 03 | 03 | FC | 00 | 02 | 11 | A1
Answer FF | 03 | 04 | 00 | 00 | 00 | 0B | A4 | 3B
This means that the Pulse Counter has counted 11(0x0000000B) pulses.
Input status : example for a NEMO96HD with address 255 (0xFF) – input 2
Request : FF | 03 | 04 | 01 | 00 | 01 | C1 | 24
Answer : FF | 03 | 02 | 00 | 00 | 91 | 90
This means that 00 | 00 is the value that indicates OPEN (otherwise 00 | 01 for CLOSE).
2° writing
Command : FF | 10 | 05 | 10 | 00 | 01 | 02 | RESET | C1 | C2
Answer : FF | 10 | 05 | 10 | 00 | 00 | D4 | DE
RESET
NOTE :after this commands the NEMO96HD resets and in the visualization page of alarms
state, on the fourth line, a letter “r” appears :
RELAY DRIVER
RELAY OUTPUT
24 WORDs R/W
x|x|W21|W20|W19|W18|W17|W16|W15|W14|W13|W12|W11|W10|W9|W8|W7|W6|W5|W4|W3|W2|W1|W0
W9, W8, W7, W6, W5, W4, W3, W2, W1, W0 for OUT1
W20, W19,W18,W17,W16,W15,W14,W13,W12,W11 for OUT2
W0 and W11
2 => Alarm on V phase 1
3 => Alarm on V phase 2
2 => Alarm on V phase 3
3 => Alarm on I phase 1
4 => Alarm on I phase 2
5 => Alarm on I phase 3
6 => Alarm on V12
7 => Alarm on V23
8 => Alarm on V31
9 => Alarm on P phase 1
10 => Alarm on P phase 2
12 => Alarm on P phase 3
12 => Alarm on Q phase 1
13 => Alarm on Q phase 2
14 => Alarm on Q phase 3
15 => Alarm on P threephase
24 => Alarm on Q threephase
25 => Alarm on PF threephase
26 => Alarm on Frequency
27 => Alarm on Active Power Demand
28 => Alarm on Reactive Power Demand
29 => Alarm on Current SUM
30 => Alarm on Temperature Channel 1
31 => Alarm on Temperature Channel 2
W1 and W12
0 => Sign + for Set Point
1 => Sign - for Set Point (Possible only for Powers)
W2 and W13
0 => Decimal Point Position X.XXX
1 => Decimal Point Position XX.XX
2 => Decimal Point Position XXX.X
W3 and W14
0 => kilo for Powers (Inductive for PF)(V for Voltages) (A for Currents)
(Hz for Frequency)
1 => Mega for Powers (Capacitive for PF)(kV for Voltages) (kA for Currents)
(Hz for Frequency)
W4 and W15
0 - 9999 => Value of the Set Point (threshold)
W5 and W16
2 => Alarm active when Lower than Set Point
3 => Alarm active when higher than Set Point
W6 and W17
0 => Relay normally Open
1 => Relay normally Close
COMMUNICATION MODBUS PROTOCOL Pag. 26/31
W7 and W18
0-10 => 0-10 % Hysteresys of Set Point
11 => 15 % Hysteresys of Set Point
12 => 20 % Hysteresys of Set Point
W8 and W19
0 - 99 => Alarm activation delay
W10 => 0
W9 and W20
0 - 99 => Alarm de-activation delay
ATTENTION
Input for tariff selection metering – only input 1 of the module in slot 2
e.g.
if module on slot 2 => input 1
if module on slot 3 => not possible
if both modules => only input 1 of module on slot 2
0 => V phase 1
1 => V12
2 => I phase 1
3 => I Neutral
4 => P 3-phase
5 => Q 3-phase
6 => S 3-phase
7 => P phase 1
8 => Q phase 1
9 => S phase 1
10 => PF 3-phase
0 => V phase 2
1 => V23
2 => I phase 2
3 => P 3-phase
4 => Q 3-phase
5 => S 3-phase
6 => P phase 2
7 => Q phase 2
8 => S phase 2
9 => Frequency
10 => I phase 1
0 => V phase 3
1 => V31
2 => I phase 3
3 => P 3-phase
4 => Q 3-phase
5 => S 3-phase
6 => P phase 3
7 => Q phase 3
8 => S phase 3
9 => P phase 1
10 => I phase 1
W4 : wiring
0 => 3N3E
1 => 3-3E
2 => 3-2E
3 => 1N1E
COMMUNICATION MODBUS PROTOCOL Pag. 29/31
W6 : display contrast
0 => level 0
1 => level 1
2 => level 2
3 => level 3
W7 : backlight intensity
0 => 0%
1 => 30%
2 => 70%
3 => 100%
W8 : rated current
0 => 5A
1 => 1A
Reading Example
Answer
BYTE BYTE BYTE MSB | LSB MSB | LSB MSB | LSB MSB | LSB
Dev Add. F. cod BYTES num WORD 1 WORD 2 WORD 3 WORD 4 CRC16
0x01 0x03 0x08 0x00 | x00 0x64 | 0x8c 0x00 | 0x00 0x35 | 0x54 0x9a | 0x83
Data are written at the same way as they are read. The WORD sequence is the same.
If it is necessary to go back to the old parameters saved in EEPROM, it is mandatory to send also these following
messages :
If it is necessary to save new parameters in EEPROM it is mandatory to send these following messages :
(8)To reset desired measurements write the following word (in binary) :
0|0|0|0|0|0|0|0|0|0|b6|b5|b4|b3|b2|b1|b0
b7 .. b15 = 0
(9)Write any value to save the new parameters changed by Remote commands
(10)To do any remote programming write operation, it’s mandatory to write a safety
key = 0x5AA5.
(11)Write any value to abort any remote programming write operation and go back
to previous values.