Przejdź do głównej zawartości

Appendix C: Modbus Registers

Ta treść nie jest jeszcze dostępna w Twoim języku.

Parameter Sets Available via MODBUS Protocol

Section titled “Parameter Sets Available via MODBUS Protocol”

The parameter sets available via the MODBUS protocol are listed below. The internal structure of all parameter sets is similar to that of the set described in Settings, except for the start address.

SettingDescriptionAccessAddresses
Alterable settingsThe parameters listed in Settings, that can be changed and enabled as described in Configuring EM-483 via the WEB-interface and MODBUS-interfaceOnly in setup, read or write mode300 – 799, 5250 – 5499
Current settingsThe parameters used at the momentIn any mode, read-only2300 – 2799, 5500 – 5749
Saved settingsThe set is saved regardless of whether the power is available and is used at startupOnly in setting mode, read-only3300 – 3799, 5750 – 5999

Format of Parameters Presentation in MODBUS Registers

Section titled “Format of Parameters Presentation in MODBUS Registers”
ParameterRange of ValuesDescriptionNumber of Occupied Registers
Number0 – 65535Integer number (16 bits) in the standard range of the MODBUS register values1
Number0 – 4294967295 in two registers, the upper part is the first oneInteger number whose value may be greater than the MODBUS register limit (65535)2
String of charactersIn each register, ASCII is the character code or 0 (the end of the string)A set of values, each of which is equal to code 1 of the character in ASCII coding. If a string is shorter than the greatest length, code 0 is placed after the last characterThe longest string for the given parameter
IP address (IP mask)One byte (0 – 255) in each registerA set comprised of four bytes of IPv4 address, left to right4
MAC addressOne byte (0 – 255) in each registerA set comprised of six bytes of MAC-48 address, left to right6
ParameterDescriptionAddress
Type of the productThe code determining the MODBUS product at the manufacturer’s (33 – EM-483)0
Software versionVersion of the embedded software1
Check codeCRC32 of the embedded software2–3
ParameterValues RangeInitial ValueDescriptionAddress
Password entryString of characters0When entering a valid password, the client is granted the appropriate permission (registers 510 – 549). When entering an empty string, the client’s rights are reset to the level of rights at the time of connection100–119
Control command0–444, 64893, 65397, 65407 (writing in the setup mode)00: no action; 1: «Restart» – means EM-483 restart; 2: «Save» – means saving the altered settings; 3: «Apply» – means to apply settings without restart (accessible only for MODBUS parameters and user’s ones); 4: «Save and apply» – means the same as orders 2 and 3 sent one after another; 6: «Export» – means read the saved settings and write them into the file; 7: «Import» – means read the settings from the file and save them in the internal memory; 9: «Cancel» – means read the saved settings; 51: «Apply for MODBUS» – means apply the settings to the MODBUS network and MODBUS TCP; 59: «Apply to user’s» – means apply the settings to the user’s register area; 444: «Restore factory settings» – means reset the settings to their factory values; 64893: «Download updates» − start downloading the latest firmware version from the cloud server to the downloaded firmware file; 65397: «Update firmware» − program from the downloaded file; 65407: «Return firmware» − program from the factory file120
ParameterDescriptionAddress
Mode (for more details, see reg. 122)0: User’s mode; 1: Setting mode121
Access mode flagsSee Access Mode Flags table below122
Time, minutesNumber of minutes after start-up123–124
Clients numberNumber of busy connections125
Clients limitTotal number of possible clients126
Load RS-485, requests/secNumber of requests sent via RS-485 per second127
RS-485 useful load, requests/secNumber of answers without errors via RS-485 per second128
RS-485 load per second, %RS-485 business within the last second in consideration of the RS-485 rated speed and silence time129
RS-485 load during a minute, %RS-485 business within the last minute130
RS-485 load during 5 minutes, %RS-485 business with the last five minutes131
MODBUS TCP load, requests/secNumber of requests received from the clients via MODBUS TCP per second132
MODBUS TCP useful load, requests/secNumber of answers without errors sent to clients via MODBUS TCP per second133
Ethernet load, ×100 kB/sWire channel load with the Ethernet switched on135
Maximum clientsThe maximum number of simultaneously connected clients from the moment of start-up136
Maximum MODBUS TCP load, requests/secThe maximum number of requests received from clients via MODBUS TCP within one second from the start-up moment137
Maximum RS-485 load, %The maximum RS-485 load during 5 minutes after start-up138
Ethernet current IP-addressIP-address, at which EM-483 is accessible on the Ethernet network140 – 143
Ethernet current MAC-addressMAC-address, at which EM-483 is identified on the Ethernet network144 – 149
Time before connection to the data collection server, sec0: connection with the data collection server is established; 1: connecting to the data collection server; 2 – 65534: the number of seconds prior to reconnection; 65535: connection to the server is not used165
Number of programmed restartsThe number of restarts according to the user’s set-up during the whole time of operation166
Number of critical errorsThe number of noted errors (malfunctions) that caused the product restart during the whole time of operation167
Total time of work, minNumber of the product operating minutes during the whole time of operation168 – 169
Time, secNumber of seconds from start-up170 – 171
Power voltage, mVVoltage on the product power supply terminals175
Time prior to connection to the 1st remote server, sec0: connection with the remote server is established; 1: connecting to a remote server; 2–65534: number of seconds prior to reconnection; 65535: connection to the remote server is not used176
State of connection to the 1st remote server0: no connection; 1: Ethernet connection is established177
Time prior to connection to the 2nd remote server, secSimilarly, reg. 176240
State of connection to the 2nd remote serverSimilarly, reg. 177241
Firmware update download statusSee Firmware Download Status Flags table below2004
Firmware file download progress, × 0.01%Downloaded part of the full file size. 10000 − file is completely downloaded2005
Title of the downloaded firmware fileVersion identifier string, e.g. “EM-483 ver.6”. Empty string − file not checked or incorrect2030 – 2061
User’s parameters of stateReset to 0 at restart. Can be used for temporary storage and transfer to the server of data received from connected clients5000 – 5249
BitDescription
Bit 0The ability for the connected client to obtain permission (using a password) for requests to get reading functions of devices via MODBUS: 0: permission cannot be obtained; 1: permission is issued upon the password is provided
Bit 1Permission for the connected client to request device read functions via MODBUS: 0: no permission; 1: permission is given
Bit 2The ability for the connected client to obtain permission (using a password) for requests for write and device management functions via MODBUS: 0: permission cannot be obtained; 1: permission is issued upon the password is provided
Bit 3Permission for the connected client to request for write and device management functions via MODBUS: 0: no permission; 1: there is a permission
Bit 4The ability for the connected client to obtain permission (using a password) to access the EM-483 registers, except for the registers of version, password, mode, and access flags: 0: permission cannot be obtained; 1: permission is issued after the password is provided
Bit 5The ability for the connected client to obtain permission (using a password) to access the EM-483 registers, except for the registers of version, password, mode, and access flags: 0: no permission; 1: permission is issued
Bit 6Always 1
Bit 7Permission for the connected client to configure EM-483 (similar to register 121): 0: no permission; 1: there is a permission

