question

David Chan avatar image
0 Likes"
David Chan asked David Chan commented

Modbus disconnection

Hi

I am using PLC Emulation with modbus. It works for the first run but fails to re-run. However if I re-start the model or reset the PLC, it works again for one round. It seems to me the modbus communication needs to be reset (close) before I re-run the model again. Is it a norm? Instead of the reset the PLC or restart the model in new FlexSim session, what is FlexScript can close the communication? Will clientclose or socketend works?

Regards

David

FlexSim 19.2.2
plc emulationmodbus communication
· 2
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

Dump?

0 Likes 0 ·
David Chan avatar image David Chan Joerg Vogel commented ·
@Jörg Vogel

FlexSim team released 19.2.4 to close the modbus connection. However I have not tried since then. I will update you when I got my PLC in for the testing.

David

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered David Chan commented
@david.chan

Have you tried it since 19.2.4?

This should be fixed now.

· 2
5 |100000

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

David Chan avatar image David Chan commented ·
@phil.bobo

I have tested today with 19.2.4, it works.

Thanks

David

1 Like 1 ·
David Chan avatar image David Chan commented ·

@phil.bobo my new PLC has not arrived yet. Will update you when I setup.

David

0 Likes 0 ·