AMIOA08 MODBUS RTU Commamd
AMIOA08 MODBUS RTU Commamd
DEMO : https://youtu.be/qS2_hhnYAhk
Note :
1 MODBUS command must be HEX
2 Slave address (device address) must be the same as the setting. You can also use this
command to query the current device address: FF 03 00 FD 00 01 00 24
3 The Baudrate and parity should be consistent
All states are mapped into 4xxxx range registers. The user can monitor the input and output
status of the module by reading or modifying the value of the 4xxxx interval register (03 06
16 function code)
Register Register contents Register Remarks R/W
address value
0x0080 DO digital output 0-65536 Digital output status 0-7 bits R/W
(128)
0x0090 DI digital input 0 Digital input status 0-7 bits R
(144)
0x00F7 Product ID 0-65535 SKU ID
(247) AMIOA08 2088
0x00F8 Automatic reporting 0-255 0: Query function (default) R/W
(248) of digital input(DI) 1-255: Automatically report,
status the unit is second.
1: Report every 1 second
2: Report every 2 seconds
10: Report every 10 seconds
Maximum interval of 255
seconds
0x00FA Input and output 0X0000- 0x0000 Unrelated(default) R/W
(250) relationship(DI-DO 0X0005 0x0001 Self-locking
relationship) 0x0002 Interlocking
0x0003 Momentary
0x0004 Interlocking(2 ch)
0x0005 Output=Input
Other values are the same as
0
0x00FB Factory Reset 00 Factory Reset: R/W
(251) Enter the following command
at the current baud rate:
FF 06 00 FB 00 00 ED E5
0x00FC Command Return 0-25 Time interval for command R/W
(252) Time return (unit: 40MS) Setting
value: 0-25
0x00FD RS485 address Read address:FF 03 00 FD 00 01 00 24; R/W
(253) (Station address) Set address to 0x02:
FF 06 00 FD 00 02 8C 25
0x00FE Baud rate 0-255 0:1200 1:2400 2:4800 R/W
(254) 3:9600(default)4:19200
5:38400 6:57600
7:115200
Others:Factory reset
0x00FF Parity 0-2 0 None Parity R/W
(255) 1 Even Parity
2 Odd Parity
Modbus Address(PLC):10001-10008
RS485 address : 0x01~0x3F
Function code: 0x02
Register address:0x0000-0x0007
Read number :0x0001-0x0008
Modbus Address(PLC):40145
RS485 address : 0x01~0x3F
Function code:0x03
Register address:0x0090
Read number: 0x0001
Modbus Address(PLC):00001-00008
RS485 address : 0x01~0x3F
Function code: 0x01
Register address:0x0000-0x0007
Read number :0x0001-0x0008
Modbus Address(PLC):40129
RS485 address : 0x01~0x3F
Function code:0x03
Register address:0x0080
Read number: 0x0001
Modbus Address(PLC):00001-00008
RS485 address : 0x01~0x3F
Function code:0x05
Register address:0x0000-0x0007
Modbus Address(PLC):40129
RS485 address :0x01~0x3F
Function code:0x06/0x10
Register address:0x0080
Modbus Address(PLC):00001-00008
RS485 address :0x01~0x3F
Function code:0x0F
Register address:0x0000-0x0007
Modbus Address(PLC):40129
RS485 address :0x01~0x3F
Function code:0x06/0x10
Register address:0x0080
Modbus Address(PLC):40254
RS485 address :0x01~0Xf8/0XFF
Function code:Write 0x06/0x10,Read 0x03
Register address:0x00FD(253)
Value: 2 bytes (values 1-248)
Note:With this command, there can be only one module on the bus 485,
More than one will go wrong!
Modbus Address(PLC):40255
RS485 address :0x01~0x3F
Function code:Write 0x06/0x16;Read 0x03
Register address:0x00FE(254)
Value: 2 bytes (values 0-7)
Modbus Address(PLC):40251
RS485 address :0x01~0x3F
Function code:Write 0x06/0x16;Read 0x03
Register address:0x00FA(250)
Value: 2 bytes (values 0-5)
For example, set the input and output to be unrelated, and change the
register value to 0X0000:
Send data(address 1):01 06 00 FA 00 00 A9 FB
Return data :01 06 00 FA 00 00 A9 FB
Register value:
0x0000 Unrelated(default)
0x0001 Self-locking relationship
0x0002 Interlocking relationship
0x0003 Momentary relationship
0x0004 Interlocking relationship (2 channels)
0x0005 Output=Input
Other values are the same as 0x0000
4. Set DI digital input status to automatically report (8 channels are set at the
Send data
RS485 address Functio Register address Read number (2) CRC16(2
(Station address) n (1) (2) )
(1)
Returns data
RS485 address Functio Number of bytes data (n) CRC16(2
(Station address) n (1) (1) )
(1)
Modbus Address(PLC):40249
RS485 address :0x01~0x3F
Function code:Write 0x06/0x16;Read 0x03
Register address:0x00F8(248)
Value: 2 bytes (values 0-255)
For example : For example, the current query function should be changed
to automatic reporting:
Modbus Address(PLC):40253
RS485 address :0x01~0x3F
Function code:Write 0x06/0x16;Read 0x03
Register address:0x00FC(252)
Value: 2 bytes (values 0-25)
Note: The maximum can be set to 1000MS. If it exceeds 1000MS, that is,
the setting value is greater than 25, and the data return delay will be
initialized.
That is: 01 06 00 FC 00 20 48 22 can make the data return delay to restore
initialization 0
6.Set Parity
Send data
RS485 address Functio Register address Read number (2) CRC16(2
(Station address) n (1) (2) )
(1)
Returns data
RS485 address Functio Number of bytes data (n) CRC16(2
(Station address) n (1) (1) )
(1)
Modbus Address(PLC):40256
RS485 address :0x01~0x3F
Function code:Write 0x06/0x16;Read 0x03
Register address:0x00FF(255)
Value: 2 bytes (values 0-2)
7.Factory reset:
Send data
RS485 address Functio Register address Read number (2) CRC16(2
(Station address) n (1) (2) )
(1)
Returns data
RS485 address Functio Number of bytes data (n) CRC16(2
(Station address) n (1) (1) )
(1)
Modbus Address(PLC):40252
RS485 address : 0x01~0x3F
Function code:Write 0x06;
Register address:0x00FB(251)
Send data(address 1):FF 06 00 FB 00 00 ED E5
Return data :FF 06 00 FB 00 00 ED E5
You can also open the shell to reset the hardware: short the RES