Open mushfiq-heraclius-xen opened 3 years ago
What kind of program where you running for this test?
I meant the program on the microcontroller, sorry for the confusion.
The way that example is set up it isn't possible to read anything at register 40001. You'd have better luck when reading registers 0,1,2 with fc 4. This reads out the set analog input values.
This library can adhere to the standard offsets, but doesn't do so in the examples. This ability to use any registry makes it quite flexible.
ok thank you! but can you tell me what values i have to write for fc=05 or 15 to make output pins HIGH ??
Force Single Coil (FC=05) and Force Multiple Coils (FC=15) and set the corresponding digital output pins (coils).
what values i have to write from the modbus rtu master simulator software for fc=05 or 15 to make output pins HIGH ??
I was mistaken, for reading the analog sensors FC04 should be used.
When writing a 1 to register 0 to 3 when using FC05 the digital outputs should be set to high.
readRegister = slave.readCoilFromBuffer(40001) How can I write a code like I want to read the data in plc 40001 register but failed
can any body tell me which modbus simulator software is better to use with this library , i have used "Simply Modbus Master " simulator and tried writing/reading data to register number 40001 , didn't get any response or anything