Spindle direction signal when stopped

More
12 Apr 2021 21:07 #205735 by andypugh

The new inverted pin is also 'io'. Does this mean the outputs can be set to an illegal state which will persist until there is clock or set/reset activity?


No. Setting "out" will reset "out-not" but setting "out-not" doesn't persist.

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

More
15 Apr 2021 09:34 #205983 by rafferty
Still on the old flipflop, PathPilot V1 has no functioning halcompile, tried many ways but tripped up every time

What I have is (relevant part):
loadrt flipflop names=last-spindle-direction-latch

addf last-spindle-direction-latch servo-thread

# spindle direction
# P3 pin 16 gpio 005
setp hm2_5i25.0.gpio.005.is_output 1
net spindle-cw  motion.spindle-forward => last-spindle-direction-latch.set
net spindle-ccw motion.spindle-reverse => last-spindle-direction-latch.reset
# pre set flipflop out hi, forward
setp last-spindle-direction-latch.out 1
net spindle-dir-latched last-spindle-direction-latch.out => hm2_5i25.0.gpio.005.out

After starting PP what I expected to see was:
1) last-spindle-direction-latch.out (flipflop out) HI
2) spindle-dir-latched HI
3) hm2_5i25.0.gpio.005.out HI

but they are all LO, the flipflop is not set by the setp line


Once running it works as it should.

FWD RUN:


STOP after FWD RUN:


REV RUN:


The STOP after FWD RUN is what I was expecting initial state to be.

What am I missing?

Ken
Attachments:

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

More
15 Apr 2021 20:50 #206043 by andypugh
You could try using the flip-flop "set" input, but would have to un-set it again somehow.

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

More
17 Apr 2021 04:29 #206157 by rafferty
I've sorted this out, I now have a spindle that does what it's told and nothing more.

Fiddled with setting the flipflop output (io) pin but couldn't get it to work.

Ken

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

Moderators: cncbasher
Time to create page: 0.140 seconds
Powered by Kunena Forum