Firmware Download Status Flags (Register 2004)

Section titled “Firmware Download Status Flags (Register 2004)”
BitDescription
Bit 1Busy indication: 0 − waiting for command; 1 − receiving file
Bit 2Receiving updates error: 0 − no stop with error; 1 − error
Bit 3Connection to the server: 0 − no connection with the server; 1 − connection established
Bit 4Retrieving file data: 0 − no file data; 1 − data downloaded
Bit 6File download completion: 0 − file has not been downloaded; 1 − file has been completely downloaded
Bit 7File correctness: 0 − no confirmation; 1 − file is correct
ParameterRangeFactory ValueDescriptionAddress
Static IP addressIP-address192.168.0.111If the dynamic addressing is disabled or inaccessible, the IP address on the Ethernet network is equal to this value300 – 303
Subnet maskIP mask255.255.255.0This is used only together with the static IP address304 – 307
GatewayIP-address192.168.0.1This is used only together with the static IP address for the connection with other networks or as the address of DNS/DHCP servers308 – 311
DHCP dynamic addressing mode0 – 210: the specified values of the gateway, mask, and static IP address are used for addressing in Ethernet; 1: The product uses the network’s DHCP server to determine the gateway, mask, and masked part of the IP address that denotes the network. The remaining part of the address is used from the specified static address. If the server is unavailable, static addressing values are used; 2: The product uses the DHCP server to determine the gateway, mask, and IP address312
Switch on the IP address filter of the DHCP server0 – 10This is used for dynamic addressing. 0: receiving the addressing data from the DHCP server that answered first; 1: receiving the data of addressing only from the DHCP server with the IP address of the gateway313
Switch on the use of the gateway DNS server0 – 11This is used, if DHCP is inaccessible (switched off). 0: Gateway DNS is not used; 1: Gateway DNS is used to identify IP addresses of other servers, if they are set by host names314
IP address of DNS serverIP-address8.8.8.8This is used, if DHCP is inaccessible (switched off). When it is switched on and the gateway DNS server is used, the IP-address of the DNS additional server is set315 – 318
IP address of the DNS additional serverIP-address0.0.0.0This is used, if DHCP is inaccessible (disabled). 0.0.0.0: is not used319 – 322
Switch on the MAC address redefinition0 – 100: the value unique for each product is used as the MAC address; 1: the manually set MAC address is used323
Ethernet MAC address set manuallyMAC addressUnique for each productThis is used when MAC manual address is on for identification of the product on the Ethernet network324 – 329
ParameterRangeFactory ValueDescriptionAddress
Optional MODBUS RTU/ASCII connection port via TCP or in tunnel mode0 – 655350Used for external connection to EM-483 via Ethernet for exchange via MODBUS RTU, MODBUS ASCII protocol or in tunnel mode. The format is the same as used for RS-485 interface (reg. 463, 637). For MODBUS − only packets containing whole frames are processed, if TCP packets are fragmented, the connection is closed. 0: connection is not used335
Connection port via MODBUS TCP1 – 65535502This is used for external connection to EM-483 via Ethernet for exchanging with the use of MODBUS TCP protocol450
Disconnect inactive clients0 – 110: incoming connection is supported regardless of the time between requests from the client; 1: disconnect the clients, from whom no requests have been received longer than the set time451
The longest request wait time, sec0 – 60000090This is used, if the disconnection of inactive clients is selected452 – 453
Enable queue for the last busy MODBUS TCP connection0 – 100: MODBUS TCP connection is supported regardless of the connection hold time; 1: If all MODBUS TCP connections are busy, the new client requesting a connection can be connected instead of the last connected client if the connection hold time is longer than the specified one454
Maximum hold time for the last MODBUS TCP connection, msec0 – 60000060000This is used, if the queue for the last MODBUS TCP connection is enabled455 – 456
Native MODBUS Identifier EM-4830 – 2471110: All MODBUS TCP requests are forwarded to the MODBUS network, the product registers are not available via MODBUS TCP; 1-247: The product responds to MODBUS TCP requests with this MODBUS ID without forwarding them to the MODBUS network457
RS-485 data transfer rate, bit/s75 – 2812509600This is used when exchanging with devices via RS-485, the same value for devices on the same bus458 – 459
Enable byte format selection in RS-485 transmissions0 – 11This is used when exchanging with devices via RS-485, the same value for devices on the same bus. 0: This is not used, the byte ends with 2 stop bits; 1: The byte format is selected from register 461460
Byte format in RS-485 transmissions0 – 55This is used when communicating with devices via RS-485 only if byte format selection is enabled. The same value for devices on the same bus. 0: “EVEN” – 1 parity bit and 1 stop bit; 1: “ODD” – 1 parity bit and 1 stop bit; 2: “0” (“SPACE”) – 1 zero bit and 1 stop bit; 3: “1” (“MARK”) – 1 single bit and 1 stop bit (similar to the mode with two stop bits); 4: “MISSING” – no parity bit, 1 stop bit; 5: “AUTO-STOP” – no parity bit, 2 stop bits in the sent bytes, 1 stop bit in the received ones (devices with 1 and 2 stop bits can be connected at the same time)461
Wait time for the start of the MODBUS RTU response, msec0 – 60000200Used for RS-485 transmissions in MODBUS RTU mode or tunnel mode. After sending the request, if the first byte of the response was not received within this time interval, the waiting for the response is terminated. The response is always expected to be at least the time of silence between frames (the time of silence depends on the transfer rate and is equal to the transfer time of 3.5 bytes or 1.75 ms for speeds over 19,200 bps)462
Enable ASCII exchange mode in the MODBUS network0 – 62MODBUS exchange mode, the same value for devices on the same bus. 0: RTU exchange mode (format: 1 start bit, 8 data bits, 2 stop bits, parity bit and stop bit, or only 1 stop bit – only 10 to 11 bits); 1: ASCII exchange mode (format: 1 start bit, 7 data bits, 2 stop bits or parity bit, and stop bit – 10 bits in total). Non-standard byte formats (register 461, values 4 and 5) are not available, but the format 3 (2 stop bits) is used instead; 2: similar to “0”, but with increased silence time between frames by 2 times; 3: similar to “2”, but 4 times; 4: similar to “2”, but 8 times; 5: similar to “2”, but 16 times; 6: similar to “2”, but 32 times463
Waiting time for the next MODBUS ASCII character, ms0 – 600001000Used for RS-485 transmissions in MODBUS ASCII mode. When receiving a response, if the next byte of the response was not received during this time interval, the waiting for the response is terminated. The waiting time is always equal at least to the transmission time of one character (depends on the transmission speed)464
ParameterRangeFactory ValueDescriptionAddress
Data collection server connection mode0 – 210: connection to the server is not used; 1: connection to the server is established and maintained through the specified server connection port (the port on the server side); 2: passive mode, the server is expected to connect via the specified server connection port (the port is on the EM-483 side)465
Server connection port0 – 6553520502The port that is accessed by the party establishing the connection between the EM-483 and the server (see register 465)466
Waiting time for a response from the server, sec0 – 36001200: server silence time is unlimited; 1-3600: the maximum server silence time, after which the connection will be terminated and must be re-established467
Waiting time before reconnecting to the server, sec0 – 3000015This is used when connecting to the server (except for the “2” mode). After the connection to the server is lost, the reconnection will be made after the specified waiting time (after starting the product, the first connection is made in fixed time – 5 seconds)468
Enable setting the server address with a text string0 – 11This is used when connecting to the server (except for mode “2”). 0: the connection is made to the server with a fixed IP address given in registers 470-473; 1: the connection is made to the server with the name specified in registers 474-509469
Server IP addressIP address0.0.0.0This is used when connecting to the server (except for the mode “2”), if setting the server address with a text string is disabled. The IP address of the remote server, connection to which is supported470 – 473
Server addressString of charsmodbus.overvis.comThis is used when connecting to the server (except for mode “2”), if setting the server address with a text string is enabled. The address of the remote server, connection to which is supported. The address can be a string up to 36 characters long. There can be no spaces in the string474 – 509
ParameterRangeFactory ValueDescriptionAddress
The specified password for entering the setup modeString of chars11111This is used to access the configuration mode. The password can be a string of 5 to 10 characters long. There should be no spaces in the string510 – 519
Set password for allowing MODBUS writing to devices via RS-485String of charsThis is used to access devices connected to EM-483 to request the write or control functions that can change the state of these devices. The password can be a string up to 10 characters long. There should be no spaces in the string550 – 559
The set password for allowing MODBUS readingString of charsThis is used to access devices connected to EM-483 to request read functions or to access EM-483 registers other than version, password, mode, and flag registers. The password can be a string up to 10 characters long560 – 569
Enable MODBUS write protection mode0 – 100: write protection is controlled by other parameters (password) or disabled; 1: any function requests other than MODBUS functions 1, 2, 3, 4, 7, 17, 20 are blocked572
Enable MODBUS read protection mode0 – 100: read protection is adjusted using other parameters (password) or disabled; 1: requests for MODBUS functions 1, 2, 3, 4, 7, 17, and 20 are blocked, except for read by function 3 of registers of the version, mode and flags573
ParameterRangeFactory ValueDescriptionAddress
Enable the product automatic restart0 – 110: periodical restart is disabled; 1: the product gets restarted in a set period of time630
Restart period, min5 – 7200120This is used, if the automatic restart is enabled631
Enable restart mode automatically only when there are no connections0 – 11This is used, if the automatic restart is enabled. 0: the product is restarted after a set period of time from the start-up; 1: the product is restarted after a set time interval from the last MODBUS transmission632
MODBUS exception code generated when access is denied0 – 25510: if access to MODBUS registers is denied, no response is returned to the client; 1 – 255: if access is denied to the client that sent the request, this exception code is returned633
MODBUS exception code generated when there is no answer0 – 255110: if there is no response from the request recipient (Gateway Timeout), the response is not returned to the client; 1 – 255: if there is no response from the request recipient, this exception code is returned to the client634
MODBUS exception code generated when there is no connection to the request destination0 – 255100: if there is no response from the request recipient (Gateway Path Unavailable), the response is not returned to the client; 1 – 255: if there is no response from the request recipient, this exception code is returned to the client636
RS-485 transmission mode0 – 200: master mode (Master). RS-485 is used to send requests; 1: slave mode (Slave). RS-485 is used to receive requests from an additional client; 2: tunnel mode, used for data transmission “as is”, without protocol verification637
The first MODBUS-identifier of the RS-4851 – 2551The parameters define the range of MODBUS identifiers used on RS-485. In master mode, requests with addresses in this range (as well as broadcasts with address 0) are routed via RS-485. In slave mode, requests with addresses in this range (as well as broadcast and EM-483 requests) are received over RS-485638
The last MODBUS identifier of the RS-4851 – 255255See register 638639
ParameterRangeFactory ValueDescriptionAddress
Connecting to the First Remote ServerIP address192.168.0.112This is used when redirecting requests to a remote server is enabled. This is the IP address of the remote server, to which the connection is supported640 – 643
Remote server connection port0 – 65535502Used when redirecting requests to a remote server. The port of the remote server to which the connection will be established644
Wait time for a response from the remote server, msec0 – 600001000This is used when redirecting requests to a remote server. After sending the request, if the correct response was not received during this time, the waiting for the response is terminated645
Wait time before the reconnection to the remote server, msec0 – 24020This is used when redirecting requests to a remote server. After the connection with the server is lost, the reconnection will occur in the set wait time646
Remote server connection mode0 – 300: remote server is not used; 1: connect to the server in MODBUS TCP mode; 2: similarly to 1 with virtual identifiers*; 3: connect to the server in tunnel mode647
The first MODBUS-identifier of the remote server1 – 2551This is used when redirecting requests to the remote server. The range of the MODBUS identifiers is used on the remote server. Requests with addresses in this range (and broadcasts with address 0) are sent to the MODBUS TCP remote server648
The last MODBUS identifier of the remote server1 – 255255See register 648649

