Mach3 -> Camtronics -> Parallel P Replacement

More
6 years 7 months ago - 6 years 7 months ago #162041 by PCW
OK so if you have a free step/dir output (these are 5V signals),
you can have this under software control, That is, if you do not
enable all 5 stepgens, the step/dir pins can be used as general purpose outputs.

for example:

setp hm2_7i76e.0.gpio.008.is_output true
setp hm2_7i76e.0.gpio.008.invert_output true

net x-enable hm2_7i76e.0.gpio.008.out

(gpio8 = Dir4)
Last edit: 6 years 7 months ago by PCW.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #192902 by rdeeming
I picked up this Taiss/AB 2 Phase Incremental Rotary Encoder 360P/R DC 5-24v Wide Voltage Power Supply 6mm Shaft 360P/R

white = A phase, Green = B phase, red = power +, black = V0

To connect and use this for the spindle speed with the 7i76e would this be correct?
Encoder->7i76e
Red->TB3 Pin 6
White->TB3 Pin 7
Green->TB3 Pin 6
Red->TB3 Pin 8
Black->TB3 Pin 9

After confirming this I will dive into the hal config.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago - 5 years 10 months ago #192904 by tommylight
Encoder->7i76e
Red->TB3 Pin 6
White->TB3 Pin 7
Green->TB3 Pin 10
Black->TB3 Pin 9

ASUS ROG Crosshair VIII Impact - AMD X570
Last edit: 5 years 10 months ago by tommylight.
The following user(s) said Thank You: rdeeming

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #193152 by rdeeming
I can not seem to dig up a good example of getting the hal configured for the spindle speed.

I am referencing this document for guidance on the 7i76e and the spindle.

I am referencing this section of document for guidance but having trouble bridging the gap between it and the 7i76e.

Is there a working hal configuration somewhere that would be more specific to the 7i76e and an encoder connected to TB3 A+ B+ used for threading operations?

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #193153 by tommylight
The section you linked to explicitly mentions this:
Code:
The StepConf Wizard can perform the connections for you if you select Encoder Phase A and Encoder Index as inputs.
So you do need an encoder with an index output, usually mentioned as Z, the versions with C some will work some will not, older Yaskawa encoders have A B and C but no index.
Have a look, somewhere there must be a hal file, although it will not help as much as you think, it is much better to make your own config using Pncconf as it does produce a fully working config for 7i76E

ASUS ROG Crosshair VIII Impact - AMD X570

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #203553 by rdeeming
I think I am to a spot where I could use some help getting spindle speed working for threading operations.

Attached is my current hal and ini config files along with a screen shot of what I am seeing in the GUI.

I assume when things are right my GUI DRO Vel will show the actual spindle speed in (RPM?).

I bought a cheap tach to measure the actual spindle speed.

Setting the manual spindle speed control dial on the lathe speed control to ~30.0Hz, I am getting ~592 RPM at that setting.

I played around with the ENCODER_SCALE setting to get where I am at.

The screen shot of the hal meter shows the spindle-vet-fb-rps bouncing around 591.

A little math issue RPM to RPS but I am not sure why I am not seeing some value for spindle-vet-fb-rpm.

Any help is always appreciated.


rdeeming@cnc:~/linuxcnc/configs/Patriot2011-backlash$ grep -i ENCODER Patriot2011.ini
ENCODER_SCALE = 40.2
rdeeming@cnc:~/linuxcnc/configs/Patriot2011-backlash$ grep -i spindle Patriot2011.hal | egrep "vel|rev|ENC"
net spindle-vel-cmd-rpm => pid.s.command
net spindle-vel-fb-rpm => pid.s.feedback
setp [HMOT](CARD0).encoder.00.scale [SPINDLE_0]ENCODER_SCALE
net spindle-revs <= [HMOT](CARD0).encoder.00.position
net spindle-vel-fb-rps <= [HMOT](CARD0).encoder.00.velocity
net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-ccw <= spindle.0.reverse
net spindle-revs => spindle.0.revs
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-manual-ccw halui.spindle.0.reverse

Please Log in or Create an account to join the conversation.

Time to create page: 0.115 seconds
Powered by Kunena Forum