Hi All,
As said in subject, I tried this setup. S7-1200 as client and a power meter a server
The first attachment ("S7-122.png") is my first test. I tried reading register 51078 using S7-1200 and get a status error of "8189" which is an invalid data used in MB_DATA_ADDR. Upon reading the manual, I see that only these ranges are allowed:
Another test (2nd attachment, "5142015 (network2) - 40001.jpg") to see if there is any packet sent/received to/from the power meter.
I tried reading data from register 40001 (using S7-1200) but I can't see any query from wireshark. I also tried reading data from register 40001 (using modbuspoll) and I can see both the query/response to/from the power meter.
My question is why can't wireshark sniff any Modbus/TCP packet from the PLC even though I'm getting 'DONE' in the status of the ModbusClient block. Are there still problems in my parameters? I've added a counter for the number of reading job done (11403) and the number of errors (0).
Setup for testing #2:
wantutri
As said in subject, I tried this setup. S7-1200 as client and a power meter a server
The first attachment ("S7-122.png") is my first test. I tried reading register 51078 using S7-1200 and get a status error of "8189" which is an invalid data used in MB_DATA_ADDR. Upon reading the manual, I see that only these ranges are allowed:
- holding register = 40001 to 49999
- extended holding register = 400001 to 465535
Another test (2nd attachment, "5142015 (network2) - 40001.jpg") to see if there is any packet sent/received to/from the power meter.
I tried reading data from register 40001 (using S7-1200) but I can't see any query from wireshark. I also tried reading data from register 40001 (using modbuspoll) and I can see both the query/response to/from the power meter.
My question is why can't wireshark sniff any Modbus/TCP packet from the PLC even though I'm getting 'DONE' in the status of the ModbusClient block. Are there still problems in my parameters? I've added a counter for the number of reading job done (11403) and the number of errors (0).
Setup for testing #2:
- S7-1200 CPU1212C fw4.0: 192.168.1.50
- Power Meter: 192.168.1.10
- PC: 192.168.1.100
- TIA 13 (without any SP)
wantutri