waveshare Modbus RTU Pembejeo ya Analogi 8CH Mwongozo wa Mtumiaji

Uingizaji wa Analogi wa Modbus RTU 8CH
Zaidiview
Maelezo ya Vifaa
- Each channel can be individually configured for its range, making it more convenient for users.
“AIN+” is the positive input, and “AIN-” is the negative input. The module supports both differential and single-ended input. When used as a single-ended input, “AIN-” is connected to the ground.

Inasaidia juzuu yatagupatikanaji wa sasa wa e na wa sasa kwa wakati mmoja
Note: When inputting the different powers, it is important to connect the ground wire to establish a common ground. Otherwise, the collected data may be inaccurate. - Opening the device case, you can see jumpers are near the device terminals, corresponding to the eight channels Al1~Al8. You need to select the jumper mode based on the measurement signal; otherwise, the measurement data will be inaccurate.
- Wakati wa kupima ujazotage ishara, waya wa jumper kwa chaneli inayolingana inapaswa kukatwa.
- When measuring current signals, the jumper wire for the corresponding channel should be connected.

- Modbus RTU Analog Input 8CH defaults to current mode with the jumper wire connected. Modbus RTU Analog Input 8CH (B) defaults to voltage mode na waya wa jumper umekatika.
Ulinganisho wa Toleo
- Currently, there are two versions of the analog input series, one defaults to current input, and the other defaults to voltage pembejeo.
- Uingizaji wa Analogi wa Modbus RTU 8CH
Supports four ranges (configurable) 0-5V/1-5V 0-20mA (default) /4-20mA

- Modbus RTU Analogi Ingizo 8CH (B)
Supports four ranges (configurable): 0-10V (default)/2-10V 0~20mA/4~20mA

- Modbus RTU Analog Input 8CH Configurable range

- Modbus RTU Analog Input 8CH (B) Configurable range

Toleo Uingizaji wa Analogi wa Modbus RTU 8CH Modbus RTU Analogi Ingizo 8CH (B) Hali chaguo-msingi Hali ya sasa ya 8-ch, 0~20mA 8-ch juzuutage mode, 0~10V Kiwango cha kipimo 0~5V/1~5V0~20mA/4~20mA 0~10V/2~10V0~20mA/4~20mA Azimio 12-bit 12-bit Ya sasa sampupinzani wa ling 249Ω 499Ω Uendeshaji amplifier ratio 32.4/49.9 10/32.4 Kituo 8-AI 8-AI Each version has five range modes from 0 to 4.
Hali Modbus RTU Analogi Ingizo 8CH Modbus RTU Analogi Ingizo 8CH (B) 0 0~5V voltage mode 0~10V voltage mode 1 1~5V voltage mode 2~10V voltage mode 2 0~20mA current mode 0~20mA current mode 3 4~20mA current mode 4~20mA current mode 4 4096-scale code mode 4096-scale code mode - The scale code is the data collected by the AD converter and needs to undergo a linear transformation to obtain voltage or current data. The conversion formula is as follows.
- Voltage = Scale Code 3300/4095/Operational AmpLifier Uwiano
- Ya sasa = Juzuutage/Sampupinzani wa ling
Muunganisho wa Vifaa
- Connect the USB TO 485 to the target boards via cables, A-A and B-B connected as shown below:

Mtihani wa Programu
Msaidizi wa Utatuzi wa Bandari ya SSCOM
- Pakua SSCOM serial port debugging assistant and open it on the computer. Open the corresponding port number, set the baud rate as 9600, and select SendHEX and HEXshow.
Send the following command, and it will return the 8-channel analog input data normally.
01 04. 00 00 00 08 F1 CC

- If you need to send other commands, choose SendHEX. For checksum validation, select ModbusCRC16. After entering the first six bytes of the command, clicking SEND will automatically add the CRC check code. For example, tuma amri ifuatayo, unaweza kuweka njia ya kuingiza 1 hadi 4-20mA ya sasa.

- For more control commands, you can refer to the development protocol.
Programu ya Kura ya Modbus
- It is not convenient to use the SSCOM software for observing the data, you can select Modbus Poll software to read the data. Download and install the Modbus Poll software.
- Open the software, select Setup -> Read/Write Definition. Select the actual device address for Slave ID, 04 Read Input Registers (3x) for Function, and 8 channels for Quantity, and click “OK” to confirm.

