SC06b. Calculate Motor Speed RPM via Siemens S7-1200 HSC(High-Speed Counter) and Encoder

  Рет қаралды 32,802

Electrical Automation Hands-On

Electrical Automation Hands-On

Күн бұрын

Пікірлер: 36
@akashmaurya2193
@akashmaurya2193 2 жыл бұрын
Thanks Man, this one really saved me from lots of trouble... Although I used different formula, but your cyclic interrupt really explained it all. Keep it up with such videos. 👍
@electricalautomation
@electricalautomation 2 жыл бұрын
Thanks Bro! Glad your like it! Yes, my motivation for publishing those videos is to terminate/solve the issues and solutions I had, so it could save my self and another people enjoying seeing it. Thanks again!
@DavidSanchez-gb6dd
@DavidSanchez-gb6dd 2 ай бұрын
You saved my live with this video, Thanks a lot man!
@electricalautomation
@electricalautomation 2 ай бұрын
Glad the videos are helpful! Welcome!
@saifullah4412
@saifullah4412 2 жыл бұрын
Hello! very helpful video. Just want to know can we use absolute encoder instead of incremental encoder to achieve the same goal?
@electricalautomation
@electricalautomation 2 жыл бұрын
The method shown in this video is a cost effective way, meaning using PLC buitin IO high pulses for counting incremental encoder. Using absolute encoder basically means that you need a dedicated card "SSI" for reading absolute encoder, and it is 'extremely' high cost. Being that, I would use incremental encoder + encoder battery + motor brake.
@ghouseahmed4u
@ghouseahmed4u 2 жыл бұрын
Nice Explanation, one doubt to be clarified: If Counter is overflowing with counts more than 2147483647, can we do like this - "Since pulses are DInt format, after counter finishes counting until 2147483647, then can i move "1" to ID1000 directly, so that the cycle repeats?
@electricalautomation
@electricalautomation 2 жыл бұрын
Good Call, yes, when the counter almost or has been over flow, you can reset it to '1', and ignore this cycle of calculation.
@ghouseahmed4u
@ghouseahmed4u 2 жыл бұрын
@@electricalautomation hi, I tried moving 1 to ID1000 of HSC counter with physical input(I0.0) bit as reset. When I press reset(I0.0)then 1 is moving to ID1000 and when I release reset (I0. 0)then same value which was existing before doing reset, is coming back. Any suggestion please?
@electricalautomation
@electricalautomation 2 жыл бұрын
@@ghouseahmed4u Please review the SC06a kzbin.info/www/bejne/Z3S6fWeYgteib68, find the video 25:00- 27:00 talking about using CV to preset a counter value. For your question, you cannot over write a value to an 'Input' address. That the reason it returned the encoder value once your I0.0 was released.
@adi1257
@adi1257 Жыл бұрын
nice video, i have question....why in my program value of record counter and current counter are always same value, therefore the delta counter must be in zero (0), how to solve my problem ?
@electricalautomation
@electricalautomation Жыл бұрын
I think you may missing something. Please review the video carefully and take care the sequence of the logic
@taavikoppel1769
@taavikoppel1769 3 жыл бұрын
What happens if the Double integer overflows? A signed 32bit integer has a max value of 2,147,483,647. So if your encoder has 1024 increments per revolution... it overflows after roughly 2 million revolutions. So after ca 580 hours at 60rpm. Then one time this speed calculation will be very wrong... a very large negative value when going from 2 billion to a very low number. Can it cause the PLC to stop because of an error? You used a REAL but if someone uses a regular Integer than this large number would not fit inside it. Can this be avoided somehow? Can you reset the encoder value every 200ms so it will never grow so big.
@electricalautomation
@electricalautomation 3 жыл бұрын
Hello Taavi, thanks for coming up this topic, this is a really good question. If you are using the HSC and its counter for calculating the speed, you need to consider avoiding the calculation when the counter goes cross the 2^31 to '-' negative value. it is a just short moment and could use program to ignore the value when it is having the overflow. If you are using the ‘TO’ the axis for reading the encoder, please view the link below and find the “encoder value overflow ” solution. support.industry.siemens.com/cs/document/109794046/simatic-s7-1500-product-information-on-the-s7-1500-1500t-motion-control-documentation?dti=0&lc=en-CA. Also I would like correct one thing, the max value of 2,147,483,647 (2^31) represents the revolutions, which means if a motor runs 3000rpm, the TO encoder raw can count 715827 mins, -> 1.36 year (likely should be also higher these hours, I am counting the worst case, I remember it would be 5000 years). This motor runs full speed and runs for more than 1 year without any stop and TO HOME chance. Then mathematically, it could cause the overflow error. But then this come back to the question to "Design" that THIS IS NOT FIT FOR USING "TO" TO CONTROL THE CONTINUOUS RUNNING MOTOR. Also in real life, there would be chances for maintenance the production line, power shutdown, production change over, and cycle start/stop. There have many chances to HOME the axis.
@mestresplinter2467
@mestresplinter2467 3 жыл бұрын
Hello! Great video as always. I'm trying to use this method to build a control for a DC motor, but the PID_COMPACT just don't understand my inputs. The RPM can actualy go from -80 to +80, and the h bridge accepts values from 0 to 127 (0 max speed CCW, and 127 max speed CW, resting on value 64). This just don't work, and the PID shows some very high values at the input, that doesn't seems related to my actual input... can you help me somehow? Thank you btw for all of these beautiful videos.
@electricalautomation
@electricalautomation 3 жыл бұрын
Hello friend, please review the video launched today, kzbin.info/www/bejne/hZWXlKSggtinarM , it could solve your positioning control with a better way. And the video talking about how to use the program MC Function Blocks with TO will be launched next Monday.
@kgauravb
@kgauravb 3 жыл бұрын
Very well explained, can you explain how to calculate the distance in linear motion using same encoder?
@electricalautomation
@electricalautomation 3 жыл бұрын
Thanks for your question! I will launch two videos in next two weeks talking about the position control via S7-1200 -> analog output -> DC Motor -> Encoder feedback. The encoder ratio will be discussed in the video. See you then.
@sethgabriel9356
@sethgabriel9356 2 жыл бұрын
valeu cara estava fazendo um projeto aqui e voce me ajudou muito😄
@electricalautomation
@electricalautomation 2 жыл бұрын
Thanks!
@muhammadtauhidhidayat6020
@muhammadtauhidhidayat6020 Жыл бұрын
Record counter = Current counter and you do Sub its meant the result is 0?
@electricalautomation
@electricalautomation Жыл бұрын
The record counter came from the previous interrupt cycle
@movies1774
@movies1774 2 жыл бұрын
Why #current counter is moved to #Record Counter in Network 3
@aliosmantopkan8339
@aliosmantopkan8339 Жыл бұрын
video için teşekkür ederiz programı paylaşabilir misiniz
@sangarabdulrahman6140
@sangarabdulrahman6140 3 жыл бұрын
Thanks very much ... siemens 😍😍😍
@electricalautomation
@electricalautomation 3 жыл бұрын
Warmly Welcome!
@serhatkyar2887
@serhatkyar2887 Жыл бұрын
Thanks
@electricalautomation
@electricalautomation Жыл бұрын
Thanks!
@rizwanmahmood7350
@rizwanmahmood7350 Жыл бұрын
It is not working i tried many times
@elizeusimoes490
@elizeusimoes490 3 жыл бұрын
Ver good 👏👏👏👏👏👏🍺🍺🍺🍺🍺🍺
@electricalautomation
@electricalautomation 3 жыл бұрын
Thanks Bud!
@vuduyphuong2327
@vuduyphuong2327 3 жыл бұрын
I think you can explain to everyone : Speed = Distance/ Time = [(C1-c2) / 0.2s ] / 1024 (RPS) = [(C1-c2) / 0.2s ] *60/ 1024 (RPM) it will be easy to understand
@electricalautomation
@electricalautomation 3 жыл бұрын
Thanks a lot! I will reference your comments and add this explanation under my video. Thanks again!
@spk7054
@spk7054 2 жыл бұрын
That's another great explanation.
@spk7054
@spk7054 2 жыл бұрын
From this formula Assume (C1-C2)= 1024 The result after sol . Speed =Distance /Time = 12 yes or right?
@Kozak450
@Kozak450 Жыл бұрын
It's easier to call OB30 every 1000ms.
COM28. EtherNet/IP - Schneider M241 M251 M262 (Scanner) & Siemens S7-1200 S7-1500 (Adapter)
32:39
SC06a. Read Incremental Encoder via Siemens PLC S7-1200 HSC(High Speed Counter)
28:16
Electrical Automation Hands-On
Рет қаралды 31 М.
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 31 МЛН
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 31 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 14 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 32 МЛН
How to measure speed (rpm) of motors by using encoder? Part-1
35:07
General Technology Knowledge
Рет қаралды 17 М.
How to read encoder with PLC HSC (High Speed Counter)
17:34
Gökhan Atalı
Рет қаралды 58 М.
PTO Pulse Train Output and HSC high speed counter PLC siemens S71200
17:46
BELAJAR PLC & SCADA
Рет қаралды 9 М.
Siemens S7-1200 PLC Encoder Wiring and Fault finding tips. Eng
12:23
IFM Encoder to S7-1500 High Speed Counter
11:19
Insights In Automation
Рет қаралды 24 М.
TIA Portal: PID Compact - How to program and use it!
17:54
Hegamurl
Рет қаралды 241 М.
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 31 МЛН