For $13 I have another 40 tooth wheel coming. But I want to learn while I wait on amazon.
I am new to all this so this is probably more of a big deal to me than most.
I verified my encoder index is working and in fact is triggering twice. Basically extracted from
this
to come up with commands that were relevant to my config.
halcmd show pin hm2_7i76e.0.encoder.00.index-enable
Component Pins:
Owner Type Dir Value Name
26 bit I/O FALSE hm2_7i76e.0.encoder.00.index-enable <=> spindle-index-enable
halcmd unlinkp hm2_7i76e.0.encoder.00.index-enable
halcmd setp hm2_7i76e.0.encoder.00.index-enable 1
halcmd show pin hm2_7i76e.0.encoder.00.index-enable
Component Pins:
Owner Type Dir Value Name
26 bit I/O TRUE hm2_7i76e.0.encoder.00.index-enable
Hand spin the spindle half a turn and the value goes back to FALSE.
Off to translate what Andy has given about flipflop and not...
I inserted a few lines in hal to get the party started.
loadrt flipflop
loadrt not
addf flipflop.0 servo-thread
halcmd show pin flipflop not
Component Pins:
Owner Type Dir Value Name
41 bit IN FALSE flipflop.0.clk
41 bit IN FALSE flipflop.0.data
41 bit I/O FALSE flipflop.0.out
41 bit IN FALSE flipflop.0.reset
41 bit IN FALSE flipflop.0.set
41 s32 OUT 64 flipflop.0.time
44 bit IN FALSE not.0.in
44 bit OUT FALSE not.0.out
44 s32 OUT 0 not.0.time
This is where I am at and have run out of general lack of knowledge connecting the dots to get the latch working with my config.