background image

1 Modbus RTU Protocol 

 

 

18 

 

© Copyright Reserved Autonics Co., Ltd. 

1.8

 

Exception response-error code 

If occurs an error, send a response command and transmit each Exception Code after set(1) the 

highest-level bit of received command (Function). 

Slave address  Function 

+80 H 

Exception 

code 

Error check (CRC16) 

Low 

High 

1Byte 

1Byte 

1Byte 

1Byte 

1Byte 

 

  ILLEGAL FUNCTION (Exception Code: 01 H) 

: A command that is not supported 

  ILLEGAL DATA ADDRESS (Exception Code: 02 H) 

: Starting address of queried data is inconsistent with transmittable address from the     

  device. 

  ILLEGAL DATA VALUE (Exception Code: 03 H) 

: Numbers of queried data are inconsistent with the numbers of transmittable   

  (transferable) data from the device. 

  SLAVE DEVICE FAILURE (Exception Code: 04 H) 

: Not properly completed the queried command (order). 

 
Read the output status of non-existing coil 001001 (03E8 H) [ON: 1, OFF: 0] on Slave (Address 

17) from Master. 

  Query (Master) 

Slave address  Function  Starting address 

No. of points 

Error check (CRC16) 

High 

Low 

High 

Low 

Low 

High 

11 H 

01 H 

03 H 

E8 H 

00 H 

01 H 

## H 

## H 

  Response (Slave) 

Slave address Function 

+80 H 

Exception Code 

Error check (CRC16) 

Low 

High 

11 H 

81 H 

02 H 

## H 

## H 

 

 
 
 
 
 
 
 
 
 
 
 
 
 

CRC16 

Содержание SPR1 Series

Страница 1: ... Copyright Reserved Autonics Co Ltd i ...

Страница 2: ...ii Copyright Reserved Autonics Co Ltd ...

Страница 3: ...g an Autonics product Please familiarize yourself with the information contained in the Safety Considerations section before using this product This user manual contains information about the product and its proper use and should be kept in a place where it will be easy to access ...

Страница 4: ...or reproduced in either part or whole without permission A user manual is not provided as part of the product package Visit our web site www autonics com to download a copy The manual s content may vary depending on changes to the product s software and other unforeseen developments within Autonics and is subject to change without prior notice Upgrade notice is provided through out homepage We con...

Страница 5: ...Communication Protocol Copyright Reserved Autonics Co Ltd v Communication Protocol SPR1 Series is accepted to Modbus RTU Protocol Users should be aware that it does not support a broadcast command ...

Страница 6: ...ls Symbol Description Supplementary information for a particular feature Failure to follow instructions can result in serious injury or death Failure to follow instructions can lead to a minor injury or product damage An example of the concerned feature s use 1 Annotation mark ...

Страница 7: ...it while connected to a power source Failure to follow this instruction may result in electric shock or fire Check Connections before wiring Failure to follow this instruction may result in fire Do not disassemble or modify the unit Failure to follow this instruction may result in electric shock or fire Use the unit within the rated specifications Failure to follow this instruction may result in f...

Страница 8: ...Safety Considerations viii Copyright Reserved Autonics Co Ltd ...

Страница 9: ...unc 03 03H 13 1 4 Read input registers Func 04 04H 14 1 5 Force single coil Func 05 05H 15 1 6 Preset single register Func 06 06H 16 1 7 Preset multiple registers Func 16 10H 17 1 8 Exception response error code 18 2 Modbus Mapping Table 19 2 1 Read coil status Force single coil 19 2 2 Read input status 19 2 3 Read input registers 19 2 4 Read holding registers Func 03 Preset single register Func 0...

Страница 10: ...Table of Contents x Copyright Reserved Autonics Co Ltd ...

Страница 11: ...Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte If read the 10 output status ON 1 OFF 0 within coil 000001 0000 H to 000010 0009 H on Slave Address 17 from Master Query Master Slave address Function Starting address No of points Error check CRC16 High Low High Low Low High 11 H 01 H 00 H 00 H 00 H 0A H H H If the values range from coil 000008 0007 H to 000001 0000 H on the Slave are ON ON OFF OFF ON ON O...

Страница 12: ...Byte 1Byte 1Byte 1Byte 1Byte If read the 10 input status ON 1 OFF 0 within range 100001 0000 H to 100010 0009 H in the Slave Address 17 from the Master Query Master Slave address Function Starting address No of points Error check CRC16 High Low High Low Low High 11 H 02 H 00 H 00 H 00 H 0A H H H If the values range 100008 0007 H to 100001 0000 H on Slave are ON ON OFF OFF ON ON OFF ON and the valu...

