Category: Computers and Hardware
{
"Thread": "Servo",
"Type": "Digital Pin",
"Comment": "Index",
"Pin": "1.28",
"Mode": "Input",
"Invert": "True",
"Data Bit": 6
},
{
"Thread": "Servo",
"Type": "QEI",
"Comment": "spindle-encoder",
"Modifier": "Pull Up",
"PV[i]": 0,
"Data Bit": 2,
"Enable Index": "True"
},
well, maybe you dont need to use the preassigned index, you will find out i guess
[code]# Spindle QEI encoder
setp encoder.0.position-scale 800.000000
net encoder-count <= remora.PV.0 => encoder.0.raw_count
net encoder-phaseZ <= remora.input.6 => encoder.0.phase-Z
# setp encoder.0.index-enable true
i dont think you are connecting your spindle pins correctly thought. its waiting for the index enable probably
compare to this one
https://github.com/cakeslob/RRW_LAB/blob/inc/LinuxCNC/ConfigSamples/remora-RRW_LAB_latheng/remora-xyz.hal#L128 [/i][/code]
Awesome, yeah my hal was a mess. I ended up just grabbing that example and tweaking what I need to to have things make sense for my machine and I'm happy to say, everything is working now. Exactly how it should, and we have threads! Thanks again!
https://imgur.com/a/dP7VYhM