Emulation Modbus Disconnect and Status Viewer

Emulation Modbus Disconnect and Status Viewer

mail7WJMZ
Collaborator Collaborator
212 Views
3 Replies
Message 1 of 4

Emulation Modbus Disconnect and Status Viewer

mail7WJMZ
Collaborator
Collaborator

[ FlexSim 18.2.3 ]

Hello,

Is there a way to sync all registers between Flexsim and PLC on model starts?

Currently reset model doesn't disconnect Modbus. I have to close program to disconnect, but once the program closed it ruins the PLC and connection never established until PLC rebooted.

I would like to have logs and table view of current value of registers, to make sure the commands does executed, helping me to find out it's human error or bug.

As picture below, Everything is fine in first simulation run. Connection doesn't close after model reset. In the second run, motors stopped immediately even the registers are true in PLC. I have to reboot PLC to make it works again.

17995-01.png

Using Omron PLC as Modbus server and Flexsim as client. I also used other client tool to test connection with PLC by disconnecting and reconnecting and no issue found.

0 Likes
Accepted solutions (1)
213 Views
3 Replies
Replies (3)
Message 2 of 4

joshua_s
Not applicable

When you say tags, are you using an OPC server which uses tags, or strictly Modbus which uses registers?

0 Likes
Message 3 of 4

mail7WJMZ
Collaborator
Collaborator

Oh, it's registers not tags. My mistake.

0 Likes
Message 4 of 4

mail7WJMZ
Collaborator
Collaborator
Accepted solution

I found a way to sync registers on model start. Simply add an event on model start and write as input to inform PLC to reset all registers (PLC codes that assign variables with default value).

0 Likes