question

Steven Chen avatar image
0 Likes"
Steven Chen asked Cole Shirley answered

Emulation Subscribe to Changes / Poll for External Changes

Hello,

I tested the tutorial 1 with Omron PLC through Modbus TCP. I got serious latency time on simulation.

Because I want more accuracy on controlling the motor, so I set the change interval to 0.1s in case it's too late to stop the motor. When "Poll for External Changes" is checked, it created poll event every 0.1s in order to update the controls status. I tried a modified model that use 4 polling controls and it's hard to run and freeze.

Since I knew that PLC's output only changed if input changed, is it possible to make Flexsim do polling while input changed?

FlexSim 19.1.1
emulation
· 4
5 |100000

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

Benjamin W2 avatar image Benjamin W2 commented ·

Hi @steven.chen, can you upload a copy of your model? It will help us to debug it. Make sure to tag @Benjamin W2.

0 Likes 0 ·
Steven Chen avatar image Steven Chen Benjamin W2 commented ·

@Benjamin W2

Sorry for late reply. There are 14 controls polling data from PLC in the model. The model is freeze/lag for about 200ms on data polling every 0.5s.

test-emulation-poll-lag.fsm

0 Likes 0 ·
Joshua S avatar image Joshua S Steven Chen commented ·

@steven.chen

Have you still noticed a lag like this still when working with PLCs? What was the logic on the PLC? How were you measuring the lag?

0 Likes 0 ·
Show more comments

1 Answer

Cole Shirley avatar image
0 Likes"
Cole Shirley answered

Closing outdated question

5 |100000

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