If we want our functionblock ,according to some conditions is being enable or disable, how can we do?
for example: we have 3 function block in PRG and according to our logic we want call one of them.
have we use RETURN comman? how?
WIth est regards
You can use EN (Enable Input) Input for User Defined Function Blocks.
First off all, right click to your user function block, and enable the "EN/ENO" properties.
Accoring to some conditions you can set EN Input True or False. When EN Input is True your function block processed automaticly.
Hope it helps.