Saltar al contenido principal

Heartbeat Communication to PLC

Comentarios

4 comentarios

  • jscannell

    Seems my code never ran because I put it inside a new section.

    Do I need to "call" new sections?

    0
  • Deryck Beliveau

    Are you running the code in the init section? This will run when the Flexy starts and set up the on change to run the function.

    Deryck

    0
  • jscannell

    No, I had originally made a new section. Seems that the code in my new section didn't run, I proved this to myself by putting some garbage test in there. I moved my code to "cyclic" and things worked fine.

    For my future reference, if I make a new "section", am I also required to "call" that section?

    0
  • Deryck Beliveau

    Hello @jscannell,

    If it is in the cyclic section it is getting run every cycles. This is not recommended, you should be able to put your code as is in the init section. This runs when the Ewon boots then the onchange will trigger the heartbeat function to run.

    It should look something like this:

    image
    image890Ã482 18.6 KB

     

     

    0

Iniciar sesión para dejar un comentario.