NOVUS AUTOMATION
28/85
9.
MODBUS-TCP PROTOCOL
The
LogBox Wi-Fi
is compatible with the Modbus-TCP protocol, a data communication protocol used to connect the device to supervisory control
and data acquisition (SCADA). It supports up to 4 simultaneous connections and allows up to 4 Modbus-TCP masters to monitor it at the same
time.
In addition to enabling the
LogBox Wi-Fi
monitoring, if enabled in the configuration, it is possible to configure some parameters described in
Tables 10
an
11
. It is also possible to complete the configuration and logs download of
LogBox Wi-Fi
through the TCP/IP network. To do this,
however, it is necessary to use the
NXperience
configurator software (see the
chapter).
9.1
COMMANDS
It is important to note that the "Slave ID" parameter of the Modbus-TCP protocol can be filled with any value between 0 and 255.
LogBox Wi-Fi
is
not a gateway, so it is only necessary to enter the IP address to perform the communication.
9.1.1
READ HOLDING REGISTERS – 0X03
This command can be used to read the value of one or even the maximum number of consecutive registers, as shown in
Table 09
.
9.1.2
WRITE HOLDING REGISTERS – 0X06
This command can be used to write in a register, as shown in
Table 10
.
9.1.3
WRITE MULTIPLE HOLDING REGISTERS – 0X16
This command can be used to write in multiple registers, as shown in
Table 10
and
Table 11
.
9.2
REGISTERS TABLE
Following is the table of registers supported by the device for the READ HOLDING REGISTERS commands:
ADDRES
MNEMONIC
DESCRIPTION
INFORMATION
0
SERIAL_NUMBER_H
Device serial number (Higher part).
1
SERIAL_NUMBER_L
Device serial number (Lower part).
2
PRODUCT_CODE
Device code.
3
FIRMWARE_VERSION
Firmware version.
Unit with two decimal places.
5
MAC_ADDR_WiFi_0_1
MAC Address Wi-Fi.
(XX:XX:00:00:00:00)
6
MAC_ADDR_WiFi_2_3
MAC Address Wi-Fi.
(00:00:XX:XX:00:00)
7
MAC_ADDR_WiFi_4_5
MAC Address Wi-Fi.
(00:00:00:00:XX:XX)
15
POWER_SUPPLY
Power supply.
1.
Battery
2.
USB
3.
External source
21
USB_STATUS
USB Interface status.
1.
Active USB voltage
2.
Inactive USB voltage
3.
COM port closed
4.
COM port open
32
NUMBER_OF_ACTIVE_CHANNELS
Number of active channels.
34
RECORDS_STARTED_INTERFACE
Indicates the interface responsible for
initiating logs.
1.
Immediately start
2.
Start by date/time
3.
Start by keyboard
4.
Start by digital input
5.
Periodical start (Daily)
6.
Start by software
35
RECORDS_STOPPED_INTERFACE
Indicates the interface responsible for
stopping the logs.
1.
Finish by date/time
2.
Finish by keyboard
3.
Finish by digital input
4.
Periodical finish (Daily)
5.
Finish by software
36
STATUS_OF_RECORDS
Logs status.
1.
Stopped logs
2.
Logging
37
NUMBER_OF_RECORDS_H
Number of logs in memory (Higher part).
38
NUMBER_OF_RECORDS_L
Number of logs in memory (Lower part).
39
NUMBER_OF_FREE_RECORDS_H
Number of logs available in memory (Higher
part).
40
NUMBER_OF_FREE_RECORDS_L
Number of logs available in memory (Lower
part).
43
FIRST_YEAR
Year of first log.
44
FIRST_MONTH
Month of the first log.