Hello, I currently using the function block ifmDevice.LinuxSysCallAsync and when i used it his output like wCMDResult and xDone are still the same, i would like to reset that output in order to reuse the function block for example:
this function will do a linux command and when it's done, wCMDResult will have 1 and xDone become true then i would like to use an other linux command and use some if condition but as the output already have result they automatically pass through the condition and do not execute the command
if someone can help me
Cordially
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
The xExecute bit on the function block instance needs a rising edge to start its asynchronous task.
So setting it false, then true, should clear the outputs and restart the execution of you function block instance.
Ifm uses the common behaviour model, so you will see the same behaviour for other function blocks.
Hope this helps.
-Bjarne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I currently using the function block ifmDevice.LinuxSysCallAsync and when i used it his output like wCMDResult and xDone are still the same, i would like to reset that output in order to reuse the function block for example:
this function will do a linux command and when it's done, wCMDResult will have 1 and xDone become true then i would like to use an other linux command and use some if condition but as the output already have result they automatically pass through the condition and do not execute the command
if someone can help me
Cordially
Hello,
The xExecute bit on the function block instance needs a rising edge to start its asynchronous task.
So setting it false, then true, should clear the outputs and restart the execution of you function block instance.
Ifm uses the common behaviour model, so you will see the same behaviour for other function blocks.
Hope this helps.
-Bjarne