Aquagem iWash Communication Protocol Manual

Modbus automatic mulitiport valve

Advertisement

Quick Links

COMMUNICATION PROTOCOL
Modbus Manual
Automatic Mulitiport Valve - iWash
1

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Aquagem iWash

  • Page 1 COMMUNICATION PROTOCOL Modbus Manual Automatic Mulitiport Valve - iWash...
  • Page 2: Product Version Information(Read Only

    2.4.Function code 06H frame format ......................6 2.5.Function code 10H frame format ......................7 2.6.Error frame format ............................7 3. iWash Register Read and Write ........................... 8 3.1.Contents description ............................ 8 3.2.Real time data ..............................8 3.3. 485-Modbus control mode ........................10 3.4.
  • Page 3 1.3. RS-485 Wiring Each iWash provided with Modbus RTU communication is equipped with RS-485 port. The RS485 terminal is a 7-pin aviation plug. A and B are mandatory for the correct communication of the device. GND can be connected to the data common ground, if available and needed. RS485 is a differential signal so no common ground is required.
  • Page 4 7-pin aviation plug Name Color Description PIN 1 PIN 2 BLACK PIN 3 WHITE PIN 4 GREY PIN 5 YELLOW RS485 Ground PIN 6 GREEN RS485 A PIN 7 BROWN RS485 B 1.4. Recommend Cable Cable used is non-shielded or shielded twisted pair cable with wire area of 0.35-1.5 mm2. The cable recommended in this type of connection has 2 twisted pairs.
  • Page 5: Byte Format

    Note: iWash does not support broadcast mode Function code: The function code tells the addressed slave device what operation to perform and occupies one byte. The function codes used by the iWash are listed in the table below (H for hexadecimal). Function Explanation...
  • Page 6 Data:The data field is where the host and slave exchange data by reading and writing registers of variable length. The data in the data field is transmitted in big-endian byte order, i.e., the high byte is transmitted first and the low byte is transmitted second. For example, if the integer data of a register is 0x1234, then 0x12 will be sent first and then 0x34 will be sent.
  • Page 7 1 byte 2 bytes 2 bytes 2 bytes Note: The iWash only supports partial register concatenation when using the 10H function code setting. Specific examples can be found in Chapter 3. 2.6.Error check frame If an error should occur while processing a request, the power meter gives an ex-ception response that contains an exception code.
  • Page 8: Supported Function Code:03H

    Register address Hexadecimal start register address. (Hex) Documentation for the default address of the iWash is 0AH, the actual Device address application can be modified according to requirements Data ending with the letter "H" and data beginning with "0x" are xxxxH 、0xABCD...
  • Page 9 Example1-Reading a single data - reading a valve error:: Request frame of reading a valve fault Device address 0x0A Function code 0x03 Register high byte 0x10 Register low byte 0x00 No. of registers high byte 0x00 No. of registers low byte 0x01 CRC16 low byte 0x81 CRC16 high byte...
  • Page 10: Register Address (Hex

    1: Enable 485-modbus control 0:Disable 485-modbus control iWash is the master, it can connect with the single-speed or inverter pool pump to activate the automatic backwash function. 1:Enable 485-modbus control iWash is the slave, it will receive the commands from the master. When the 485-modbus control is enabled, the setting and operation on the control panel of the iWash will be invalid, and the pool pump and the iWash no need to be connected together.
  • Page 11: Register Applicable Quantity Device

    Example:iWash switching to 485-modbus control mode Request frame for iWash to switch to 485-modbus control mode: Device address 0x0A Function code 0x06 Register high byte 0x20 Register low byte 0x00 Register data high byte 0x00 Register data low byte 0x01...
  • Page 12 0:Mpa feedback value 1:Kpa 2002 Unsigned iWash-24S for a pressure 2:psi transmitter 3:bar The default value of the pressure transmitter is 0:Mpa, the display unit can be switched by changing the contents of the register 2002, the change in this value directly changes the value of the monitor...
  • Page 13 Pump backwash speed Unsigned iWash-24S Auto backwash pressure Unsigned 3005 value 3006 Pump control modes Unsigned The speed of pump inverter Unsigned 3007 when valve switching Local time setting (Hour: Unsigned 3008 Minutes) Note:For detailed parameters, please refer to iWash product manual...
  • Page 14 Example 1:Set“Automatic backwash time” The request frame of setting the auto backwash time 5 minutes: Device address 0x0A Function code 0x06 Register high byte 0x30 Register low byte 0x00 Register data high byte 0x00 Register data low byte 0x05 CRC16 low byte 0x47 CRC16 high byte 0xB2...
  • Page 15 Example 3-Read the values of multiple parameters: Read the request frame for the value of 5 registers starting from the 3000H address Device address 0x0A Function code 0x03 Register high byte 0x30 Register low byte 0x00 No. of registers high byte 0x00 No.
  • Page 16 3.7. IO Port Status Supported function code:03H IO port status register: Register Applicable address Contents Numerical range Data type Register Number device (Hex) bit0:DI1 bit1:DI2 iWash-24 1008 DI input status Unsigned bit2~bit15 reserve bit0:relay1 Relay output bit1:relay2 iWash-24 1009 Unsigned status bit2~bit15 reserve Example:Read DI input status...
  • Page 17 Supported function code:03H Device information registers: Register Register quantity Applicable address Contents Data type (16bit) device (Hex) 0000 Product name ASCII iWash-24S 0005 Driver firmware version ASCII iWash-24S 000A Driver hardware version ASCII iWash-24S 000F Display UI firmware version ASCII iWash-24S 0014...
  • Page 18: Table Of Contents

    So product name is 0x0A69576173682D32345320,i.e. “iWash-24S”。 Attention: the data format of product information is ascii code. 3.9. Product version information(Read only) Supported function code:03H Firmware and hardware versions of product drivers and displays, in decimal format. Product version information registers :...
  • Page 19 Default Register Applicable address Contents Numerical range Data type quantity device (Hex) 5000 Device address 1~247 Unsigned iWash-24S 0: reserve 1: reserve 2: 1200BPS 3: 2400BPS 4: 4800BPS 5001 Baud rate Unsigned iWash-24S 5: 9600BPS 6: 19200BPS 7: 38400BPS 8: 57600BPS...
  • Page 20 0:no check-data format<8,N,2> 1:Even parity check- data format<8,E,1> 5002 Byte format Unsigned iWash-24S 2:Odd parity check-data format<8,O,1> 3:no check-data format<8,N,1> CRC Sending 0:CRC low byte 5003 Unsigned iWash-24S sequence 1:CRC high byte Attention:When communication parameters are modified, you need to use the modified parameters for communication again.
  • Page 21 When setting Modbus-RTU communication parameters, the 10H command is supported to modify 5000 to 5002 parameters at one time. Example 2: modifying multiple communication parameters at one ttime Request frame with address 1, baud rate 115200, and byte format 8,N,1 for setting Modbus-RTU communication parameters.
  • Page 22 Switch position timeout 0x0024 36 and position not correct Switching to the default 0x0025 37 position overtime when power on Current Pump controller iWash-24 8000 0x0026 38 Unsigned 1 errors communication error 0x0027 39 Pump controller error Switch power supply 0x0028 40...
  • Page 23 Example:Read current errors Request frame of reading current errors : Device address 0x0A Function code 0x03 Register high byte 0x80 Register low byte 0x00 No. of registers high byte 0x00 No. of registers low byte 0x01 CRC16 low byte 0xAC CRC16 high byte 0xB1 Response frame of the device :...

Table of Contents