Want to share a UDFB? Here's the place! NOTE: This page contains files and links to items developed by third parties. Unitronics bears no responsibility for any consequences of accessing and using any third-party items of any kind.
@BastianPIA - You've followed the example to configure the Jazz for Modbus serial communications. I don't think this is what you want.
Look in the Help for Modbus and click on the link for Modbus/TCP -> Ethernet: Jazz 2 only. You'll see there is a dialog box specifically for Ethernet communication setup.
Joe T.
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!
1. I don't put any conditions on my SCAN_EX Modbus Slave block -
2. As Fernando pointed out, your net ID should be 255.
3. All of the V280's memory is open to read via Modbus. Rather than fighting to get the right offset for an ML read, try setting your offset to 0 to read MI 0 to establish a baseline that your communication works. Set your Data Type to INT. If that doesn't work try offset 1.
4. Your "Data Block" is set to 0. Should that be at least 1?
Otherwise, upload your program.
Joe T.