Complete CODESYS tutorial how to use UP/Down and CTUD counters | Ladder Logic PLC programming

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

КОМЕНТАРІ • 18

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

    Hello,
    please change the name of the video to represent Function Block not counters, thank you for the tutorial

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

      Thanks for suggestion! 👍👍

  • @Runtimevic
    @Runtimevic 2 роки тому

    Hello, the signals declared as outputs: Fill_Valve and Discharge_Valve should not be declared as input_output?, since in the program, in addition to being written, they are read, they are consulted within the FB...

    • @plcgoodsteam8934
      @plcgoodsteam8934 2 роки тому +1

      Hi there, your right. In this project, we can also define these 2 variables as Input-Output variables. Note that, because the Function block stores its output variables, my program is working correctly as well (time 1:37 to 1:50)

    • @Runtimevic
      @Runtimevic 2 роки тому

      @@plcgoodsteam8934 , So Codesys and Siemens work differently? Since in Siemens if you have a variable that is read and written within an FB, it must be declared as input_output, doesn't the same concept apply to Codesys?...

    • @plcgoodsteam8934
      @plcgoodsteam8934 2 роки тому

      @@Runtimevic Hi there, I've tested the program using Function-Block (FB) and the S_PEXT timer in Step7. It works as well as my code in CODESYS. In my opinion, both of them (FB blocks in both CODESYS and Step7) store their outputs and during the next scan cycle, they can use them. IN-OUT variable is used when we want to pass a data to a FB block, process its value, and then store the result in the same variable (not in a new variable).

    • @plcgoods
      @plcgoods  2 роки тому

      Thanks for checking out the channel!

  • @AA-nq8ec
    @AA-nq8ec 2 роки тому

    In 17:22 - 17:28 how did you manage to turn the fill into True? When i double click i just get FALSE . Please help.

    • @plcgoodsteam8934
      @plcgoodsteam8934 2 роки тому

      Hi there, As I've mentioned in the previous videos of the Codesys course, after double clicking, press "CTRL"+"F7" on your keyboard.

    • @plcgoods
      @plcgoods  2 роки тому

      Thanks for checking the channel!

    • @AA-nq8ec
      @AA-nq8ec 2 роки тому

      @@plcgoodsteam8934 How did the discharge valve automatically change to true when the fill was pressed? All the values are still false after I press the pushbutton?

    • @plcgoodsteam8934
      @plcgoodsteam8934 2 роки тому

      @@AA-nq8ec Hi there, I've explained all part of programs during the video. I think your problem is related to running and simulating your programs, not the logic of your code. Please see the first videos of our CODESYS course to ensure that you can simulate a simple program without any problem, or please clarify your problem for us to answer it.

  • @abdalishah8721
    @abdalishah8721 2 роки тому

    Sir multi blade bridge saw machine program please

    • @plcgoodsteam8934
      @plcgoodsteam8934 2 роки тому

      Hi there, I don't know what program you want. In this video, I wrote a program to control 2 tanks that its programming steps were explained. do you want it?

    • @plcgoods
      @plcgoods  2 роки тому

      you question is answered, check it out

  • @abdalishah8721
    @abdalishah8721 2 роки тому

    Hello sir multi Blade stone cutter machines plc program

    • @plcgoodsteam8934
      @plcgoodsteam8934 2 роки тому

      Hi there, I don't know what program you want. In this video, I wrote a program to control 2 tanks that its programming steps were explained. do you want it?

    • @plcgoods
      @plcgoods  2 роки тому

      you question is answered, check it out