Configure a Micrologix Encoder High Speed Counter
Vložit
- čas přidán 9. 07. 2024
- In this video we show you how to configure RsLogix 500 for an encoder connection, how to wire the encoder, and why counting in ladder code doesn't work.
Don't forget to like and comment on our videos and subscribe to our channel.
czcams.com/users/TimWilbo...
Support these videos while you advance your skills courses.twcontrols.com/
RsLogix 500 Serial Communications Configuration • RsLogix 500 Connect to...
RsLogix 500 Ethernet Communications Configuration • Allen Bradley Microlog...
RsLogix 500 Downloading your program • RsLogix 500. Download ...
Items used in the video:
Micrologix 1100 PLC Trainer controls.tw/jnuk2
Encoder Simulator with Open Collector controls.tw/kd45x - Věda a technologie
You never fail me Tim. Thank you
You are welcome :)
So very Helpful to me! Thank you sir Tim.
I glad to help. Thank's for watching!
Great Video Tim and very valuable information !!
Thanks, the high speed function file is one of the lesser known features of the Micrologix PLC. You can do a lot of high speed applications with it that you would normally think you need a PLC with a lot more horsepower for.
@@TimWilborne Absolutely right, i have seen it many time, in many applications. also, i have seen the lag issue, just like what happened here, the send high freq. where the PLC can't keep up.
Great video!!! Thanks for the information!
Glad you liked it. Thanks for watching!
That is a great video, as always!! I tried to find out the max PPS that a Micrologix HSC could read and didn't find it in the manual. (maybe I didn't look hard enough) I called our A-B dealer rep and his engineers couldn't answer the question but said my 32 ppr encoder would work at 1800rpm. Thank You again!!
Just make sure you have a series B. Seems the series A were 20 kHz.
Thank you very much Tim share your knowledge. This video helped a lot.
You are welcome Antonio. Glad to hear it was helpful.
Thanks for your videos, they are helping us too much for a integration we are doing with a cutter machine.
Glad to help
i assumed you as my AUTOMATION Professor cause explain good
Great video!!!! I learned something new🤘💪👍
Glad to hear it Enrique.
Very Helpful! I'm learning at work with a micrologix1500C. I'd love to see more videos covering some of the more complicated instructions such as FBC and DDT and some of the more complicated instructions since ALB is somewhat lacking in their help and examples.
More to come!
Awesome video.... exciting
Thank you 😀
Very good demo
Thanks, we've got some videos coming out on the other function files.
Excellent video. Also, the tool that you use here, the encoder simulator. I didn't know that tool existed.
Glad you liked it! Here is a link to the PLC Tools SIM-EOC Encoder Simulator.
plctools.com/encoder-pulse-frequency-simulator-and-tester-5-to-24vdc-open-collector-with-din-rail-mount/
Nice information thanks
You are welcome.
great video
Thanks for watching Adonis!
This is great! I sure would like to see the servo set up!
I've been thinking the same thing. I'll have to see if I can get some parts together. Thanks for watching!
@@TimWilborne waiting for it sir! :)
Hello Tim,
Can I please know that microlodix 1500, CAT 1764-28BXN ser B has high speed counter input on it or not? I checked the manual it seems like it doesn't.
Thank you
Great video, thank you very much!
You are welcome Roko!
@@TimWilborne can you maybe explain how to read time between two rising edges/impulses? Im doing a school project but im having trouble using HSC and STI interrupts on Micrologix 1500.. manual is not helping too much. I watched most of your other videos related to the topic. Thank you for your time
Have a look at the EII function file. That one is what you need. I don't have a video on it.
@@TimWilborne I will, thank you very much! 😘
how to calculate displacement in millimeters ??? Please.
Thanks for making this videos, they are so helpful. Could you please make one explaining how to use the Message Instruction for more than one message at a time? Thanks!
Yes that would make a good one, I'll put it on the list.
Thanks a lot sir
You are welcome!
Thanks for the video it's very useful. Please let me know if the same programming with an additional condition can be used for speed feedback from a pickup device.
Yes, only you wouldn't use quadrature for the mode. You would use count up.
Hi Tim. Do you happen to know the part number for those terminal blocks with the spring clamps that you are using for your 24 V supply terminals. Those look they would stand the test of time with apprentices in a school lab environment.
2nd question. I am contemplating purchasing (25x) AB 1100 Micrologix PLC with an external Analog Module. Would this be adequate to control a vfd, or do PID control, or based on this video, connect an encoder? Do you guys ship to Canada? Thanks so much for all the phenomenal videos. I've learned a ton from you.
Hi Pete. They are called screw less terminal blocks. controls.tw/64fkn
Thank you for a great presentation.
I tried to redo the mathematics you went through but I could not get similar result to yours, my 800 usec translate to near 1 msec which means 1000 pulse should be detected, however you only mentioned 500. Does this mean that 2 scans should be allocated to each pulse?
Thank you in advance for your help.
It has to see the transition of both on and off.
Very interesting. I have a quick question: I programmed an inspection system inspecting with AB ML1400 (to check the count and see the correct orientation of containers). My counter is working very well but occasionally it will send false alarms when the count is right. Would you have any advice to solve the issue?
Chances are it is about you needing to understand program scan. While not what you are asking, how on tomorrow's Livestream. It will likely help
I like the idea but it's gonna be difficult for me because of my work schedule. I have been trying to monitor the system but I am not able to catch that happening. The fact that it's a random situation. I don't know how to solve it. I am thinking about using different sensors maybe I can solve it. Happy New Year Tim.
Help! I have a Mitsubishi FX2n-16EYR I have a dead output channel. I'm looking to replace it. Is there a modern Mitsubishi I can put this program in. What is the software I need to do this? Thanks!!!
The FX3 is the modern replacement I believe but it has been a while since I've worked with one of them.
Hey Tim, it's really useful, can I get the backup out of a faulty PLC?, suppose there was an error in the controller and the fault led is On.
If the fault light is solid on then no. If the fault light is flashing then you probably have an 80% chance of extracting it
@@TimWilborne Many Thanks brother.
Hello,
can you please tell me how i stop minus counting of encoder in AB PLC, as well as if my motor is run and stop after some time i push stop button and application is stop but due to weight it has slippage in application how can i stop pulse counting in that slippage.
You can use the Counting Enabled (CE) to disable the counter when you do not want it to count.
To stop reverse counts, you need to change your HSC Mode (MOD). I'm guessing you have it on 6 or 7. For an up only counter it should be 0 or 1. Also note that this will disable input 1 and your counts will be 1/4 of what it was previously.
When you pressed accept rung edits, I:00 shows Bul.1763 why? Secondly we never had physical input at I 00 then why its flashing (receiving input).
Hi Muhammad. I:0/0 is on the base unit of the Micrologix 1100 (1763-L16BBB) we were using, that is why it said Bul. 1763. Inputs 0 and 1, I:0/0 and I:0/1, were connected to the PLC Tools SIM-EOC Encoder Simulator which was sending pulses to those inputs in a quadrature encoder format.
Hi Tim. How can you trigger an output after a certain amount of pulses. For example if the encoder is running and I push a button at count 500, I want to turn a light on for 50 pulses after 1000 pulses have passed. Also how can I handle pushing the button a second time before the light has turned on from the first push and still light up the light for both button pushes?
I'm not sure I'm fully understanding what you need. But if I'm halfway following you, you would use MOV instruction with an ONS with a Source A of HSC:0.ACC to capture the value when you press the button. Then an ADD instruction to add 1000 to that value to determine when to start you light. Then ADD to determine when to turn the light off. Then you could use a LIM of these two values to turn on the light. Does that sound right?
Tim Wilborne yes. But what I am wondering is how can I keep track of two or more button presses at the same time. This is for an actual application of boxes across a conveyor. The encoder is on the conveyor and when it senses a box it triggers an action downstream on the conveyor. Before it gets there though, more boxes would have passed that original sensor.
@@FoxyGrandma915 OK got you. You'll want to look at the FIFO instruction to store those values.
Hi Tim, very nice video. How is the function of the Progam File, in this case, LAD3-HSC? Because you don´t write any code in there.
You can make Ladder 3 execute when the HSC reaches a preset value. Say that you needed to do something with precise timing the moment that a value is reach, ladder 3 would interrupt the normal execution of the program and immediately run.
@@TimWilborne Ok ok!! thanks for the answer.
Hello Tim. Thanks for all you content, its been very helpful. Im trying to use a 1769 HSC on a compact logix l35e for RPM but I cant get the current rate to display properly. It reads 0 unless im spinning it real fast then it just reads either 100 or 200. The channel is enabled and the current count is working fine. Im using a 60ppr single channel encoder. I have check out all the forums and tried things people suggested who had similar issues but still no success. Any help would be appreciated. Thanks
That is most likely a rounding issue cause by using an integer instead of a floating point number somewhere in your calculation. How are you calculating the rate?
@@TimWilborne Hello Tim thanks for you reply. Im not actually calculating anything yet. Im just watching the tag value current.rate. The manual on the card says to change the scaler value based on you ppr (ppr/60) but because my ppr is 60 I left the scaler at 1.
@@minteqipad5720 I'm not familiar with the Scalar field. Here is an example of doing it in ladder. It is written for CCW but the principle is the same.
www.theautomationstore.com/calculating-rate-on-a-high-speed-counter-in-an-allen-bradley-micro800-micro850-plc/
What version of rslogix is that? It looks different than mine and I just installed v12
I can't recall what version that video was made with. What looks different?
greetings TIM
a question with the 1746-HSCE2 module ... can I configure two encoders individually?
Thank you
Hi Stanley. Yes it can handle two encoders but the 1746-HSCE2 configuration is not nearly as easy as this. In fact it can be a pain. If this is a new application then I would consider something besides the SLC.
The application is ready, but now we want to incorporate two encoders for the machine path without changing the SLC
just incorporating this card
How difficult is it to configure this module?
@@stanleypolanco4887 Without knowing the application I can say, but in previous applications i've added a second PLC to handle the HSC instead of working with the SLC. But there were other variables such as available slots, response time, etc.
Can you do PTO from the Function files
It is on the list, I still lack a few pieces of hardware
hello tim
plz tell me how to configure and make program to indicate (100mm/min to 1000mm/min) by using 2080-MOT-hsc plug-in module with 2080-lc50- 24qwb
Check out this video. It is for the built in HSC of the Micro850 but the principle is the same.
www.theautomationstore.com/allen-bradley-micro800-hsc-high-speed-counter-configuration-for-encoders-in-ccw/
@@TimWilborne Tim in this video you not use plugin module
in my application I've to use HSC plug-in module(2080-MOT-HSC) in 2 slot of micro850 (2080-lc50-24qwb)
Same setup, you just need to change HSCApp.HSCID.
@@TimWilborne what do I select or put value in hscapp hscID
How can I do HSC in CompactLogix L27ERM CPU ?
It is on the list to do. Stay tuned!
@@TimWilborne Thank you very much but if possible can you put it in the first list instead?
@@vorapobautomation9760 Right now we are working on PID videos
@@TimWilborne Maybe next from PID video Thank you. I have to connect incremental encoder to CompactLogix CPU soon.
Hello, how can I make a meter that reaches two million or more?
I'm doing a labeling system and I have this problem because my plc counter was blocked at 32767
How could I do it?
What PLC are you using?
@@TimWilborne ALEN BRADLEY 11OO
@@silviagp1303 Use the L Long data type. It will get you past 2 million
Can you give me wiring diagram open collector encoder connect to plc compactlogix ?
Which model of high speed counter are you connecting to on the Compactlogix?
@@TimWilborne I use Encoder Open collector output type
@@TimWilborne I connect to builtin HSC
@@vorapobautomation9760 See page 192 and 193 of this manual.
literature.rockwellautomation.com/idc/groups/literature/documents/um/1769-um021_-en-p.pdf
@@TimWilborne Not clear thanks
Hello, i tried to connect and read from a flow sensor FL 608 of digiten, but i coulndt :(
I did it with an arduino but i cant seem to make it with my micrologix 1400.
Can you help me
Thanks
Check the voltage and output type of your flow meter.
@@TimWilborne Hi, thanks for the reply.
The output is square pulse.
I connected it with a 12v.
The voltage between signal and power is 12 V
Wiring is:
Red cable is power
Black is 0v
Yellow is signal
@@F11Daniel Most Micrologix PLCs are either 120VAC or 24VDC inputs. Neither would work directly with your flow meter. It is possible you could use a voltage divider to make it work but you need to look up the part number of your PLC and see what type of inputs it has.
@@TimWilborne my plc works with 24vdc
I am powering the sensor with an external 12v power supply and the signal to the I:0 of the plc.
Am I doing the right Wiring?
I have + and - of the sensor to the power supply.
The signal to the plc
The plc is powered with an external 24vdc power supply
I did all the steps to the HSC and go to online but cant read
@@F11Daniel Yes but what is your PLC's input voltage. For example a 1763-L16BWA has 24VDC inputs. 12VDC will not work.
hello tim
Amar again
Please make video on hmi program for same hsc with encoder application and more thing plz tell
previous comment you suggest me to change "HSCAPP1.HscID" I DO NOT UNDERSTAND WHAT VALUE I PUT AND in your video you use plc in-built terminals [com, 1 & 2], but i my case all in-built plc terminals are already used as DI and i put 2080-MOT-HSC in 2nd slot of plug-in, first slot of plug-in is occupied by 2080-IQ4 module this is system requirement or say machine operation requirement and i used 2080-lc50-24qwb plc
and now i not how to design program to indicate (100mm/min to 1000mm/min) in HMI[2711R-T4T series-B
and to communicate plc with HMI
Please help
Where's the fire, Tim? haha