Skip to content

Appendix A: Modbus TCP Registers

This appendix contains the complete Modbus TCP register map for the EM-130 Programmable Astronomical Timer.

DescriptionRangeValue upon resettingW/RRegister addressType
The Timer identifier32R0U16
Microprogram version18R1U16
MAC-addressUniqueR10 - 15U8
DescriptionRangeValue upon resettingW/RRegister addressType
Current level of Wi-Fi signal, in dBm-128 – 127R16S8
Current IP address0 – FFFFFFFFhC0A80401h (192.168.4.1)R17 - 18U32
Web-interface service state: 0-inactive; 1-serving clients0 – 10R19U16
State of NTP service: 0-inactive; 1-executing DNS queries; 2-synchronizes time; 3-error0 – 30R20U16
State of Overvis service: 0-inactive; 1-executing DNS queries; 2-executing connection to server; 3-waiting for data from the server; 4-error0 – 40R21U16
State of Modbus TCP service: 0-inactive; 1-serving clients0 – 10R22U16

Flags of the EM-130 state (registers 23 – 24, type U32, Read only):

  • bit 0: «Wi-Fi network client» operating mode is ON
  • bit 1: «Wi-Fi access point» mode is ON
  • bit 2: load relay is ON
  • bit 3: load relay manual control is ON
  • bit 4: Web-interface service is started up
  • bit 5: time and user’s device are synchronized
  • bit 6: time and server NTP are synchronized
  • bit 7: Wi-Fi networks scanning is executed
  • bit 8: polar night
  • bit 9: polar day
  • bit 10: Overvis service is started up
  • bit 11: NTP service is started up
  • bit 12: Modbus TCP service is started up
  • bit 13: Overvis full access
  • bit 14: Modbus TCP full access

Flags of the EM-130 errors (registers 25 – 26, type U32, Read only):

  • bit 0: real time clock error
  • bit 1: the EM-130 settings are damaged
DescriptionRangeValue upon resettingW/RRegister addressType
Current time, seconds from 19700 – FFFFFFFFhWR27 - 28U32
Flag of summer time correction0 – 10R29U16
Sunrise time today, in seconds0 – 86400R42 - 43U32
Sunset time today, in seconds0 – 86400R44 - 45U32
Sunrise time on Mon, in minutes0 – 1440R46U16
Sunrise time on Tue, in minutes0 – 1440R47U16
Sunrise time on Wed, in minutes0 – 1440R48U16
Sunrise time on Thu, in minutes0 – 1440R49U16
Sunrise time on Fri, in minutes0 – 1440R50U16
Sunrise time on Sat, in minutes0 – 1440R51U16
Sunrise time on Sun, in minutes0 – 1440R52U16
Sunset time on Mon, in minutes0 – 1440R53U16
Sunset time on Tue, in minutes0 – 1440R54U16
Sunset time on Wed, in minutes0 – 1440R55U16
Sunset time on Thu, in minutes0 – 1440R56U16
Sunset time on Fri, in minutes0 – 1440R57U16
Sunset time on Sat, in minutes0 – 1440R58U16
Sunset time on Sun, in minutes0 – 1440R59U16
DescriptionRangeValue upon resettingW/RRegister addressType
«Start-up time», in minutes-1440 – 14400R30S16
«Cut-off time», in minutes-1440 – 14400R31S16
«Startup mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time0 – 30R32U8
«Cut-off mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time0 – 30R33U8
«Day of the week»: 0-Mon; 1-Tue; 2-Wed; 3-Thu; 4-Fri; 5-Sat; 6-Sun0 – 60R34U8
«Type of event»: 0-no event; 1- event of start-up; 2- event of cut-off; 3-associated event0 – 30R35U8
DescriptionRangeValue upon resettingW/RRegister addressType
«Start-up time», in minutes-1440 – 14400R36S16
«Cut-off time», in minutes-1440 – 14400R37S16
«Start-up mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time0 – 30R38U8
«Cut-off mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time0 – 30R39U8
«Day of the week»: 0-Mon; 1-Tue; 2-Wed; 3-Thu; 4-Fri; 5-Sat; 6-Sun0 – 60R40U8
«Type of event»: 0-no event; 1- event of start-up; 2- event of cut-off; 3-associated event0 – 30R41U8

