Jump to content

gkovacs

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by gkovacs

  1. Hello Yes, I have fully read it and that is why I had my questions about Modbus. In the meanwhile, I was able to get out the needed information by misregarding the text about adding 30000 or 40000 to the vector address (which is simply not true because by using the different Modbus commands there is nothing to add). So, ReadCoils(4001,2) works. And so does ReadDiscreteInputs(4001,2) giving the same result. The same is true for ReadCoils(5001,2) and ReadDiscreteInputs(5001,2). And that is a bit confusing as ReadDiscreteInputs is supposed to be available to read inputs, while ReadCoils is for setting and reading outputs. But anyway, the good news is that it works! Thanks for your reply!
  2. Hello, I would like to ask some help as I can see that in this topic there is plenty of information regarding how to use a JZ20-J-R16 as Modbus TCP Slave. I am able to read all the MI's and MB's, but I can't read I0-I7 (inputs) and O0 to O6 (outputs). (I am able to read analogue input as MI0). My question is how can I read the input and the output states through a Modbus TCP call? What I tried to read in I2 and I3: ReadDiscreteInputs(35003, 2) answer was: illegal data address The communication in bytes: modbus: sending 00 01 00 00 00 06 01 02 88 bb 00 02 modbus: received 00 01 00 00 00 03 01 82 02 I also tried: ReadCoils(35003, 2) answer was: illegal data address The communication in bytes: modbus: sending 00 02 00 00 00 06 01 01 88 bb 00 02 modbus: received 00 02 00 00 00 03 01 81 02 Any help is appreciated!
×
×
  • Create New...