Spindle direction signal when stopped

More
5 years 6 months ago #205735 by andypugh

rafferty wrote: 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 to join the conversation.

More
5 years 6 months ago #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):
Code:
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

Attachment not found



Once running it works as it should.

FWD RUN:

Attachment not found



STOP after FWD RUN:

Attachment not found



REV RUN:

Attachment not found



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

What am I missing?

Ken

Please Log in to join the conversation.

More
5 years 6 months ago #206043 by andypugh
You could try using the flip-flop "set" input, but would have to un-set it again somehow.

Please Log in to join the conversation.

More
5 years 6 months ago #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 to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum