CODESYS: Visualization trick - Creating momentary switches

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 21

  • @TohidAlizadeh
    @TohidAlizadeh  2 ปีที่แล้ว +2

    Update:
    If you set the "Element behavior" property of the switches to "Image tapper" instead of "Image toggler", then they behave as a momentary switch.

  • @tuonghiendk7
    @tuonghiendk7 5 ปีที่แล้ว +3

    Thanks for all your video It is very great with me when i am starting program with codesys so your video is the best for me understand about codesys !

    • @TohidAlizadeh
      @TohidAlizadeh  2 ปีที่แล้ว +1

      Thanks a lot for your nice comment. I am glad that you have found my videos useful.

  • @peterevans7480
    @peterevans7480 5 ปีที่แล้ว +3

    Great vid. I am learning a lot from your vids thank you.

    • @TohidAlizadeh
      @TohidAlizadeh  5 ปีที่แล้ว +2

      Great to hear this. Thanks for your nice comment!

  • @KonardAdams
    @KonardAdams 3 หลายเดือนก่อน

    Great video! Thank you🙏

  • @tamerakti
    @tamerakti ปีที่แล้ว +2

    Hello,
    button a tap can't define variables. Although I select PLC_PRG.start, plc outputs do not change when the button is pressed. Do I need to add a library or where is the error?
    codesys version 2.3

    • @TohidAlizadeh
      @TohidAlizadeh  ปีที่แล้ว

      Hi,
      You don't need a library to have the button working normally. I am not sure about the reason for your issue. Did you manage to fix it?

  • @nandusuresh2202
    @nandusuresh2202 2 ปีที่แล้ว +2

    Sir, in visualisation toolbox that Lamps/Switches/bitmap section no images are there, i can onky see the labels. Also when iam dragging the thing to the screen, no images are loading there on the screen

    • @TohidAlizadeh
      @TohidAlizadeh  2 ปีที่แล้ว

      Probably you need to install CODESYS again.

  • @DamianJurkiewicz
    @DamianJurkiewicz 9 หลายเดือนก่อน

    I have a whole set of screen buttons in my HMI and I want to change color on tap on each of them to give touch feedback to the operator.
    Problem:
    If I use one variable BOOL for Tap -> Variable for all the buttons, if I tap on any button the rest of them also change the color.
    It does not make sense and I don't want to create separate variables for each of the buttons in the interface.

  • @stanislavasgoldyckis7740
    @stanislavasgoldyckis7740 7 ปีที่แล้ว +4

    Hello, thanks for video, but I have a question
    when I will create the momentary switches doe's it mean that I don't need to use the R_TRIG in such case?

    • @TohidAlizadeh
      @TohidAlizadeh  7 ปีที่แล้ว +2

      Hi Stanislavas,
      That is true! Indeed when you use the momentary switch, you do not need to use the R_TRIG, since the state of the variable associated with the switch will change for one program cycle only.

  • @wojtekdab7760
    @wojtekdab7760 2 ปีที่แล้ว +2

    can i activate one button, without deactivating the second one?

    • @TohidAlizadeh
      @TohidAlizadeh  2 ปีที่แล้ว +1

      If the buttons refer to different variables, then normally you should be able to activate and deactivate the buttons independently, unless the logic prevents this situation. For example, it does not make sense to activate both Start and Stop buttons at the same time.
      I hope I answered your question.

  • @supportmpags9735
    @supportmpags9735 4 ปีที่แล้ว +2

    HI ,
    if i want to START & STOP operation from same Button & it the button should change its color.
    ex :- if Start then Green & if Stop Red.
    How can i do that can you let me know.

    • @TohidAlizadeh
      @TohidAlizadeh  2 ปีที่แล้ว +1

      You can use the "Color variables" in the properties of the button. I will try to address this in one of my upcoming videos.

  • @InfernoVol
    @InfernoVol 8 ปีที่แล้ว +3

    How can i write this code in ST ? :)

    • @TohidAlizadeh
      @TohidAlizadeh  8 ปีที่แล้ว +4

      It is quite simple:
      Motor := (Start OR Motor) AND Stop;
      For more explanations check this video: th-cam.com/video/aImAvQqs0gg/w-d-xo.html

    • @InfernoVol
      @InfernoVol 8 ปีที่แล้ว +3

      Thank you ! I've solved the problem :)

    • @TohidAlizadeh
      @TohidAlizadeh  8 ปีที่แล้ว +3

      Nice to hear that you have solved it!