Reset output of a FB

libi
2022-02-22
2022-02-22
  • libi - 2022-02-22

    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

     
  • bjarne-pagaard - 2022-02-22

    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

     

Log in to post a comment.