Hi adaahkam,
We think there is a missing information in your case.
First, we assume you want to set the logger as a MODBUS Master; therefore, the PC would be the Slave. As a Master, you do not need to set the slave address in the logger.
So Profile sersen_port function="MODBUS_Master" and Profile Modbus_Server sersen_Address="1" are contradictory; you do not need to use the second one. Roughly speaking, the logger will ignore that part anyway due to the nature of a Master.
Second, what is the standing of your PC? How do you connect it to the logger? With the use of MODBUS RTU RT485, we assume you must use an RS485 to USB converter. Assuming that is true, what address do you set on the PC? Remember, the PC is the MODBUS Slave; thus, it must have an address. Based on the logger syntax, we assume the PC address is 1; please confirm.
Third, assuming the second issue is resolved, how do you set the register location in the PC? The logger tried to write into register address 4 using MODBUS function 3; please confirm if you have the same setting to receive it.
The last one is critical: when you use MODBUS Poll, you set the PC as a Master (Poll - request); if both PC and logger are Master, they cannot talk. Instead of MODBUS Poll, you must use MODBUS Slave apps: https://www.modbustools.com/modbus_slave.html.
If you want to use the MODBUS Poll, set the logger as a Slave.
Best regards,
dataTaker Expert
Hi adaahkam,
We think there is a missing information in your case.
First, we assume you want to set the logger as a MODBUS Master; therefore, the PC would be the Slave. As a Master, you do not need to set the slave address in the logger.
So Profile sersen_port function="MODBUS_Master" and Profile Modbus_Server sersen_Address="1" are contradictory; you do not need to use the second one. Roughly speaking, the logger will ignore that part anyway due to the nature of a Master.
Second, what is the standing of your PC? How do you connect it to the logger? With the use of MODBUS RTU RT485, we assume you must use an RS485 to USB converter. Assuming that is true, what address do you set on the PC? Remember, the PC is the MODBUS Slave; thus, it must have an address. Based on the logger syntax, we assume the PC address is 1; please confirm.
Third, assuming the second issue is resolved, how do you set the register location in the PC? The logger tried to write into register address 4 using MODBUS function 3; please confirm if you have the same setting to receive it.
The last one is critical: when you use MODBUS Poll, you set the PC as a Master (Poll - request); if both PC and logger are Master, they cannot talk. Instead of MODBUS Poll, you must use MODBUS Slave apps: https://www.modbustools.com/modbus_slave.html.
If you want to use the MODBUS Poll, set the logger as a Slave.
Best regards,
dataTaker Expert