question

TheHero avatar image
0 Likes"
TheHero asked Julie Weller commented

Signal Lag while data transfer to local kepware server from OPC UA protocol

When we transfer the data every second from flexsim to Kepware on local system, there is the lag in the signal transfer of one second i.e., the signal takes 2 seconds to get reflected in Kepware rather than 1 second.

Ideally the signal transfer should be without any lags i.e., signal transfer every second should get reflected every second.

FlexSim 22.1.4
opc uaemulation moduleemulation kepware
· 16
5 |100000

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

TheHero avatar image TheHero commented ·

The signals from flexsim are transferred every second from 30 stations simultaneously to Local Kepware server

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel TheHero commented ·
@TheHero , what are your network settings? For example Baud? If you have set it up with a slow speed all your traffic gets queued up and it feels like a lag.

Can you report back, how does individual runtime reflect to behavior you see on your OPC Server end or in FlexSim program side?

0 Likes 0 ·
TheHero avatar image TheHero Joerg Vogel commented ·

can i know how we can check behaviour in OPC server end or flesim program side?

Because what i see is the flexsim model run time halts every second for very small time and then moves ahead

0 Likes 0 ·
Show more comments
Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

What the ping time between the two devices?

0 Likes 0 ·
TheHero avatar image TheHero Jason Lightfoot ♦♦ commented ·
The refresh rate at kepware tags is 1000 ms.

The kepware and flexsim is installed on same system and data is transferred to local host

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ TheHero commented ·

Can you try adding this to a run start trigger and see if the issue persists?

runspeed(1,RUN_SPEED_HIGH_PRECISION)  //1 represents realtime

You may find that you need the updated emulation library which you find in FlexSim version 23.

0 Likes 0 ·
Show more comments
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @TheHero,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

@Luciano Cavallero, @Tancredi Canonico, @Fiorenzo A, can you please take a look at this emulation-related question?

0 Likes 0 ·
Luciano Cavallero avatar image Luciano Cavallero commented ·
@TheHero , hoping to be still helpful.

In my experience Flexsim + Kepware Server on same machine have a small lags.
So a couple of question: how many signal are you exchanging with OPC UA server? Which are the specs of your machine?

0 Likes 0 ·
Show more comments

0 Answers