How to use/create SOTU in LD program

hyys12
2024-07-11
2024-07-11
  • hyys12 - 2024-07-11

    I am trying to make a LD program for an existing installation with a motor. Here an inductive sensor is used to give an input, as a check to verify the conveyor is actually running. Here the plan was to use a TOF timer which gets constantly reset when the sensor input gets detected. The problem is, that if the conveyor is stuck, and the sensor sends a continous signal, the timer will never do what it is supposed to do. Therefor I need some help on how I can convert the input to a pulse, with the help of something like a SOTU. I just cannot find this in codesys anywhere.

     
  • rmaas - 2024-07-11

    You can use the R_TRIG and F_TRIG function blocks to generate a pulse in Rising or Falling edge of your signal.

    Have a look here: https://content.helpme-codesys.com/en/libs/Standard/Current/Trigger/R_TRIG.html

     
    • hyys12 - 2024-07-11

      Exactly what I needed. Thanks!

       
  • gatto

    gatto - 2024-07-11

    Hi, something like this

     
    • hyys12 - 2024-07-11

      Yes. R_TRIG and F_TRIG works exactly like needed for this.

       

Log in to post a comment.