H2-ctrio

Johnny Rotten

Member
Join Date
Dec 2004
Location
Ontario, Canada
Posts
194
Its been awhile, thanks Phill for replying to me personally.

Ok, this thing is driving me nuts. I've used it to drive a high speed stepper motor which worked beautifully.

Now, I have a quad 240 ppr encoder wired to A,B,C,and M, channel 1. When we run the machine past 500 rpm, it does not measure accurately. So hey, lets use the pulse catch feature, my God who wrote that mess in the manual? LOL.

All I want to do is make sure my total count which is in V2000 currently stays accurate with increases in speed. I don't mind doing the math, and I don't want an output to follow it, but it seems like that is what I have to do, and then put that output in a memory location, and use that instead of V2000. And I can only enable pulse catch on terminal D, and it just sort of doesn't seem to do anything, lol.

HELP!

Johnny Master Electrician
[email protected]
 
I had to Google the H2-ctrio but I see that it is a high speed counter module that goes up to 100kHz. You have a 240ppr encoder going at 500rpm - 240 x 500 = 120000, that is 120kHz. The module cannot cope with the speed of pulses. You need to reduce the speed of the pulses, you could use an encoder with less ppm, or maybe you could use a pulse divider or use mechanical gearing so that the encoder rotates more slowly.
 
My scan time is about 6ms give or take. As the manual says, a pulse that lasts less than 1ms is typically hard to catch during the CPU scan.

So use this wonderful feature called 'pulse catch'. Its so wonderful I hate it, lol. Going to try a few things.

Thanks Bryan for your reply.

Johnny
 
Maths was never my strong point, out by a factor of 60 isn't too bad for me.

High speed counter inputs should work outside the program cycle time, if you have used them as standard inputs you will have a problem. What I would expect to happen it that you will have a special High Speed Counter instruction. Then you could interrogate the High Speed Counter each program cycle, but more normally you create an Interrupt either based on time or pulses received. So go back and check your program, what kind of counter have you used? I have no direct experience of the module or make of PLC but High Speed Counters are High Speed Counters no matter what system they are based in.
 
Its actually called an 'H2-CTRIO' high speed counter module.
The high speed pulsed output works great lol.

Its not the program that is the issue, its getting this stupid module to retain the high speed count with 'pulse catch' until the CPU can see it.

I will figure it out, what a silly modulue.

Thanks again.
 
If is a High Speed Counter module then 'pulse catch' is the wrong way to go and probably won't work. You must use a High Speed Counter instruction to read data from a High Speed Counter module. Pulse catch is generally only used to catch pulses that are too quick to be detected inside your program cycle time, high speed counters work independently of the cycle time and so pulse catch doesn't apply. What kind of counter have you used???

http://www.plcs.net/chapters/count15.htm
 
Actually, that module works very well. I thought I was throwing raw pulses to the cpu, but the mod converts it by whatever factor you choose before, so scan and pulse width don't have to be an issue. It does all the counting/velocity calc's for you as well. Through that into a memory address and use it in your program. Just have to pulse an infrared system based on velocity and I've got a working machine!

Its nice to be back!
 

Similar Topics

Hi, I am trying to learn how to use my encoder with my PLC. I recently got a high-speed counter module (H0-CTRIO2) for my DirectLogic05 PLC. I...
Replies
5
Views
2,206
Hi there, I have a vision project on that has been through some pretty major paradigm shifts since its inception. Without getting into too many...
Replies
5
Views
3,989
Hello all, I have come up against an issue trying to run a stepper motor using an Automation Direct H2-CTRIO2 module. Simply speaking, my setup is...
Replies
0
Views
2,678
Have an automation direct dl-260 cpu, and the above counting card. Have taken the signal from an existing encoder (1000 ppr) with only one signal...
Replies
1
Views
1,821
Hi, I am a complete newbie when it comes to PLC programming and would love some help. I am trying to configure a machine consisting of a DL-06 plc...
Replies
2
Views
1,657
Back
Top Bottom