QUOTE(BobLfoot @ Feb 19 2009, 10:38 AM) [snapback]79024[/snapback]
QUOTE(matt2822 @ Feb 19 2009, 09:35 AM) [snapback]79022[/snapback]
I have a micrologix 1000 that has an encoder hooked up to it on the input 0, but the funny thing is is this input is not shown on the ladder logic? But when I unhook the wire it stops working so I know its that input? Looking for some enlightenment
Enlightenment will come as we define your problem and question better.
You ahve an encoder hooked to input 0 of an ML1000.
When you remove input 0 the encoder stops working.
How do you determine that the encoder stops?
Does the Oscilloscope attached to the wire that was hooked to input 0 cease to have a pusle train?
Does some HMi readout stop displaying pulses or counts?
It would also help if we knew the encoder make and model as well as oeprating specs.
I dont have the specs for the encoder at this time, but will try to get them. When I mentioned unhooking input 0 I can see the high speed counter stop counting
QUOTE(Alaric @ Feb 19 2009, 11:20 AM) [snapback]79027[/snapback]
Refer to chapter 14 of your ML1000 user manual.
You won't find input I:0/0 in your ladder when using the HSC. What you need to look for in your program are instructions such as HSC, HSL, RAC, HSE, HSD, etc. The HSC instruction is what sets up your high speed counter (your encoder input). Channel 0 has a hardware counter that functions independently of your PLC program, so input pulses are not lost if they arrive mid scan. The HSC instruction enables the hardware counter, and each time it is executed it updates an image of the hardware counter in C5:0 with the values coming from the hardware counter. In other words, the high speed counter is still counting between the times when the HSC instruction is executed, but C5:0.ACC is not updated until the HSC instruction is scanned. Using HLS and HSE instructions you can cause an interrupt subroutine to interrupt the user ladder and run the subroutine when a certain count on the hardware counter is reached.
A full explanation is beyond the scope of a single post, so I recommend you read chapter 14. If you don't have the manual you can get it from the literature library on AB'w web site.
Alaric, That makes sense, thanks for the help, will be sure to check out chapter 14 of the manual, thank you also BobLFoot
Here is something else that perhaps you Gents can save me some time on, Im trying to add to the preset of the counter by having the operator trigger input one that then adds 1 to the C5:0.PRE, but it seems to always go in multiples