ETC2002
Modbus Communications Protocol
Reference Guide
©
SATEC Ltd.
BG0367 Rev. A2
Страница 1: ...ETC2002 Modbus Communications Protocol Reference Guide SATEC Ltd BG0367 Rev A2 ...
Страница 2: ...istakes in printing or faulty instructions contained in this book Notification of any errors or misprints will be received with appreciation For further information regarding a particular installation operation or maintenance of equipment contact the manufacturer or your local representative or distributor Modbus is a trademark of Modicon Inc ...
Страница 3: ...anges 12 4 MODBUS REGISTER MAP 13 4 1 Data Server Registers 13 Real time Data Exchange Block 13 Data Write Exchange Block 13 Data Log Transfer Blocks 13 Event Log Transfer Blocks 14 4 2 Digital Inputs 14 4 3 Device Control and Status Registers 15 Device Mode Control Registers factory set 15 Device Diagnostics Register bit map 15 Device Authorization Register 15 Factory Diagnostic Registers 15 4 4 ...
Страница 4: ...4 5 DATA FORMATS 21 Timestamp 21 Event Type ID 21 Event Data 21 Device Diagnostics bitmap 21 Shared Access Rules 22 ...
Страница 5: ...e of communication with the ETC2002 Additional information concerning communications operation configuring the communications parameters and communications connections is found in ETC2002 Installation and Operation Manual IMPORTANT Most of the advanced features are configured using multiple setup parameters that can be accessed in a number of contiguous registers When writing the setup registers i...
Страница 6: ...e register 16 Preset multiple registers Write multiple registers 081 Loop back test Communications test 1The ETC2002 supports only diagnostic code 0 return query data 2 4 Exception Responses The instrument sends an exception response when an error is detected in the received message To indicate that the response is notification of an error the high order bit of the function code is set to 1 Implem...
Страница 7: ... can disable or enable password protection through communications or via the Terminal For details refer to the ETC2002 Installation and Operation Manual When password protection is enabled the user password you set in the ETC2002 should be written into the device authorization register 44378 44379 before another write request is issued If the correct password is not supplied while password protect...
Страница 8: ...d in the ETC2002 exchanges memory blocks and is periodically refreshed at programmed intervals The ETC2002 provides up to 250 real time data exchanges of 1 to 114 registers long These exchanges can be directly accessed by the master application If the user wishes acquired data can be periodically moved to historical circular files where it will be kept for a long time until it is overwritten by ne...
Страница 9: ...exchange is 6 exchange block size The total size of all exchanges should not exceed 9000 registers Table 3 4 Data Exchange Record Description Range Record heading Record status 0 no data 1 corrupted record 1 65534 device response code Record time seconds since 1 1 1970 Record sequence number 0 65535 Data block variable size Data registers up to 114 If data logging is globally enabled in the Data s...
Страница 10: ...record which sequence number is known you can change the pointer position by issuing the Set File Position request with the desired sequence number If you want to read a file from the beginning write the Reset File Position request that moves the pointer to the oldest file record If you use the Read Record request that does not change the file position then you will continue reading the file from ...
Страница 11: ... 1 1 holding register Modbus request type 3 The Data server supports the auto reset option you can use to clear a latched device status register after it has been read In most devices critical events are latched into a status register so the new events are not generated until the register is explicitly cleared by a master application Since status registers may be implemented in the device either a...
Страница 12: ...47 Write enabled 1 enabled 0 disabled Configured data exchanges are accessed via the data write exchange block It occupies 14 registers in the address range of 9200 to 9213 Table 3 10 shows the write exchange layout Table 3 10 Write Exchange Block Description Range Exchange number 0 249 Write flag 0 Data has been written 1 Data is waiting to be written Data register 1 Data register 12 To send data...
Страница 13: ...been written 1 Data is waiting to be written UINT16 R W 2 Data register 0 65535 UINT16 R W 13 Data register 0 65535 UINT16 R W Data Log Transfer Blocks 9120 9135 File Request Block 0 Function 3 set file position 5 reset file position 11 read file UINT16 R W 3 changes the file position 5 sets the file position at the first oldest record 11 opens the file for reading from the present file position 1...
Страница 14: ...with functions 3 11 0 65535 UINT16 R W The record sequence number with function 11 does not change the file position 2 12 Reserved 13 First oldest record sequence number UINT16 R 14 Next sequence number to be used UINT16 R 15 Reserved 10000 10009 File Transfer Block 0 1 Event log status 0 no new events 1 data is valid 1 current record corrupted UINT32 R 2 3 Event sequence number 0 65535 UINT32 R 4...
Страница 15: ...n read 0 access permitted 1 authorization required 0 99999999 write 0 1 read INT32 R W 44380 44385 Reserved 44386 45951 Reserved Factory Diagnostic Registers 45952 46079 Factory diagnostic registers UINT32 R 4 4 Device Setup Registers Address Point ID Description Options Range Units Type R W Notes Factory Device Settings and Identification 46080 46207 0 1 Device serial number UINT32 R 2 3 Device m...
Страница 16: ...nd 4th week 5 the last week of the month UINT16 R W 4 DST start weekday 1 7 1 Sun 7 Sat UINT16 R W 5 DST end month 1 12 UINT16 R W 6 DST end week of the month 1 4 1st 2nd 3rd and 4th week 5 the last week of the month UINT16 R W 7 DST end weekday 1 7 1 Sun 7 Sat UINT16 R W 8 Clock synchronization source 0 GPS IRIG B master clock UINT16 R W 9 15 Reserved UINT16 Clock Setup and Status 46416 46447 0 1...
Страница 17: ...e 1 300 2 600 3 1200 4 2400 5 4800 6 9600 7 19200 8 38400 9 57600 10 115200 bps UINT16 R W 4 Data format 0 7 bits even parity 1 8 bits no parity 2 8 bits even parity UINT16 R W 5 Port direction 0 master 1 slave COM4 only UINT16 R W 0 default 6 Receive timeout COM4 master and COM5 only 500 30000 ms UINT16 R W 500 default 7 15 Reserved 46480 46495 COM3 Setup 46496 46511 COM4 Setup 46512 46527 COM5 S...
Страница 18: ...ons password 8 digits 0 99999999 UINT32 R W 2 Password protection enabled 0 disabled 1 enabled UINT16 R W 3 Reserved UINT16 R W 4 11 ETC2002 local Login name CHAR16 R W Null terminated string Expert Power Service Setup 46768 46783 0 1 Expert Power server IP Address 0x01000000 0xFFFFFFFF UINT32 R W 2 3 Expert Power server TCP service port 0 65535 5001 default UINT32 R W 4 5 Expert Power client enab...
Страница 19: ...ns flags bitmap Bit 0 auto reset 0 disabled 1 enabled Bit 1 register type 0 holding register request 3 1 coils request 1 UINT16 R W 9 15 Reserved 46960 46975 Write Data Exchange Setup 0 Exchange number 0 249 UINT16 R W Write an exchange number before reading the setup registers 1 Reserved UINT16 2 3 Start device register address 0 65535 UINT32 R W 4 5 Exchange block size registers 1 12 UINT32 R W ...
Страница 20: ...00000 0xFFFFFFFF UINT32 R W 32 49 Reserved 47300 52149 Reserved 1 Shared device access allows several clients to simultaneously access device registers either for a read or a write It is normally enabled so different clients can poll data registers in the same device without collisions However simultaneous file accesses to the same device could destroy device file buffers so both clients may recei...
Страница 21: ...for Event data contents External Event F2 0x6300 Action Cause See F3 for Event data contents Event Data 0 Power down 1 Reserved 2 RAM Data error 3 CPU Watchdog reset 4 Reserved 5 CPU exception 6 Reserved 7 Software Watchdog 8 Power up 9 Device reset 10 Configuration reset 11 RTC fault 12 Configuration fault 13 XP fault counter 14 Reset Timer expired 15 MASTER EEPROM fault 16 Event Log corrupted 17...
Страница 22: ...18 Reserved Bit 19 Reserved Bit 20 1 C Library error Bit 21 1 RTOS Kernel error Bit 22 1 Task error Bit 23 Reserved Shared Access Rules 0 No access limitation PM296 Family PM171 PM172 PM295 PM296 RPM096 locked registers 1 1120 1791 3916 4035 4608 5930 6144 6655 28160 28927 29440 32896 35456 35743 SA300 Family SA300 EM610 BFM136 PM174 PM175 locked registers F5 2 3072 3259 63120 65151 ...