How to disable animation in runtime specially visibility

hi, i need to disable the animation functionality in development environment and im not communicating with PLC too while development this create lot of confusion for objects that are configured with visibility function. kindly pls share the best practice.

The simplest alternative to a real PLC is to just use memory tags in place of your OPC tags. Export your tags as XML and save them elsewhere, then convert your OPC tags to Memory tags. Write a few simulation scripts in the gateway to change those tags as if the PLC was present. When done development, import your original OPC tags to replace the memory tags, and delete your simulation scripts. Don’t bother with detailed simulation – just enough to test your UI.

1 Like

The other solution to consider is to acquire some PLC processors for simulation duty in your own lab environment. Weigh the cost of the processor against the cost of your time.

You can add a condition to visibility bindings to display objects when in Designer and not testing like this:

// Display when in Designer and not testing or runtime display condition met.
(({[System]Client/System/SystemFlags} & 1) && !({[System]Client/System/SystemFlags} & 2))
|| {runtimeDisplayCondition}

Similar conditions may be used in other bindings and scripts to disable/adjust animation as desired for working in Designer.

1 Like

thanks Witman and Phil for your valuable suggestion.