Understanding encoder logic

Grafcet can be implemented into ladder logic? I would just like to have a visual idea of what needs to be programmed.
 
Basically what I mean by "OK", is that I am looking to control the position of a motorized launder by 1degree through an HMI. I wanted to make sure that I could obtain that degree of precision...
That isn't much
I think the big problem is exceeding the count rate. Given the RPM you were talking about.

I ask first because the combination of 800 kHz pulse frequency and only a 16-bit accumulator sounds like a gross mismatch to me
I don't understand. Most motion controllers have 16 bit hardware counters and can count up to 10 MHz. A 16 bit encoder will do just fine since the maximum number of counts in 10 millisecond, a PLC scan, is 8000 counts. A 16 bit counter will handle rates up to 32767 counts per scan. A 32 bit counter may be more convenient but it isn't necessary. One only needs to look at the change in counts each scan and add that to a DINT or DWORD.
 
Originally posted by Peter Nachtwey:

I think the big problem is exceeding the count rate. Given the RPM you were talking about.

His max pulse rate is only 150 kHz. His card can handle 800 kHz. At 150 kHz he shouldn't even need to worry about cable capacitance too much assuming he is staying under 200 feet or so.

Originally posted by Peter Nachtwey:

I don't understand....A 32 bit counter may be more convenient but it isn't necessary. One only needs to look at the change in counts each scan and add that to a DINT or DWORD.

I suspect that didn't even occur to him. That doesn't seem to occur to most people when it comes to position devices, even though they will happliy use the same technique in other applications. Oh well.

Keith
 
Peter, you have a tendency to view everything through the lens of a motion control application. High speed counter modules in PLCs get used for a lot more applications than that.

My point about the mismatch between pulse frequency and the number of bits in the counter's accumulator register is that at maximum frequency of 800 counts per millisecond, the counter can only track the encoder for 81.9 milliseconds before overflowing. That's not too good if you're using the HSC in a programmable limit switch application.
 
Guilty as charged.

Peter, you have a tendency to view everything through the lens of a motion control application.
Guilty.

My point about the mismatch between pulse frequency and the number of bits in the counter's accumulator register is that at maximum frequency of 800 counts per millisecond, the counter can only track the encoder for 81.9 milliseconds before overflowing. That's not too good if you're using the HSC in a programmable limit switch application.
So this is how a motion controller guy approaches this.
Each scan
DifEncoder16:=NewEncoder16-OldEncoder16;
OldEncoder16:=NewEncoder16;
Counter32:=Counter32+INT_TO_DINT(DifEncoder16);
If the PLC scan is 10 milliseconds then DifEncoder will be +/- 8000 counts or less. Three simple rungs. I see no problem.
 
I'm wondering bow much backlash this over 4000:1 gearbox has? I used a 5 stage once that was only around 2600:1 so I'm guessing this could be 5 or 6 stages. Depending on the quality of the gearing, the whole tolerance could be eaten up in backlash and measuring the output to +/-1 deg with the motor encoder could be fruitless.

Have you considered putting an encoder on the shaft you are actually worried about, i.e. The output shaft. (speed is no issue there...)
 
Originally posted by ndzied1:

I'm wondering bow much backlash this over 4000:1 gearbox has?...Depending on the quality of the gearing, the whole tolerance could be eaten up in backlash and measuring the output to +/-1 deg with the motor encoder could be fruitless.

Holy gear clearance, Batman!!! You have actually seen a gearcase without a serious defect where you could spin the input shaft more than 10 TIMES without the output shaft turning? That is HIGHLY impressive.

Keith
 
Holy gear clearance, Batman!!! You have actually seen a gearcase without a serious defect where you could spin the input shaft more than 10 TIMES without the output shaft turning? That is HIGHLY impressive.

Keith
You have a point there. I was tired when typing and had it in my head that the backlash of each stage in the gearbox got multiplied. I have to do a little more research to really figure out how backlash works across multiple stages or a gear train.
 

Similar Topics

Hello All I was wondering if someone could explain how the set point in this encoder block gets passed to the counter. NW 1 transfer the...
Replies
3
Views
2,715
We have a new machine build scheduled for next year that will use a spindle motor. That motor may have a quadrature encoder mounted directly on...
Replies
5
Views
1,923
I am using Allen Bradley PLC for Ethernet/IP communication. I send any explicit msg request (Get attribute or Set attribute), I observed packet...
Replies
0
Views
77
Took a new job and the controls schemes are fairly old and I'm used to Allen Bradley and Siemens. I'm looking to replace a pair of Superior...
Replies
1
Views
110
Hello Team, I am desperate for some help with an assessment I have as part of a Level 3 general engineering course. I am in a role that is much...
Replies
9
Views
350
Back
Top Bottom