- Select Connection->Connect…, choose the corresponding serial port, set the baud rate to 9600, and select 8 Data bits and None Parity. Click OK to connect.

- After successful connection, it can display the analog input data for channels 1-8.

- Modbus RTU Analog Input 8CH (A) displays the current by default, and the unit is uA.
Modbus RTU Analog Input 8CH (B) displays the voltage kwa chaguo-msingi, na kitengo ni mV. - Chagua File-> New to create a new window, select Setup->Read/Write Definition. Select the actual device address for Slave ID, 16 Write Multiple Registers for Function, Hex for Address Mode, 1000 for Address, and 8 channels for Quantity, and then click “OK” to confirm.

- The new window 2 can set up the measuring modes for different channels. For example, unaweza kuweka njia ya 1 kama 2, ambayo ni, 0 ~ 20mA hali ya sasa. Na kituo cha 1 cha dirisha 1 kitaonyesha sasa.
Kumbuka: Waya za ndani za jumper zinapaswa kurekebishwa wakati wa kubadilisha sasa na voltage mode, vinginevyo, data ya kipimo haitakuwa sahihi.

Mtihani wa Demo
Kumbuka: RS485 haiwezi kushikamana moja kwa moja kwenye bandari ya serial ya Raspberry Pi, vinginevyo inaweza kuchoma kifaa, unahitaji kuongeza ubadilishaji wa kiwango cha 485. Kwa Raspberry Pi, inashauriwa kufanya kazi na moduli ya RS485 CAN HAT. Kwa NUCLEO-F103RB na Arduino, inashauriwa kufanya kazi na moduli ya RS485 CAN Shield.
Raspberry Pi
Fungua terminal ya Raspberry Pi na ingiza amri ifuatayo ili kuingiza kiolesura cha usanidi
sudo raspi-config
Select Interfacing Options -> Serial, disable shell access, and enable the hardware serial port

Kisha anza tena Raspberry Pi:
sudo kuwasha upya
Fungua /boot/config.txt file, pata taarifa ifuatayo ya usanidi ili kuwezesha bandari ya serial, ikiwa sivyo, unaweza kuiongeza hadi mwisho wa file.
enable_uart-1
Kwa watumiaji wa Raspberry Pi 3B, bandari ya serial inatumika kwa Bluetooth na inahitaji kutolewa maoni:
#dtoverlay-pi3-miniuart-bt
Kisha anza tena Raspberry Pi:
sudo kuwasha upya
Insert the RS485 CAN HAT into the Raspberry Pi, and connect the Modbus RTU Relay module to the RS485 CAN HAT through A and B.
If you are using other 485 devices, make sure to connect A-A, B-B.
Run the following commands to run the demo:
sudo apt-get install unzip.
sudo apt-get install python3-pip
pip install modbus_tk
wget https://files.waveshare.com/wiki/Modbus RTU-Analog-Input-8CH/Modbus RTU Ana log_Input_Code.zip
unzip Modbus_RTU_Analog_Input_Code.zip
cd Modbus_RTU_Analog_Input_Code/Python3
sudo python3 modbus.py
ST32
Kumbuka: The STM32 demo is based on the NUCLEO-F103RB and RS485 CAN Shield module.
- Pakua Demo, find the STM32 project file Modbus.uvprojx in the path Modbus_RTU_Analog_Input_Code\STM32\MDK-ARM, and double-click to open the STM32 project file. Kumbuka kwamba unapaswa kuhakikisha programu ya Keil5 imesakinishwa kwenye kompyuta yako kabla ya kuitumia.

- Connect the STM32 to a computer via the STM32 download and debug probe. Compile and download the program to the development board.

- Install the RS485 CAN Shield module on the STM32. Connect the RS485_A on the RS485 CAN Shield module to the RS485_A on the Modbus RTU Analog Input 8CH via a wire, and connect the RS485 B on the RS485 CAN Shield module to the RS485 B on the Modbus RTU Analog Input 8CH via a wire. Then power on the Modbus RTU Analog Input 8CH and the STM32 sequentially.
- After the program runs normally, you can observe through the serial port assistant that the device prints the collected results

