TIA Portal #16: Shift and Rotate in Tia Portal | Bottle filling using shift register

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

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

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

    thanks sir making video on asked topic..

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

    i loved your explanation better than others video. in this video, based on byte that saved on memory byte ShiftRegsterFilling there are BigBottle as 1 and SmallBottle as 0, how can you make these ShiftRegsterFilling values to affect those tags(tag 4,5,6....11)? did you using array?

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

      Hi.
      here --> 10:32 you can find the explanation how big and small bottles are saved at register. I didn't use array (You can use it and it can be also another solution) I wanted to learn toghether basics of shift so I used it with Add function to shift the values 0 and 1 and saved them according to the bottles.

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

      @@industrial_automation of course i know, your explanation was very well that you have combine ADD & SHIFT instruction to saved Big & Small Bottle, but i still dont get it How can register value affecting tag 4, 5, 6, 7...11 i minute 13:47 until 14:23, where those tags (4...11) come from? and function of these tags are to activate nazzel that would fill the bottle based on it's size, i just confused about how can you manipulate tag 4 - 11 with register value. loved your explanation & it's important to me, thank you sir

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

      ​@@shinypotato7204 You're welcome :)
      where those tags (4...11) come from? ---> Consider the adresses of these Tags. They are m6.0 to m6.7. (Memory bit 0 to 7 of byte 6)
      What is the address of our shift register? It's MB6. It means memory byte 6, consisting of bit 0 ...7
      Now what are these bits 0,1,2, ...7? They are status of bottles. We have saved 1 for big and 0 for small bottles inside these bits.
      in other word I have used Tag " Shift register filling" in the network 7 with the address of MB6 (Output of ADD function) and then I have parse the byte to bits (MByte6 to M6.0 ..M6.7) and used for each bit a tag (4 .... 11)
      When we have big bottle, the bit will be 1, so normally open contact will activate long filling and with small one and bit 0 normally close will activate short filling.
      Just try to understand the byte 6 and its bits.

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

      ​@@industrial_automation oh my god, thank you so much, Now i know that MByte6 can parse value to M6,.0 ... M6.7. thank you so much sir, it's totally clear explanation, I just found out about this:(

  • @vatsalthaker2122
    @vatsalthaker2122 11 หลายเดือนก่อน +1

    Can you tell again why in network 7 you add 1 to msb for big bottle I can't get it thanks

    • @industrial_automation
      @industrial_automation  11 หลายเดือนก่อน +1

      This network is to detect the big bottles (Using edge detection at the left side of the network). In our program big bottle is known as 1 and small one as 0. So I used this network to add a 1 to the left of our shift register, when a big bottle is detected. If you don't use this network it will be just 0 added with each bottle.

  • @vatsalthaker2122
    @vatsalthaker2122 8 หลายเดือนก่อน +1

    It would be nice if you add more complex examples like this one sir thanks

    • @industrial_automation
      @industrial_automation  8 หลายเดือนก่อน +1

      Sure. I just need some time to finish the videos for basic level then we will have advanced videos.

  • @MazenMohamedAEE
    @MazenMohamedAEE 2 หลายเดือนก่อน +1

    Thanks Sir
    I just have a question if my first bottle is big one the binary number should be 1000 0000 but according to your code it will be 0100 0000 since you are using add first then shr

    • @industrial_automation
      @industrial_automation  2 หลายเดือนก่อน

      Right. At first it will be 1000 0000 but then it will be shifted because the bottles are also moved to to right on convoyer after each detecting of bottles and because of this I wrote the code in this way. For the last bottle to prevent this I'v used the bit StopShift (NC before EN of SHR function in Network 10) when the number of bottles is 8 so with last bottle the shift register won be changed.

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

    Can you please upload this program or send it to me so i could study it , i was looking for this program for 6 months , please

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

      Dear Ammar I showed in the video everything and all the functions of the program and explained how they work. You need just to create a new project in Tia Portal and copy them.

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

    hello, good video
    how to use two shif register DWord, in cascate mode?