This appendix contains the complete Modbus TCP register map for the EM-130 Programmable Astronomical Timer.
| Description | Range | Value upon resetting | W/R | Register address | Type |
|---|
| The Timer identifier | — | 32 | R | 0 | U16 |
| Microprogram version | — | 18 | R | 1 | U16 |
| MAC-address | — | Unique | R | 10 - 15 | U8 |
| Description | Range | Value upon resetting | W/R | Register address | Type |
|---|
| Current level of Wi-Fi signal, in dBm | -128 – 127 | — | R | 16 | S8 |
| Current IP address | 0 – FFFFFFFFh | C0A80401h (192.168.4.1) | R | 17 - 18 | U32 |
| Web-interface service state: 0-inactive; 1-serving clients | 0 – 1 | 0 | R | 19 | U16 |
| State of NTP service: 0-inactive; 1-executing DNS queries; 2-synchronizes time; 3-error | 0 – 3 | 0 | R | 20 | U16 |
| State of Overvis service: 0-inactive; 1-executing DNS queries; 2-executing connection to server; 3-waiting for data from the server; 4-error | 0 – 4 | 0 | R | 21 | U16 |
| State of Modbus TCP service: 0-inactive; 1-serving clients | 0 – 1 | 0 | R | 22 | U16 |
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
| Description | Range | Value upon resetting | W/R | Register address | Type |
|---|
| Current time, seconds from 1970 | 0 – FFFFFFFFh | — | WR | 27 - 28 | U32 |
| Flag of summer time correction | 0 – 1 | 0 | R | 29 | U16 |
| Sunrise time today, in seconds | 0 – 86400 | — | R | 42 - 43 | U32 |
| Sunset time today, in seconds | 0 – 86400 | — | R | 44 - 45 | U32 |
| Sunrise time on Mon, in minutes | 0 – 1440 | — | R | 46 | U16 |
| Sunrise time on Tue, in minutes | 0 – 1440 | — | R | 47 | U16 |
| Sunrise time on Wed, in minutes | 0 – 1440 | — | R | 48 | U16 |
| Sunrise time on Thu, in minutes | 0 – 1440 | — | R | 49 | U16 |
| Sunrise time on Fri, in minutes | 0 – 1440 | — | R | 50 | U16 |
| Sunrise time on Sat, in minutes | 0 – 1440 | — | R | 51 | U16 |
| Sunrise time on Sun, in minutes | 0 – 1440 | — | R | 52 | U16 |
| Sunset time on Mon, in minutes | 0 – 1440 | — | R | 53 | U16 |
| Sunset time on Tue, in minutes | 0 – 1440 | — | R | 54 | U16 |
| Sunset time on Wed, in minutes | 0 – 1440 | — | R | 55 | U16 |
| Sunset time on Thu, in minutes | 0 – 1440 | — | R | 56 | U16 |
| Sunset time on Fri, in minutes | 0 – 1440 | — | R | 57 | U16 |
| Sunset time on Sat, in minutes | 0 – 1440 | — | R | 58 | U16 |
| Sunset time on Sun, in minutes | 0 – 1440 | — | R | 59 | U16 |
| Description | Range | Value upon resetting | W/R | Register address | Type |
|---|
| «Start-up time», in minutes | -1440 – 1440 | 0 | R | 30 | S16 |
| «Cut-off time», in minutes | -1440 – 1440 | 0 | R | 31 | S16 |
| «Startup mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time | 0 – 3 | 0 | R | 32 | U8 |
| «Cut-off mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time | 0 – 3 | 0 | R | 33 | U8 |
| «Day of the week»: 0-Mon; 1-Tue; 2-Wed; 3-Thu; 4-Fri; 5-Sat; 6-Sun | 0 – 6 | 0 | R | 34 | U8 |
| «Type of event»: 0-no event; 1- event of start-up; 2- event of cut-off; 3-associated event | 0 – 3 | 0 | R | 35 | U8 |
| Description | Range | Value upon resetting | W/R | Register address | Type |
|---|
| «Start-up time», in minutes | -1440 – 1440 | 0 | R | 36 | S16 |
| «Cut-off time», in minutes | -1440 – 1440 | 0 | R | 37 | S16 |
| «Start-up mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time | 0 – 3 | 0 | R | 38 | U8 |
| «Cut-off mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time | 0 – 3 | 0 | R | 39 | U8 |
| «Day of the week»: 0-Mon; 1-Tue; 2-Wed; 3-Thu; 4-Fri; 5-Sat; 6-Sun | 0 – 6 | 0 | R | 40 | U8 |
| «Type of event»: 0-no event; 1- event of start-up; 2- event of cut-off; 3-associated event | 0 – 3 | 0 | R | 41 | U8 |
Instructions register (register 100, type U16, WR):
| Value | Command |
|---|
| 27964 | Starting synchronization of time and NTP server |
| 17513 | The EM-130 resetting |
| 37841 | Restore settings to comply with Manufacturer’s ones |
| 51930 | Save the settings in the flash memory |
| 31795 | Download the settings from the flash memory |
| 17960 | Start up the load control automatic mode |
| 17961 | Start up the load |
| 17962 | Cut off the load |
| Description | Range | Value upon resetting | W/R | Register address | Type |
|---|
| Entering access code to the EM-130 | ASCII string with NULL terminator | ’admin’ | WR | 101 - 164 | STR64 |
Instructions register (register 200, type U16, WR):
| Value | Command |
|---|
| 3768 | Read the first event into input/output registers |
| 5942 | Read the next event into input/output registers |
| 500 | Add an event from input/output registers |
| 505 | Cancel the event coinciding with input/output registers |
| 599 | Cancel all events |
| 10000…16143 | Cancel the event with this address |
Registers of event input-output:
| Description | Range | Value upon resetting | W/R | Register address | Type |
|---|
| «Start-up time», in minutes | -1440 – 1440 | 0 | WR | 201 | S16 |
| «Cut-off time», in minutes | -1440 – 1440 | 0 | WR | 202 | S16 |
| «Start-up mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time | 0 – 3 | 0 | WR | 203 | U8 |
| «Cut-off mode»: 0 - not used; 1 - sunrise time; 2 - sunset time; 3 - real time | 0 – 3 | 0 | WR | 204 | U8 |
| «Day of the week»: 0-Mon; 1-Tue; 2-Wed; 3-Thu; 4-Fri; 5-Sat; 6-Sun | 0 – 6 | 0 | WR | 205 | U8 |
| «Type of event»: 0-no event; 1- event of start-up; 2- event of cut-off; 3-associated event | 0 – 3 | 0 | WR | 206 | U8 |
| «Event address» | 10000 – 16142 | 0 | R | 207 | U16 |
| Description | Range | Value upon resetting | W/R | Register address | Type |
|---|
| Correction of real time clock, in seconds × 10 | -209 – 209 | 0 | WR | 500 | S16 |
| Time zone, in minutes | -720 – 780 | 120 | WR | 501 | S16 |
| Automatic transition to summer time and back | 0 – 1 | 1 | WR | 502 | U16 |
| Load control: 0-automatic, depending on events; 1- load is initiated; 2- load is OFF | 0 – 2 | 0 | WR | 503 | U16 |
| Latitude, in seconds: Less than 0 – south latitude; Over 0 – north latitude | -324000 – 324000 | 167280 | WR | 504 - 505 | U32 |
| Longitude, in seconds: Less than 0 – west longitude; Over 0 – east longitude | -648000 – 648000 | 110580 | WR | 506 - 507 | U32 |
| Zenith: 0-visible sunset; 1 - end of civil twilight; 2-end of nautical twilight; 3-end of astronomical twilight | 0 – 3 | 1 | WR | 508 | U16 |
| The EM-130 access code | ASCII string with NULL terminator | ’admin’ | WR | 509 - 572 | STR64 |
| Wi-Fi operating mode: 0 - disabled; 1 - access point; 2 - network client | 0 – 2 | 0 | WR | 573 | U16 |
| Wi-Fi frequency channel | 1 – 13 | 1 | WR | 574 | U16 |
| Hide SSID Wi-Fi | 0 – 1 | 0 | WR | 575 | U16 |
| Network parameters automatic setting (DHCP) | 0 – 1 | 1 | WR | 576 | U16 |
| IP address | 0 – FFFFFFFFh | C0A80065h (192.168.0.101) | WR | 577 - 578 | U32 |
| Gateway | 0 – FFFFFFFFh | C0A80001h (192.168.0.1) | WR | 579 - 580 | U32 |
| Subnet mask | 0 – FFFFFFFFh | FFFFFF00h (255.255.255.0) | WR | 581 - 582 | U32 |
| DNS 1 address | 0 – FFFFFFFFh | D043DEDE (208.67.222.222) | WR | 583 - 584 | U32 |
| DNS 2 address | 0 – FFFFFFFFh | 08080808h (8.8.8.8) | WR | 585 - 586 | U32 |
| Wi-Fi network name (SSID) | ASCII string with NULL terminator | ’EM130-xxxxxx’ | WR | 587 - 618 | STR32 |
| Wi-Fi network password | ASCII string with NULL terminator | ’00000000’ | WR | 619 - 682 | STR64 |
| Enable Web-interface service | 0 – 1 | 1 | WR | 683 | U16 |
| Web-interface service port | 1 – 65535 | 80 | WR | 684 | U16 |
| Enable Modbus TCP service | 0 – 1 | 0 | WR | 685 | U16 |
| Modbus TCP server port | 1 – 65535 | 502 | WR | 686 | U16 |
| Enable NTP service | 0 – 1 | 1 | WR | 687 | U16 |
| NTP server port | 1 – 65535 | 123 | WR | 688 | U16 |
| NTP server address | ASCII string with NULL terminator | ’time.windows.com’ | WR | 689 - 720 | STR32 |
| Enable Overvis service | 0 – 1 | 0 | WR | 721 | U16 |
| Overvis server port | 1 – 65535 | 20502 | WR | 722 | U16 |
| Overvis server address | ASCII string with NULL terminator | ’modbus.overvis.com’ | WR | 723 - 754 | STR32 |
| Type | Description |
|---|
| WR | Write/Read |
| U8 | Unsigned char (8 bits) |
| S8 | Signed char (8 bits) |
| U16 | Unsigned short (16 bits) |
| S16 | Signed short (16 bits) |
| U32 | Unsigned int (32 bits) |
| S32 | Signed int (32 bits) |
| STR32 | ASCII string with a length of 32 characters |
| STR64 | ASCII string with a length of 64 characters |