CODESYS: Using (CTUD) up/down counter function block

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ • 33

  • @hro2315
    @hro2315 7 років тому +7

    Why does this guy have so little subscribers? His content is top quality! Learned a lot. Subbed.

    • @TohidAlizadeh
      @TohidAlizadeh  7 років тому +1

      Looks like I need some more support from my viewers/subscribers. This will encourage me to work more!

    • @mohammedismail-xj2gz
      @mohammedismail-xj2gz 4 роки тому +1

      since he have always done everything !!!!!!!!

  • @olijahparris5021
    @olijahparris5021 11 місяців тому +2

    Hi Tohid, How do you assign variables to the pushbuttons? for lamps/spin control etc, 'variables' usually shows up in the property of the element but I don't see it for the pushbuttons

    • @TohidAlizadeh
      @TohidAlizadeh  10 місяців тому

      Hi, thanks for your comment. In the case of pushbuttons, you need to use the "InputConfiguration" Filed in the properties (the last filed), where you determine what happens if the button is pressed, or released, etc. I hope this helps.

    • @WayneRiesterer
      @WayneRiesterer 6 місяців тому

      If you're just using a Button, you can set a variable in Tap and it will cause the input to change state only when you click on the button. As soon as you release the button, the state changes back. This is good for momentary switches like a start button that has a seal-in contact. If you set the variable in Toggle, it will hold the same state after you release the button. For switches, they hold their value anyway, so if you set a variable, it will be toggled by the switch. I've just re-installed CodeSys and for some reason, the input configuration is different (or perhaps I just need some sleep). For some controls, I've been adding some structured text on the Mouse Down and Mouse Up events to set the inputs to True when clicking the button, then False when releasing the mouse button. I'm only just learning, so there are possibly lots, perhaps better, ways of doing things.

  • @locsei105
    @locsei105 8 років тому +2

    Thank you!

  • @pramodlatelwar2732
    @pramodlatelwar2732 5 років тому +3

    Dear Sir,
    Can please make a video of serial rs232 data transfer and receive ladder logic for Nexgen 2000 Plus (2211 CPU)

    • @TohidAlizadeh
      @TohidAlizadeh  5 років тому

      I do not have access to such a PLC, so I am afraid, I will not be able to make a video.

  • @user-oman-group
    @user-oman-group 6 років тому +1

    Is it possible to modify it from the browser or test penetration on it

  • @vkznactricna6578
    @vkznactricna6578 8 років тому +2

    Good Stuff

    • @TohidAlizadeh
      @TohidAlizadeh  8 років тому

      +vkznac tricna Thanks for the feedback.

  • @kimacar
    @kimacar 6 років тому +2

    Hello Tohid!
    Is it posible to do this exactly same but with Structured text? I'm not good with ladder :)

    • @TohidAlizadeh
      @TohidAlizadeh  6 років тому +1

      Sure, it is possible. You may need something like this:
      CTUD_0(CU:=CountUp, CD:=CountDown, RESET:=Reset, LOAD:=Load, PV:=PresetValue);

    • @kimacar
      @kimacar 6 років тому +2

      Thanks!
      I got one more question.
      How to make program with ST to combining order?
      For example... I need some order like this
      "1. S1
      2. S2
      3. not S1
      4. not S2 " - and when it realize in that order, than counter up have activated... I tried do this with 5 steps with initializing step=:0 in the place for variables... :)

    • @TohidAlizadeh
      @TohidAlizadeh  6 років тому +1

      I think I did not get the point in your question. Could you please clarify more. Do you want to have all those being checked in series, and in the order mentioned? Then why do you have S1 and then not S1?

    • @4fae
      @4fae 3 роки тому +2

      @@TohidAlizadeh Hi Tohid, really enjoy your videos thanks, need some help. Which way is Faster, CTUD(CU,PV) or IF iBOOL AND NOT interlookBOOL THEN, interlock:=TRUE; Chanel=chanel+1; end_if, IF NOT iBOOL AND interlock THEN, Interlock:=FALSE END_IF

  • @leosmi1
    @leosmi1 6 років тому +2

    wha about a time counter?

    • @TohidAlizadeh
      @TohidAlizadeh  6 років тому

      What do you mean by a time counter? To count the number of seconds?

  • @Andersbendorff
    @Andersbendorff 8 років тому +2

    You not showing how the end is made(visualization part) makes me sad. :(

    • @TohidAlizadeh
      @TohidAlizadeh  8 років тому +1

      +Andersbendorff I just wanted to keep the video short. The visualizations elements are explained in the other videos. Let me know which part of it seems difficult to you and I will recommend you some other videos accordingly.

    • @Andersbendorff
      @Andersbendorff 8 років тому +2

      Thanks for you reply, the Preset value. how do you define it. im quite new to codesys. + im using a older version then you are

    • @TohidAlizadeh
      @TohidAlizadeh  8 років тому +1

      +Andersbendorff I have used the SpincControl element to do so. You can check how to use it here: ua-cam.com/video/omcSLu1IXX8/v-deo.html

    • @TohidAlizadeh
      @TohidAlizadeh  8 років тому +1

      Since you are new to CODESYS, I would recommend you to have a look at the webpage of my industrial automation course, where you can find the videos categorized properly: - Visualization videos: tohidalizadeh.weebly.com/codesys-visualization.html
      PLC programming videos: tohidalizadeh.weebly.com/codesys-plc-programming.html

    • @Andersbendorff
      @Andersbendorff 8 років тому +2

      Thanks, ive been watching some of you videos. but cant find much about Analog inputs. do you got something with LIN_TRAFO ?