Category: Deutsch
Hello,
I am a beginner and still have some problems with the signal linking in the HAL.
As shown above, I have managed to zero the axes using button 10 and the rotary knob for axis selection. How can I now set all axes to 0 after selecting axis C with the rotary knob and pressing button 10?
#### Axes Zero with selected axis and button10 ###
loadrt and2 names=and2_X,and2_Y,and2_Z,and2_C
addf and2_X servo-thread
addf and2_Y servo-thread
addf and2_Z servo-thread
addf and2_C servo-thread
net button10 <= whb.button.macro-10
#### X-Axis ####
net pdnt.axis.X.select => and2_X.in0
net button10 => and2_X.in1
net x_zero <= halui.mdi-command-21 <= and2_X.out
#### Y-Axis ####
net pdnt.axis.Y.select => and2_Y.in0
net button10 => and2_Y.in1
net y_zero <= halui.mdi-command-22 <= and2_Y.out
#### Z-Axis ####
net pdnt.axis.Z.select => and2_Z.in0
net button10 => and2_Z.in1
net z_zero <= halui.mdi-command-23 <= and2_Z.out
### Zero all axes if axis C is selected ###
net pdnt.axis.C.select => and2_C.in0
net button10 => and2_C.in1
net zero_all ????