* In virtual identifiers mode, before redirecting a request to a remote server MODBUS TCP, the virtual identifier of the destination from the request is replaced with the real one so that the numbering in the server range starts with 1. For example, for the range 15-17, the virtual ID 16 will be replaced with the real one 2. The broadcast ID 0 is processed without changes.

Similar to registers 640–649, with the factory value of the remote server IP address being 192.168.0.113.

ParameterAddress
Remote server IP address760 – 763
Remote server connection port764
Wait time for response, msec765
Wait time before reconnection766
Remote server connection mode767
First MODBUS-identifier768
Last MODBUS identifier769

Similar to registers 640–649, with the factory value of the remote server IP address being 192.168.0.114.

ParameterAddress
Remote server IP address770 – 773
Remote server connection port774
Wait time for response, msec775
Wait time before reconnection776
Remote server connection mode777
First MODBUS-identifier778
Last MODBUS identifier779

Similar to registers 640–649, with the factory value of the remote server IP address being 192.168.0.115.

ParameterAddress
Remote server IP address780 – 783
Remote server connection port784
Wait time for response, msec785
Wait time before reconnection786
Remote server connection mode787
First MODBUS-identifier788
Last MODBUS identifier789

Similar to registers 640–649, with the factory value of the remote server IP address being 192.168.0.116.

ParameterAddress
Remote server IP address790 – 793
Remote server connection port794
Wait time for response, msec795
Wait time before reconnection796
Remote server connection mode797
First MODBUS-identifier798
Last MODBUS identifier799
ParameterRangeFactory ValueDescriptionAddress
User’s settings and stored values0 – 655350May be used for storing any identification or other data5250 – 5499
ParameterDescriptionAddress
Virtual registersWhen accessing these registers, EM-483 transfers the request to another device. The real MODBUS identifier from the range 1-32 and the register addresses (in the range 0-999) depends on the virtual register address: <virtual register address> = 5000 + 1000 × <MODBUS identifier> + <real register address>6000 – 37999