Страница 13: ...RC16 High Low High Low High Low Low High 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte If read the 2 values from Holding Register 400001 0000 H to 400002 0001 H in Slave Address 17 from the Master Query Master Slave address Function Starting address No of points Error check CRC16 High Low High Low Low High 11 H 03 H 00 H 00 H 00 H 02 H H H If the value of 400001 0000 H on Slave...

Страница 14: ...gh Low High Low High Low Low High 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte If read the 2 values within the range from Input Register 300001 0000 H to 300002 0001 H on Slave Address 17 from Master Query Master Slave address Function Starting address No of points Error check CRC16 High Low High Low Low High 11 H 04 H 00 H 00 H 00 H 02 H H H If the values of 300001 0000 H and...

Страница 15: ...e 1Byte 2 Response Slave Slave address Function Starting address Preset data Error check CRC16 High Low High Low Low High 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte If Coil 000001 0000 H turns ON of Slave Address 17 from Master Query Master Slave address Function Starting address Preset data Error check CRC16 High Low High Low Low High 11 H 05 H 00 H 00 H FFH 00 H H H Response Slave Slave add...

Страница 16: ...esponse Slave Slave address Function Starting address Preset data Error check CRC16 High Low High Low Low High 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte 1Byte If write 10 A H to Holding Register 40001 0000 H on Slave Address 17 from Master Query Master Slave address Function Starting address Preset data Error check CRC16 High Low High Low Low High 11 H 06 H 00 H 00 H 00 H 0A H H H Response Slave S...

Страница 17: ...10 A H in common to the range of Holding Register 400001 0000 H to 400002 0001 H on Slave Address 17 from Master Query Master Slave address Function Starting Address No of register Byte count Data Data Error check CRC16 High Low High Low High Low High Low Low High 11 H 10 H 00 H 00 H 00 H 02 H 04 H 00 H 0A H 00 H 0A H H H Response Slave Slave address Function Starting address No of register Error ...

Страница 18: ...queried data is inconsistent with transmittable address from the device ILLEGAL DATA VALUE Exception Code 03 H Numbers of queried data are inconsistent with the numbers of transmittable transferable data from the device SLAVE DEVICE FAILURE Exception Code 04 H Not properly completed the queried command order Read the output status of non existing coil 001001 03E8 H ON 1 OFF 0 on Slave Address 17 f...

Страница 19: ...status 0 OFF 1 ON 100009 0008 02 R DI 3 input DI 3 input status 0 OFF 1 ON 100010 to 100050 02 R Reserved 2 3 Read input registers No Address Func R W Parameter Description Setting Range Unit Factory Default Note 300001 to 300100 04 R Reserved 300101 0064 04 R Product number H 0 Dedicated model number 300102 0065 04 R Product number L 0 300103 0066 04 R Hardware version 0 300104 0067 04 R Software...

Страница 20: ...UT lamp Control output indicator 0 OFF 1 ON Bit 3 V lamp Unit indicator 0 OFF 1 ON Bit 4 A lamp Unit indicator 0 OFF 1 ON Bit 5 RUN D I RUN contact input status 0 OFF 1 ON Bit 6 AUTO D I AUTO contact input status 0 OFF 1 ON Bit 7 RESET D I RESET contact input status 0 OFF 1 ON Bit 8 301009 03F0 2 04 R Fuse Alarm Fuse break alarm 0 OFF 1 ON Bit 0 Over Curr Alarm Overcurrent alarm 0 OFF 1 ON Bit 1 O...

Страница 21: ...0 400056 0037 03 06 16 R W DIS Front display IN L V L A L W IN 400057 0038 03 06 16 R W OCV Overcurrent alarm value 0 to 120 0 to 120 120 400058 0039 03 06 16 R W OCT Overcurrent alarm delay time 0 to 100 0 to 100 sec 5 400059 003A 03 06 16 R W OVV Overvoltage alarm value 0 to 120 0 to 120 120 400060 003B 03 06 16 R W OVT Overvoltage alarm delay time 0 to 100 0 to 100 sec 5 400061 003C 03 06 16 R ...

Страница 22: ...2 Modbus Mapping Table 22 Copyright Reserved Autonics Co Ltd MCY SPRC1 V1 2 1807US ...

Отзывы: