question

Lukas Buchta avatar image
0 Likes"
Lukas Buchta asked Lukas Buchta edited

Emulation modbus communication traffic

I have still issue with reading register address from my PLC. Can I read the communication traffic between Flexsim and the PLC – to diagnose better the data? Is it possible to use Modbus slave simulator as a middle man - bridge between Flexsim and PLC?

Communication works well between Flexsim and Modbus simulator (slave).

1700481271884.png

I can also read data from the PLC by python code I created – read only one register coil. (in the attachment). But when Flexsim is a client and PLC is the server, then I can connect, but: Failed reading modbus register 2000. Error code 0x8a Unknown error



for further reference this is the trafic log; PLC is the server, modbus poll simulator is the client.[11/20/23 10:29:47] Connect to TCP 10.82.164.15:502 timeout: 3 [11/20/23 10:29:47] => Poll: 01 01 07 CF 00 DA [11/20/23 10:29:47] <= Response: 01 01 1C 10 90 41 06 18 60 00 00 06 18 60 80 01 06 18 28 80 01 00 00 00 80 A1 86 00 20 00 00 [11/20/23 10:29:50] => Poll: 01 01 07 CF 00 DA [11/20/23 10:29:50] <= Response: 01 01 1C 50 B0 C1 06 18 68 20 80 06 1A 70 A0 81 06 18 28 A0 01 00 00 00 A0 A1 82 12 30 00 00


this is the trafic log; Modbus slave simulator is the server, Flexsim is the client.

Rx:000074-01 7B 00 00 00 06 FF 01 07 D0 00 01 Tx:000075-01 7B 00 00 00 04 FF 01 01 00 Rx:000076-01 7C 00 00 00 06 FF 01 07 D0 00 01 Tx:000077-01 7C 00 00 00 04 FF 01 01 01 Rx:000078-01 7D 00 00 00 06 FF 01 07 D0 00 01 Tx:000079-01 7D 00 00 00 04 FF 01 01 01 Rx:000080-01 7E 00 00 00 06 FF 01 07 D0 00 01 Tx:000081-01 7E 00 00 00 04 FF 01 01 01 Rx:000082-01 7F 00 00 00 06 FF 01 07 D0 00 01 Tx:000083-01 7F 00 00 00 04 FF 01 01 01 Rx:000084-01 80 00 00 00 06 FF 01 07 D0 00 01 Tx:000085-01 80 00 00 00 04 FF 01 01 01

FlexSim 23.2.2
valuemodbus communicationregister
1700481271884.png (3.9 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.