Instructions register (register 100, type U16, WR):

ValueCommand
27964Starting synchronization of time and NTP server
17513The EM-130 resetting
37841Restore settings to comply with Manufacturer’s ones
51930Save the settings in the flash memory
31795Download the settings from the flash memory
17960Start up the load control automatic mode
17961Start up the load
17962Cut off the load
DescriptionRangeValue upon resettingW/RRegister addressType
Entering access code to the EM-130ASCII string with NULL terminator’admin’WR101 - 164STR64

Instructions register (register 200, type U16, WR):

ValueCommand
3768Read the first event into input/output registers
5942Read the next event into input/output registers
500Add an event from input/output registers
505Cancel the event coinciding with input/output registers
599Cancel all events
10000…16143Cancel the event with this address

Registers of event input-output:

DescriptionRangeValue upon resettingW/RRegister addressType
«Start-up time», in minutes-1440 – 14400WR201S16
«Cut-off time», in minutes-1440 – 14400WR202S16
«Start-up mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time0 – 30WR203U8
«Cut-off mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time0 – 30WR204U8
«Day of the week»: 0-Mon; 1-Tue; 2-Wed; 3-Thu; 4-Fri; 5-Sat; 6-Sun0 – 60WR205U8
«Type of event»: 0-no event; 1- event of start-up; 2- event of cut-off; 3-associated event0 – 30WR206U8
«Event address»10000 – 161420R207U16
DescriptionRangeValue upon resettingW/RRegister addressType
Correction of real time clock, in seconds × 10-209 – 2090WR500S16
Time zone, in minutes-720 – 780120WR501S16
Automatic transition to summer time and back0 – 11WR502U16
Load control: 0-automatic, depending on events; 1- load is initiated; 2- load is OFF0 – 20WR503U16
Latitude, in seconds: Less than 0 – south latitude; Over 0 – north latitude-324000 – 324000167280WR504 - 505U32
Longitude, in seconds: Less than 0 – west longitude; Over 0 – east longitude-648000 – 648000110580WR506 - 507U32
Zenith: 0-visible sunset; 1 - end of civil twilight; 2-end of nautical twilight; 3-end of astronomical twilight0 – 31WR508U16
The EM-130 access codeASCII string with NULL terminator’admin’WR509 - 572STR64
Wi-Fi operating mode: 0 - disabled; 1 - access point; 2 - network client0 – 20WR573U16
Wi-Fi frequency channel1 – 131WR574U16
Hide SSID Wi-Fi0 – 10WR575U16
Network parameters automatic setting (DHCP)0 – 11WR576U16
IP address0 – FFFFFFFFhC0A80065h (192.168.0.101)WR577 - 578U32
Gateway0 – FFFFFFFFhC0A80001h (192.168.0.1)WR579 - 580U32
Subnet mask0 – FFFFFFFFhFFFFFF00h (255.255.255.0)WR581 - 582U32
DNS 1 address0 – FFFFFFFFhD043DEDE (208.67.222.222)WR583 - 584U32
DNS 2 address0 – FFFFFFFFh08080808h (8.8.8.8)WR585 - 586U32
Wi-Fi network name (SSID)ASCII string with NULL terminator’EM130-xxxxxx’WR587 - 618STR32
Wi-Fi network passwordASCII string with NULL terminator’00000000’WR619 - 682STR64
Enable Web-interface service0 – 11WR683U16
Web-interface service port1 – 6553580WR684U16
Enable Modbus TCP service0 – 10WR685U16
Modbus TCP server port1 – 65535502WR686U16
Enable NTP service0 – 11WR687U16
NTP server port1 – 65535123WR688U16
NTP server addressASCII string with NULL terminator’time.windows.com’WR689 - 720STR32
Enable Overvis service0 – 10WR721U16
Overvis server port1 – 6553520502WR722U16
Overvis server addressASCII string with NULL terminator’modbus.overvis.com’WR723 - 754STR32
TypeDescription
WRWrite/Read
U8Unsigned char (8 bits)
S8Signed char (8 bits)
U16Unsigned short (16 bits)
S16Signed short (16 bits)
U32Unsigned int (32 bits)
S32Signed int (32 bits)
STR32ASCII string with a length of 32 characters
STR64ASCII string with a length of 64 characters