CONTINUE the LOOPs | Skip loops in SCL | Exit loops | TIA Portal V16 | SIEMENS TIA portal |S7-1500

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

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

  • @Olavotemrazaodenovo
    @Olavotemrazaodenovo 4 ปีที่แล้ว

    Excellent job. Congratulations from Brazil.

    • @hdhosseini
      @hdhosseini  4 ปีที่แล้ว

      Thank you very much!

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

    Hi Hamid thank you so much for this example, i am proud to be your subscriber....

    • @hdhosseini
      @hdhosseini  4 ปีที่แล้ว

      Glad to hear that

  • @dariosouza8956
    @dariosouza8956 4 ปีที่แล้ว

    Muito bom, parabéns!¡

    • @hdhosseini
      @hdhosseini  4 ปีที่แล้ว

      Thanks for nice message , Stay connected for new topics

  • @ruelobomani2444
    @ruelobomani2444 4 ปีที่แล้ว

    Thanks sir

    • @hdhosseini
      @hdhosseini  4 ปีที่แล้ว

      Welcome , stay connected

  • @konradb2010
    @konradb2010 4 ปีที่แล้ว

    3:58 you don't have to initialize loop counters

    • @hdhosseini
      @hdhosseini  4 ปีที่แล้ว

      Thanks , I must when it is from local memory.

    • @konradb2010
      @konradb2010 4 ปีที่แล้ว

      @@hdhosseini you don't have to do it, as in the FOR syntax itself you have
      FOR #var := 1 to 10 DO...
      At the start of the FOR function you assign the values to your run tag '#var' (by using ' := ' )
      Try doing loop with writing some random value to '#var' just before the FOR function and you'll see that it still performs without any issues.
      What you are referring to is, in the non-optimized blocks the common L Stack memory is used and then you have to initialize the temp variables. In optimized blocks it is not required, but perhaps some developers still do it for a peace of mind.
      Thanks.

    • @hdhosseini
      @hdhosseini  4 ปีที่แล้ว

      It is a rule for local memories , my intention is to highlight this point and I always follow it. I will initialize local memories in any application in future.
      If you think they are unnecessary , delete them when you want to use such a pattern.