Arduino
Kumbuka: The Arduino demo is based on the UNO PLUS and RS485 CAN Shield module.
- Download Demo, find the Arduino project file Modbus_RTU_Analog_Input.ino in the path Modbus_RTU_Analog_Input_Code\Arduino\Modbus_RTU_Analog_Input, and double-click to open the Arduino project file. Kumbuka kwamba unapaswa kuhakikisha kuwa programu ya Arduino IDE imesakinishwa kwenye kompyuta yako kabla ya kuitumia.

- Connect the Arduino to the computer via a USB cable. In the Arduino IDE software, select the Arduino board model under Tools-> Board. Choose the COM port that the Arduino is connected to under Tools->Port.
- After seeing the prompt to connect to the computer in the lower right corner, click to compile and flash the program, and wait for the flashing to complete.

- Install the RS485 CAN Shield module on the Arduino. Connect the RS485_A on the RS485 CAN Shield module to the RS485_A on the Modbus RTU Analog Input 8CH via a wire, and connect the RS485_B on the RS485 CAN Shield module to the RS485_B on the Modbus RTU Analog Input 8CH via a wire. Then power on the Modbus RTU Analog Input 8CH and the Arduino sequentially.
- After the program runs normally, you can observe through the serial port assistant that the device prints the collected results

Itifaki ya Maendeleo V2
Utangulizi wa Kanuni ya Kazi
| Kazi Kanuni | Maelezo |
| 03 | Soma rejista ya kushikilia |
| 04 | Soma rejista ya pembejeo |
| 06 | Andika rejista moja ya kushikilia |
| 10 | Andika rejista nyingi za kushikilia |
Utangulizi wa Anwani ya Kusajili
| Anwani (HEX) | Anwani maudhui ya hifadhi | Sajili thamani | Ruhusa | Modbus Kazi Kanuni |
| 3×0000…… 3×0007 | Data ya ingizo ya vituo 1~8 | Soma thamani kama heksadesimali isiyo na saini | Soma | 0x04 |
| 4×1000…… 4×1007 | Aina 1-8 za data | 0x0000~0x0004 safu tano | Soma/Andika | 0x03,0x06,0x10 |
| 4×2000 | UARTParameter | The high eight bits indicate the parity mode: 0x00~0x02The low eight bits indicate the baud rate mode: 0x00~0x07 | Soma/Andika | 0x03, 0x06 |
| 4×4000 | Anwani ya Kifaa | Hifadhi moja kwa moja anwani ya Modbus Anwani ya kifaa: 0x0001-0x00FF | Soma/Andika | 0x03, 0x06 |
| 4×8000 | Toleo la Programu | Converting to decimal and then shifting the decimal point two places to the left will represent the software version0x0064 = 100 = V1.00 | Soma | 0x03 |
Utangulizi wa Amri ya Operesheni
Soma Amri ya Kuingiza ya Analogi
Tuma msimbo: 01 04 00 00 00 08 F1 CC
| Shamba | Maelezo | Kumbuka |
| 01 | Anwani ya Kifaa | 0x00 inaonyesha anwani ya utangazaji, 0x01-0xFF inaonyesha anwani ya kifaa |
| 04 | 04 command | Soma rejista ya pembejeo |
| 00 00 | Sajili Anza | 0x0000 - 0x0007 inalingana na njia 1 ~ 8 za kuingiza |
| Anwani | ||
| 00 08 | Nambari ya Usajili | Idadi ya rejista za kusomwa, ambazo hazipaswi kuzidi idadi ya juu ya chaneli |
| F1 CC | CRC16 | Cheki ya CRC16 ya baiti 6 za kwanza za data |
Rejesha msimbo: 01 04 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 2C
| Shamba | Maelezo | Kumbuka |
| 01 | Anwani ya Kifaa | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 04 | 04 command | Read input register |
| 10 | Byte Number | Data length |
| 00 00…… 00 00 | Sajili data | Indicates the values of analog inputs from channels 0 – 7An unsigned 16-bit identifier for a channel, with the higher bits first and the lower bits last The data range is determined by the output data type |
| 552C | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Kwa mfanoample: [Address 1 device]
Read 1-8 channels 01 04 00 00 00 08 F1 CC
Read 1 channel 01 04 00 00 00 01 31 CA
Read 2 channel 01 04 00 01 00 01 60 DA
Read 3-5 channels 01 04 00 02 00 03 11 св
Soma Amri ya Aina ya Data ya Kituo
Tuma msimbo: 01 03 10 00 00 08 40 CC
| Field | Maelezo | Kumbuka |
| 01 | Anwani ya Kifaa | 0x00 inaonyesha anwani ya utangazaji, 0x01-0xFF inaonyesha anwani ya kifaa |
| 03 | 03 Amri | Soma rejista ya kushikilia |
| 10 00 | Sajili Anwani ya Kuanza | 0x1000 - 0x1007 inalingana na njia 1 ~ 8 za kuingiza |
| 00 08 | Nambari ya Usajili | Idadi ya rejista za kusomwa, ambazo hazipaswi kuzidi idadi ya juu ya chaneli |
| 40CC | CRC16 | Cheki ya CRC16 ya baiti 6 za kwanza za data |
Rejesha msimbo: 01 03 10 00 02 00 02 00 02 00 02 00 02 00 02 00 02 00 02 09 C3
| Shamba | Maelezo | Kumbuka |
| 01 | Anwani ya Kifaa | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 03 | 03 Amri | Read holding register |
| 10 | Byte Number | The number of all bytes of the returned status information |
| 00 02…… 00 02 | Aina ya Data | Indicates data types of 0-7 channels, 0x0000~0x0004 represents five ranges 0x0000: Range 0~5V, output range 0~5000 or 0~10000, unit mV;0x0001: Range 1~5V, output range 1000~5000 or 2~10V, output range 2000~10000, unit mV;0x0002: Range 0~20mA, output range 0~20000, unit uA; 0x0003: Range 4~20mA, output range 4000~20000, unit uA;0x0004: Direct output of numerical code, output range 0~4096, requires linear conversion to obtain actual measured voltage na ya sasa; |
| 09C3 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Kwa mfanoample: [Anwani 1 kifaa]
Read data types for channels 1-8: 01 03 10 00 00 08 40 CC
Read data type for channel 1: 01 03 10 00 00 01 80 CA
Read data type for channel 2: 01 03 10 01 00 01 DI CA
Read data type for channels 3-5: 01 03 10 02 00 03 АО СВ
Weka Amri ya Aina ya Data ya kituo Kimoja
Tuma msimbo: 01 06 10 00 00 03 CD OB
| Shamba | Maelezo | Kumbuka |
| 01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 06 | 06 Amri | Write single register |
| 10 00 | Register Start Address | 0x1000 – 0x1007 correspond to data types of 1~8 input channels |
| 0003 | Channel Data Type | Channel data types, 0x0000~0x0004 represents five ranges 0x0000: Range 0~5V, output range 0~5000 or 0~10000, unit mV;0x0001: Range 1~5V, output range 1000~5000 or 2~10V, output range 2000~10000, unit mV;0x0002: Range 0~20mA, output range 0~20000, unit uA; 0x0003: Range 4~20mA, output range 4000~20000, unit uA;0x0004: Direct output of numerical code, output range 0~4096, requires linear conversion to obtain actual measured voltage na ya sasa; |
| CD 0B | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Rejesha msimbo: 01 06 10 00 00 03 CD 0B
| Shamba | Maelezo | Kumbuka |
| 01 | Anwani ya Kifaa | 0x00 inaonyesha anwani ya utangazaji, 0x01-0xFF inaonyesha anwani ya kifaa |
| 06 | 06 Amri | Andika rejista moja |
| 10 00 | Anwani ya Aina ya Data ya Kituo | 0x1000 - 0x1007 inalingana na aina za data za njia 1 ~ 8 za uingizaji |
| 00 03 | Aina ya Data ya Kituo | Aina ya data ya kituo, 0x0000~0x0004 inawakilisha safu tano |
| CD 0B | CRC16 | Cheki ya CRC16 ya baiti 6 za kwanza za data |
Kwa mfanoample: [Address 1 device]
Set data type to 0-20mA for channel 1: 01 06 10 00 00 02 ОС СВ
Read data type 4-20mA for channel 2: 01 06 10 01 00 03 9C CB
Weka Amri ya Aina ya Data ya vituo vingi
Tuma msimbo: 01 10 10 00 00 08 10 00 03 00 03 00 03 00 03 00 03 00 03 00 03 00 03 91 2B
| Shamba | Maelezo | Kumbuka |
| 01 | Anwani ya Kifaa | 0x00 inaonyesha anwani ya utangazaji, 0x01-0xFF inaonyesha anwani ya kifaa |
| 10 | 10 Amri | Andika rejista nyingi |
| 10 00 | Sajili Anwani ya Kuanza | 0x1000 - 0x1007 inalingana na aina za data za njia 1 ~ 8 za uingizaji |
| 00 08 | Nambari ya Usajili | Weka nambari ya usajili, ambayo haipaswi kuzidi idadi ya juu zaidi ya vituo |
| 10 | Nambari ya Byte | Set the number of bytes to be output |
| 00 03…… 00 03 | Amri | Corresponding to data types of 0-7 channels, 0x0000~0x0004 represents five ranges0x0000: Range 0~5V, output range 0~5000 or 0~10000, unit mV; 0x0001: Range 1~5V, output range 1000~5000 or 2~10V, output range 2000~10000, unit mV;0x0002: Range 0~20mA, output range 0~20000, unit uA; 0x0003: Range 4~20mA, output range 4000~20000, unit uA;0x0004: Direct output of numerical code, output range 0~4096, requires linear conversion to obtain actual measured voltage na ya sasa; |
| 912B | CRC16 | Cheki ya CRC16 ya baiti 6 za kwanza za data |
Rejesha msimbo: 01 10 10 00 00 08 C5 0F
| Shamba | Maelezo | Kumbuka |
| 01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 10 | 10 Amri | Write multiple registers |
| 10 00 | Register Start Address | 0x1000 – 0x1007 correspond to data types of 1~8 input channels |
| 00 08 | Register Number | Set register number, which must not exceed the maximum number of the channels |
| C5 0F | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Kwa example: [Address 1 device]
Read data type 4-20mA for channels 1-8: 01 10 10 00 00 08 10 00 03 00 03 00 03 0 0 03 00 03 00 03 00 03 00 03 91 2B
Read data type 1-5V for channels 3-5 01 10 10 02 00 03 06 00 01 00 01 00 01 BE 4A
Weka Amri ya Baudrate
Tuma msimbo: 00 06 20 00 00 05 43 D8
| Shamba | Maelezo | Kumbuka |
| 00 | Anwani ya Kifaa | 0x00 inaonyesha anwani ya utangazaji, 0x01-0xFF inaonyesha anwani ya kifaa |
| 06 | 06 command | Weka kiwango cha baud na anwani ya kifaa |
| 20 00 | Daftari la Amri | 0x2000: set the baud rate; 0x4000: set the device address |
| 00 | Parity Method | 0x00: hakuna usawa, 0x01: hata usawa; 0x02: usawa usio wa kawaida |
| 05 | Baud Rate Value | Correspondence of baud rate values 0x00: 48000×01: 96000×02: 192000×03: 384000×04: 576000×05: 1152000×06: 1280000×07: 256000 |
| 43 D8 | CRC16 | Cheki ya CRC16 ya baiti 6 za kwanza za data |
Rejesha msimbo: 00 06 20 00 00 05 43 D8
| Shamba | Maelezo | Kumbuka |
| 00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 06 | 06 command | Set the baud rate and device address |
| 20 00 | Command Register | 0x2000: set the baud rate; 0x4000: set the device address |
| 00 | Parity Method | 0x00: no parity, 0x01: odd parity; 0x02: even parity |
| 05 | Kiwango cha Baud | Correspondence of baud rate values 0x00: 48000×01: 96000×02: 192000×03: 384000×04: 576000×05: 1152000×06: 1280000×07: 256000 |
| 43 D8 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Kwa mfanoample: [Address 1 device]
Set the baud rate as 4800: 00 06 20 00 00 00 83 DB
Set the baud rate ав 9600: 00 06 20 00 00 01 42 18
Set the baud rate as 115200: 00 06 20 00 00 05 43 D8
Weka Amri ya Anwani ya Kifaa
Tuma msimbo: 00 06 40 00 00 01 5C 1B
| Shamba | Maelezo | Kumbuka |
| 00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 06 | 06 command | Set the baud rate and device address |
| 40 00 | Command Register | 0x2000: set the baud rate; 0x4000: set the device address |
| 00 01 | Device Address | Set the device address, 0x0001-0x00FF |
| 5C 1B | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Rejesha msimbo: 00 06 40 00 00 01 5C 1B
| Shamba | Maelezo | Kumbuka |
| 00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 06 | 06 command | Set the baud rate and device address |
| 40 00 | Command Register | 0x2000: set the baud rate; 0x4000: set the device address |
| 00 01 | Device Address | Set the device address, 0x0001-0x00FF |
| 5C 1B | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Kwa mfanoample: [Address 1 device]
Set the device address as 0x01:00 06 40 00 00 01 5C 1B
Set the device address as 0x02:00 06 40 00 00 02 10 1A
Set the device address as 0x03:00 06 40 00 00 03 DD DA
Soma Amri ya Anwani ya Kifaa
Tuma msimbo: 00 03 40 00 00 01 90 18
| Shamba | Maelezo | Kumbuka |
| 00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 03 | 03 Amri | Read the device address |
| 40 00 | Command register | 0x4000: read the device address, 0x8000: read software version |
| 00 01 | Byte Number | Fixed 0x0001 |
| 90 1B | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Rejesha msimbo: 01 03 02 00 01 79 84
| Shamba | Maelezo | Kumbuka |
| 01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 03 | 03 Amri | Read the software version and device address |
| 02 | Byte Number | The number of bytes returned |
| 00 01 | Device Address | Set the device address, 0x0001-0x00FF |
| 79 84 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Kwa mfanoample: [Address 2 device]
Send: 00 03 40 00 00 01 90 18
Return: 02 03 02 00 02 7D 85
// Anwani 0x02
Soma Amri ya Toleo la Programu
Tuma msimbo: 00.03 80 00 00 01 AC 18
| Shamba | Maelezo | Kumbuka |
| 00 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 03 | 03 Amri | Read the software version and device address |
| 80 00 | Command register | 0x4000: read the device address, 0x8000: read software version |
| 00 01 | Byte Number | Fixed 0x0001 |
| AC 1B | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Rejesha msimbo: 01 03 02 00 64 B9 AF
| Shamba | Maelezo | Kumbuka |
| 01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 03 | 03 Amri | Read the software version and device address |
| 02 | Byte Number | The number of bytes returned |
| 00 64 | Toleo la Programu | Converting to decimal and then shifting the decimal point two places to the left will represent the software version0x0064 = 100 = V1.00 |
| B9 AF | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Kwa mfanoample:
Send: 00 03 80 00 00 01 AC 18
Kurudi: 01 03 02 00 64 B9 AF
1/0x0064 100 -V1.00
Isipokuwa Msimbo wa Kazi
When the received command is incorrect or the device is abnormal, an exception response will be returned in the following format:
Rudi: 01 85 03 02 91
| Shamba | Maelezo | Kumbuka |
| 01 | Device Address | 0x00 indicates the broadcast address, 0x01-0xFF indicates the device address |
| 85 | Exception Function Code | Exception function code = Request function code + 0x80 |
| 03 | Byte Number | Msimbo wa Ubaguzi |
| 0291 | CRC16 | The CRC16 checksum of the first 6 bytes of data |
Msimbo wa ubaguzi ni thamani ya baiti moja inayoonyesha aina ya hitilafu. Nambari kadhaa za kipekee zinazotumika zinazofafanuliwa na itifaki ya Modbus:
| Isipokuwa Kanuni | Jina | Maelezo |
| 0x01 | Kazi Haramu | The requested function code is not supported |
| 0x02 | Anwani ya Data Haramu | Anwani ya data iliyoombwa si sahihi |
| 0x03 | Thamani ya Data Haramu | The requested data value or operation cannot be executed |
| 0x04 | Kushindwa kwa Seva | Kushindwa kwa vifaa vya seva |
| 0x05 | Jibu | Ombi limepokelewa na linashughulikiwa |
| 0x06 | Kifaa Kina Shughuli | Kifaa kwa sasa kina shughuli nyingi na hakiwezi kufanya operesheni iliyoombwa |
Rasilimali
Onyesho
- Onyesho
Programu
- Sscom serial port debugging assistant
- Modbus Poll software
- SecureCRT software
Rasilimali Zinazohusiana
- Modbus Protocol Specification
- Modbus Series BootLoader Description
Nyaraka / Rasilimali
![]() |
waveshare Modbus RTU Analogi ya Pembejeo 8CH [pdf] Mwongozo wa Mtumiaji Uingizaji wa Analogi wa Modbus RTU 8CH, Modbus RTU, Uingizaji wa Analogi 8CH, Uingizaji 8CH, 8CH |
