Satec ETC2002 Reference Manual

Network communicator modbus communications protocol

Advertisement

Quick Links

ETC2002
Modbus Communications Protocol
Reference Guide
© SATEC Ltd.
BG0367 Rev. A2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ETC2002 and is the answer not in the manual?

Questions and answers

Summary of Contents for Satec ETC2002

  • Page 1 ETC2002 Modbus Communications Protocol Reference Guide © SATEC Ltd. BG0367 Rev. A2...
  • Page 2 Every effort has been made to ensure that the material herein is complete and accurate. However, the manufacturer is not responsible for any mistakes in printing or faulty instructions contained in this book. Notification of any errors or misprints will be received with appreciation.
  • Page 3: Table Of Contents

    Table of Contents 1 GENERAL ....................5 2 MODBUS PROTOCOL IMPLEMENTATION..........6 Transmission Modes....................6 Address Field......................6 Function Field ......................6 Exception Responses ....................6 Modbus Register Addresses ..................6 Data Formats ......................7 Password Protection....................7 3 DATA SERVER ...................8 Data Server Features ....................8 Using Real-time Data Exchanges................9 3.2.1 Configuring Real-time Data Exchanges ..................9 3.2.2 Accessing Real-time Data Exchanges ..................9 3.2.3 Accessing Data Log Files .....................10...
  • Page 4 5 DATA FORMATS ..................21 Timestamp .........................21 Event Type ID ......................21 Event Data .........................21 Device Diagnostics (bitmap) ..................21 Shared Access Rules ....................22...
  • Page 5: General

    1 General This document specifies a subset of the Modbus serial communications protocol used to transfer data between a master computer station and the ETC2002. The document provides the complete information necessary to develop third-party communications software capable of communication with the ETC2002.
  • Page 6: Modbus Protocol Implementation

    Modbus protocol in the ETC2002. 2.1 Transmission Modes The ETC2002 can be set up to communicate on a Modbus network using ASCII or RTU transmission mode. Refer to the "ETC2002 Installation and Operation Manual " on how to select the transmission mode in your device.
  • Page 7: Data Formats

    2.6 Data Formats The ETC2002 uses two data formats to pass data between a master application and the device: 16-bit short integer and 32-bit long integer formats. Data logged by the ETC2002 Data Server is collected from instruments in 16-bit short integer format.
  • Page 8: Data Server

    The ETC2002 also provides up to 250 write data exchanges, of 1 to 12 registers long, and up to 250 status event data exchanges of 1 register long. Table 3-2 gives a summary of the available data exchanges.
  • Page 9: Using Real-Time Data Exchanges

    Real-time data exchanges occupy a single continuous block of registers without gaps and are located in the ETC2002 memory in the address range of 0 to 9000. Since exchanges may have different size, the location of each exchange in the memory depends on the size of all preceding exchanges. Use the following formula to define the location of the data exchange: −...
  • Page 10: Accessing Data Log Files

    3.2.3 Accessing Data Log Files Each data exchange is provided with a separate circular data log file. The Data server allocates a total of 1.5 Mbytes of non-volatile memory for all data log files, which will be equally divided between all active exchanges.
  • Page 11: Using Status Event Exchanges And Event Logs

    Data server detects a change in the status bits selected by the event mask, it records an event record to the circular Event log file. If the eXpertPower service is enabled in the ETC2002, this event will initiate a connection to the eXpertPower server.
  • Page 12: Using Data Write Exchanges

    The event log file is accessed in the same manner as data log files. Refer to Section 3.2.3 for details. 3.4 Using Data Write Exchanges The Data server can provide remote writing data to serviced devices upon user requests. Up to 250 write exchanges are supported with a size of 1 to 12 registers.
  • Page 13: Modbus Register Map

    4 Modbus Register Map 4.1 Data Server Registers Address Point ID Description Options/Range Units Type Notes Real-time Data Exchange Block 0-9000 Data Exchange #1 … … Data Exchange #N Exchange Layout (120 registers maximum): +0,1 Record status 0=No data, -1=corrupted record, UINT32 Device response: function code or 1-65534 = device response code...
  • Page 14: Event Log Transfer Blocks

    Address Point ID Description Options/Range Units Type Notes record, exception code (See 2.3-2.4) 1-65534 – device response code +2,3 Record time, seconds since 1/1/1970 UINT32 +4,5 Record sequence number 0-65535 UINT32 Data register 0-65535 UINT16 +119 Data register 0-65535 UINT16 Event Log Transfer Blocks 10016-10031 File Request Block...
  • Page 15: Device Control And Status Registers

    Factory Device Settings and Identification 46080-46207 +0, 1 Device serial number UINT32 +2, 3 Device model ID 2000, 2002 UINT32 +4-11 Device model name “ETC2000”, “ETC2002” CHAR16 Null-terminated string +12-19 Reserved UINT16 Device firmware version number UINT16 Device firmware build number UINT16 +22,23...
  • Page 16: Device Options Setup

    Address Point ID Description Options/Range Units Type Notes +99-128 Reserved Device Options Setup 46256-46271 Log output Bit 0 = Dumping to console, UINT16 Bit 2 = Server Log Bit 3 = XP log Bit 4 = IPLINK log Bit 5 = Data Server log Bit 6 = Sharing log Number of XP faults for reset 0-200...
  • Page 17: Modem Setup

    Address Point ID Description Options/Range Units Type Notes 3 = time locked +14-31 Reserved UINT16 Modem Setup 46448-46479 +0,1 Device IP Address 0x01000000-0xFFFFFFFF UINT32 +2,3 Network subnet mask 0x00000001-0xFFFFFFFF UINT32 +4,5 Network default gateway 0x00000000-0xFFFFFFFF UINT32 +6,7 Number of dial attempts 0–1000, 0-dial forever UINT32 +8,9...
  • Page 18: Password Setup

    Communications password (8 digits) 0 - 99999999 UINT32 Password protection enabled 0 = disabled, 1 = enabled UINT16 Reserved UINT16 +4-11 ETC2002 local Login name “” CHAR16 Null-terminated string Expert Power Service Setup 46768-46783 +0,1 Expert Power server IP Address 0x01000000-0xFFFFFFFF...
  • Page 19: Gateway Setup

    1=enabled, 0=disabled UINT16 0- default Continuous polling 1=enabled, 0=disabled UINT16 0- default +4-15 Reserved Gateway Setup 46992-46999 ETC2002 device address 1-247 UINT16 99 default Gateway device address range start 1-247 UINT16 1 default Gateway device address range end 1-247 UINT16...
  • Page 20: Device Routing Table

    However, simultaneous file accesses to the same device could destroy device file buffers so both clients may receive corrupted data. To prevent such collisions, the user can disable shared device accesses so the ETC2002 will reject any additional requests addressed to a device that is being accessed by another client. In this event, the ETC2002 will return an exception response with the error code 10 = “Gateway is busy”...
  • Page 21 5 Data Formats Format Code Value Description Notes Timestamp Local time in a UNIX-style format. Represents the number of seconds since midnight (00:00:00), January 1, 1970. The time is valid after January 1, 2000. Event Type ID IRIG-B Sync Event 0x0800 XP client event (See F3 for Event data contents) DI Event...
  • Page 22 Format Code Value Description Notes Bit 11 = 1 RTC fault Bit 12 = 1 Configuration fault Bit 13 Reserved Bit 14 Reserved Bit 15 = 1 Master EEPROM fault Bit 16 Reserved Bit 17 Reserved Bit 18 Reserved Bit 19 Reserved Bit 20 = 1 C Library error...

Table of Contents