Update Data in IL_ECATSoeRead

Hello Everyone

I follow help example to read parameters using command IL_ECATSoeRead as shown in picture Example A, In this example execute signal is always true

In my program I am reading parameter P-0-0115 but when I use execute in TRUE, this is not update parameter value in my program and I can not read Drive status signal constantly when it changes

I used a blinking boolean signal to get updating every 250mseconds, Is this the correct way to get constant reading of parameter value?

I appreciate help

Best reply by CodeShepherd

I agree that constantly read parameter should be added to the cyclic data channel.

A best practice is to use the outputs of the executed function block as input. So it only gets restarted if it already finished its function:
E.g. IL_StAx01_P115.Execute := NOT (IL_StAx01_P115.Done OR IL_StAx01_P115.Error)

View original
5 replies