Screwcutting
- BigJohnT
- Offline
- Administrator
- Posts: 7000
- Thank you received: 1172
John
Please Log in or Create an account to join the conversation.
- welderfabrod
- Offline
- Junior Member
- Posts: 22
- Thank you received: 0
Rod
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7000
- Thank you received: 1172
John
Please Log in or Create an account to join the conversation.
- acondit
- Offline
- Premium Member
- Posts: 107
- Thank you received: 2
On my machine I am only running Channel A and Index, so if Rod is using CH A and CH B, his setup would be different than mine. My understanding of the mode bit was that it controlled whether you were running x4 (quadrature mode) or x1 (single count mode). Is that not correct?
Alan
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7000
- Thank you received: 1172
Just reading the docs I'm not exactly sure what the difference is between encoder.n.x4 0 and encoder.n.counter-mode 1... but I bet there is some difference
This is from the docs.
encoder.N.counter-mode bit rw
Enables counter mode. When true, the counter counts each rising edge of the phase-A input, ignoring the value on phase-B. This is useful for counting the output of a single channel (non-quadrature) sensor. When false (the default), it counts in quadrature mode.
encoder.N.x4-mode bit rw
Enables times-4 mode. When true (the default), the counter counts each edge of the quadrature waveform (four counts per full cycle). When false, it only counts once per full cycle. In counter-mode, this parameter is ignored.
Please Log in or Create an account to join the conversation.
- acondit
- Offline
- Premium Member
- Posts: 107
- Thank you received: 2
Alan
Please Log in or Create an account to join the conversation.
- acondit
- Offline
- Premium Member
- Posts: 107
- Thank you received: 2
Alan,
Just reading the docs I'm not exactly sure what the difference is between encoder.n.x4 0 and encoder.n.counter-mode 1... but I bet there is some difference
This is from the docs.
encoder.N.counter-mode bit rw
Enables counter mode. When true, the counter counts each rising edge of the phase-A input, ignoring the value on phase-B. This is useful for counting the output of a single channel (non-quadrature) sensor. When false (the default), it counts in quadrature mode.
encoder.N.x4-mode bit rw
Enables times-4 mode. When true (the default), the counter counts each edge of the quadrature waveform (four counts per full cycle). When false, it only counts once per full cycle. In counter-mode, this parameter is ignored.
John,
I searched through the 2.3 versions of the EMC2_User_Manual, the EMC2_Integrator_Manual, and the Hal_User_Manual but didn't find the info on setting the modes. Where did you find those?
Alan
Please Log in or Create an account to join the conversation.
- alex_joni
- Offline
- Administrator
Where did you find those?
man encoder
or online: www.linuxcnc.org/docview/html//man/man9/encoder.9.html
Regards,
Alex
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7000
- Thank you received: 1172
As Alex mentions the man pages and the online html docs are the best place to find info on the components. Many of the more complicated ones including encoder are also detailed in the Integrators Manual in the HAL section under the Internal Components subsection.
My quote was from the html docs.
Regards
John
Please Log in or Create an account to join the conversation.
- welderfabrod
- Offline
- Junior Member
- Posts: 22
- Thank you received: 0
to remove the spindle control from the hal file I then typed your hal file into the custom.hal file. When I tried the G33 again in MDI I no longer got the spindle not turning message. A great step forward. However I still got no motion I then remembered that one of the developers had suggested that G33 may need an M03 whether I needed it or not so I wrote a short programme without M03 at first no motion I then added M03 hey presto syncronized motion. But it was strange motion in the sense that it would travel the -Z distance I think it was twice ( I'll check this again tomorrow). Although it does'nt say so in the manual is G33 intended for rigid taping i.e it would travel the -Z distance reverse the spindle and come back out, which it can't do on my lathe as I have no reverse facility and nothing in the hal file to control this so therefore it just switches the spindle back on again and moves the crossslide forward the -Z distance again. I maybe barking up the wrong tree here but if I don't ask I won't know. I'm just really chuffed that I'm getting somewhere now and I at least know that the lathe is OK. Tomorrow I'll do a G76 and see if that works. The other thing I'm going to try is to get a rev counter up on the AXIS screen as I know that the EMCO rev counter that I still use is not that accurate it can be out anything between 50 to 100 revs, I've checked this with a rev counter. I'll let you know if the G76 works OK. Thanks for all your help and patience Guy's.
Rod.
Please Log in or Create an account to join the conversation.