CODESYS: Creating and using function blocks in Structured Text (ST)

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

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

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

    Thank you so much, Mr. Alizadeh!

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

      You are welcome. I hope you enjoy watching my videos.

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

    Thank you for your time!

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

    thank you by the way, saved a lot of time because of this, soo very thank you

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

      Thanks for your nice words. Glad to hear this.

  • @RottieHaven
    @RottieHaven 3 ปีที่แล้ว +1

    Thanks for this sir!

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

    thank you, very helpful, keep well!

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

      You are welcome! Thanks for the comment!

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

    Thank you very much for this tutorials..

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

      You are welcome. Thanks for your nice comment!

  • @semuabaiks
    @semuabaiks 4 ปีที่แล้ว +1

    Alhamdulillah
    Thank you brother tauhid

  • @azamafzaal769
    @azamafzaal769 7 ปีที่แล้ว +3

    Dear Tohid,
    Thank you very much for making video and highlighting my comment. I am really honored and grateful to you. As i mentioned in my previous comment that i want to use functions not function blocks to call them in the main program. As far as function blocks are concerned i already did that.
    P.S: For functions we can either select them as a POU or we can right click on the main program and can select (Method, Action, Transition etc.). But the problem is, function calling is not proper it gives me an error.
    Please make a video using functions only not FBs. Thanks anyway !

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

      Check this out:
      th-cam.com/video/hYuNbRQ_Q7g/w-d-xo.html

  • @GuillermoRuiz-Camauer
    @GuillermoRuiz-Camauer 5 หลายเดือนก่อน

    You should always check for division by 0 before dividing!

  • @אסףזילברשטיין-מ5כ
    @אסףזילברשטיין-מ5כ 2 ปีที่แล้ว +1

    Could you please make a video about function blocks methods?

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

      Please check out this tutorial:
      th-cam.com/video/5xBf3JyQFec/w-d-xo.html

  • @kadiryilmaz7378
    @kadiryilmaz7378 5 ปีที่แล้ว +1

    hello sir,
    why does it not work when you would write like this:
    function.input1 := ...;
    function.input2 := ...;
    somewhere else in normal program
    someVariable := function.output;
    afther your video i changed it to:
    function( input1 := ..., input2 := ...);
    someVariable := function.output;
    then it worked, but i do not understand what the difference is, they look similar to me.

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

      That is just the way in which you call the function.

  • @Daniel-dj7fh
    @Daniel-dj7fh ปีที่แล้ว +1

    Is it just me or is the audio really quiet on this one

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

      Same here! Sorry for the low level of the sound for this video. I wish TH-cam provides a way to update the voice for the published videos.

  • @RT-fi7rb
    @RT-fi7rb ปีที่แล้ว

    Do you have to create a Funktionblock (FB) for each function you want to create? OR can one FB have different functions?

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

      You can have several functions implemented within a function block if needed. You need to pass the input arguments of all functions as the input to FB and get the outputs accordingly.

    • @RT-fi7rb
      @RT-fi7rb ปีที่แล้ว

      @@TohidAlizadeh thank you

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

    tnx

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

      You are welcome. I am glad it was helpful!

  • @WastingTime1878
    @WastingTime1878 5 ปีที่แล้ว

    what if A and B are arrays, and we want to do operations on every single element of that array.