All pastes #400489 Raw Copy code Copy link Edit

This works

public unlisted text v1 · immutable
#400489 ·published 2007-03-18 18:41 UTC
rendered paste body
# If you are already using some 'and2', 'or2' or 'not' blocks, then you have
# to renumber what you see below, and increase the 'count' on the existing
# loadrt lines
loadrt and2 count=1
loadrt not count=1
loadrt or2 count=2

addf or2.0 base-thread
addf or2.1 base-thread
addf not.0 base-thread
addf and2.0 base-thread

net master-sw parport.0.pin-10-in  =>  and2.0.in0 axis.0.home-sw-in axis.1.home-sw-in axis.2.home-sw-in

net x-is-homing axis.0.homing => or2.0.in0
net y-is-homing axis.1.homing => or2.0.in1
net xy-is-homing or2.0.out => or2.1.in0
net z-is-homing axis.2.homing => or2.1.in1
net any-axis-homing or2.1.out => not.0.in

net real-limit not.0.out => and2.0.in1

net no-axis-homing and2.0.out => axis.0.neg-lim-sw-in axis.0.pos-lim-sw-in
# These ones are not needed
#net no-axis-homing and2.0.out => axis.1.neg-lim-sw-in axis.1.pos-lim-sw-in
#net no-axis-homing and2.0.out => axis.2.neg-lim-sw-in axis.2.pos-lim-sw-in
# 5 home switches and 5 limit switches using one parallel port pin