G
Hi,
I'm a beginner in MODBUS, so please help me.
I have a temperature regulator with MODBUS communication.
For example:
If I want to read holding register, e.g.: 0042 "Value of temperature" from mentioned device, in my application for MODBUS communication which was written in
Microsoft Visual Studio 2005- VC#,
I made the request -byte array: {0x01, 0x03, 0x00, 0x29, 0x00, 0x01, 0x83, 0x01}
1 2 3 4 5 6 7 8
1.- slave adress (configured in device)
2.- function code(Read Holding Registers)
3.- start adress Hi
4.- start adress Lo
5.- no. of registers Hi
6.- no of registers Lo
7.- error code
8.- exception code
and sent that array to device. Label Rx blinks on the front panel of device, so device received my request, but I don't get any response, Tx doesn't blink!!!
All other parameters like port name, baud rate, parity, data bits, stop bits, ReadTimeout, WriteTimeout and RS485/RS232 converter are O.K.
Plese, could you help me with some advice to get response from device and tell me what I do wrong?
Is my request -byte array O.K.??? (especially the last two bytes 0x83, 0x01- CRC)
Thank you very much.
Best regards!
I'm a beginner in MODBUS, so please help me.
I have a temperature regulator with MODBUS communication.
For example:
If I want to read holding register, e.g.: 0042 "Value of temperature" from mentioned device, in my application for MODBUS communication which was written in
Microsoft Visual Studio 2005- VC#,
I made the request -byte array: {0x01, 0x03, 0x00, 0x29, 0x00, 0x01, 0x83, 0x01}
1 2 3 4 5 6 7 8
1.- slave adress (configured in device)
2.- function code(Read Holding Registers)
3.- start adress Hi
4.- start adress Lo
5.- no. of registers Hi
6.- no of registers Lo
7.- error code
8.- exception code
and sent that array to device. Label Rx blinks on the front panel of device, so device received my request, but I don't get any response, Tx doesn't blink!!!
All other parameters like port name, baud rate, parity, data bits, stop bits, ReadTimeout, WriteTimeout and RS485/RS232 converter are O.K.
Plese, could you help me with some advice to get response from device and tell me what I do wrong?
Is my request -byte array O.K.??? (especially the last two bytes 0x83, 0x01- CRC)
Thank you very much.
Best regards!