× Forum Header

Z-Axis no Ref configurable

More
25 Apr 2024 10:45 #299058 by Satai
Hi everyone,I used to work with linuxcnc 2.7.1 for some time on my self build 3-Axis mill. All axis have Ref-switches and everything worked fine, referencing and working.I got a new PC and wanted to upgrade to the newest linuxcnc. Installation went perfectly smooth and the system is incedibly fast and such.Stepconf however doesn't let me configure a Ref-switch for my Z-axis. X and Y - no problem, I can configure them as on my old system and both axis reference without any problem. On the setup page for the Z-axis however is everything around the ref switch greyed out, 
I attached 2 pictures. These configurations were standard from stepconf and even then the Z-axis is greyed out. Any Idea anyone?

Thanks,
Sebastian
Attachments:

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

More
25 Apr 2024 10:53 #299060 by tommylight
You have not assigned a pin for the Z axis switch in the pinout page.

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

More
25 Apr 2024 13:42 #299067 by Satai
Replied by Satai on topic Z-Axis no Ref configurable
I assigned the pins as seen in the attachment, sorry, forgot to attach it 
Attachments:

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

More
25 Apr 2024 13:48 #299068 by tommylight
OK then seems to be an issue with StepConf, probably language, but that is only a guess.
The following user(s) said Thank You: Satai

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

More
25 Apr 2024 16:41 #299074 by Satai
Replied by Satai on topic Z-Axis no Ref configurable
Thank you anyway.
The following user(s) said Thank You: tommylight

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

More
26 Apr 2024 06:37 #299095 by Satai
Replied by Satai on topic Z-Axis no Ref configurable
Hi everyone,

it's getting a bit more weird today. I managed to use my ref switch in the Z axis as I set it to Ref Z alone without the maximum limit. Set so the axis referenced without any problem.
But then another problem occured: I can't start my spindle, Pin 9 won't be switched, regardless what I try. I tried the Live-version in english without success, both problems persist: Z-axis references only as Ref-alone and my spindle won't start.

I tried the 2.8.4 as a Live-version and everything runs smooth and fine, the Z-Axis and also the spindle.

I thjink I'll install the 2.8.4 this weekend and go on working with it. But the problems that I experience with the actual 2.9.2 are really strange to say the least.

Any suggestions?

Thanks, Sebastian

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

More
26 Apr 2024 12:55 #299116 by tommylight
Try in MDI
M3 $0 S3000
?

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

More
26 Apr 2024 18:49 #299132 by Satai
Replied by Satai on topic Z-Axis no Ref configurable
No reaction. Gmoccapy assumes that the spindle is running but nothing...

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

More
26 Apr 2024 18:58 #299133 by tommylight
Attach the actual hal and ini file here se we can have a look.

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

More
26 Apr 2024 19:16 #299139 by Satai
Replied by Satai on topic Z-Axis no Ref configurable
Here we have my ini:
# Erstellt von stepconf 1.1 am Fri Apr 26 09:34:25 2024
# Änderungen an dieser Datei werden beim nächsten
# wird überschrieben wenn Sie stepconf erneut ausführen

[EMC]
MACHINE = my-Fräse
DEBUG = 0
VERSION = 1.1

[DISPLAY]
DISPLAY = gmoccapy
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
ARCDIVISION = 64
GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in
MAX_FEED_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
MAX_SPINDLE_OVERRIDE = 1.2
DEFAULT_LINEAR_VELOCITY = 10.00
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 100.00
CYCLE_TIME = 0.100
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/cnc/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm

[KINS]
JOINTS = 3
KINEMATICS = trivkins coordinates=XYZ

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
PROGRAM_EXTENSION = .nc,.tap G-Code File
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = linuxcnc.var

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
BASE_PERIOD = 69444
SERVO_PERIOD = 1000000

[HAL]
HALFILE = my-Fräse.hal
HALFILE = custom.hal
POSTGUI_HALFILE = postgui_call_list.hal

[TRAJ]
COORDINATES =  X Y Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 10.00
MAX_LINEAR_VELOCITY = 100.00

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

#*** AXIS_X *******************************
[AXIS_X]
MAX_VELOCITY = 90.0
MAX_ACCELERATION = 700.0
MIN_LIMIT = -0.001
MAX_LIMIT = 200.0

[JOINT_0]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -0.001
MAX_LIMIT = 200.0
MAX_VELOCITY = 90.0
MAX_ACCELERATION = 700.0
STEPGEN_MAXACCEL = 875.0
SCALE = 84.03361344537815
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = -8.000000
HOME_LATCH_VEL = 5.950000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1
#******************************************

#*** AXIS_Y *******************************
[AXIS_Y]
MAX_VELOCITY = 100.0
MAX_ACCELERATION = 700.0
MIN_LIMIT = -0.001
MAX_LIMIT = 300.0

[JOINT_1]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -0.001
MAX_LIMIT = 300.0
MAX_VELOCITY = 100.0
MAX_ACCELERATION = 700.0
STEPGEN_MAXACCEL = 875.0
SCALE = 84.03361344537815
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = -8.000000
HOME_LATCH_VEL = 5.950000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2
#******************************************

#*** AXIS_Z *******************************
[AXIS_Z]
MAX_VELOCITY = 17.10010944070042
MAX_ACCELERATION = 180.0
MIN_LIMIT = -120.0
MAX_LIMIT = 0.001

[JOINT_2]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -120.0
MAX_LIMIT = 0.001
MAX_VELOCITY = 17.10010944070042
MAX_ACCELERATION = 180.0
STEPGEN_MAXACCEL = 225.0
SCALE = 800.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 4.000000
HOME_LATCH_VEL = -0.625000
HOME_SEQUENCE = 0
#******************************************

And now for the hal:
# Erstellt von stepconf 1.1 am Fri Apr 26 09:34:25 2024
# Änderungen an dieser Datei werden beim nächsten
# wird überschrieben wenn Sie stepconf erneut ausführen
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
loadrt hal_parport cfg="0 out"
setp parport.0.reset-time 5000
loadrt stepgen step_type=0,0,0

addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread

addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread

net xenable         => parport.0.pin-01-out
net xstep           => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1
setp parport.0.pin-03-out-invert 1
net ydir            => parport.0.pin-03-out
net adir            => parport.0.pin-05-out
net astep           => parport.0.pin-06-out
setp parport.0.pin-06-out-reset 1
net zstep           => parport.0.pin-07-out
setp parport.0.pin-07-out-reset 1
net zdir            => parport.0.pin-08-out
net spindle-cw      => parport.0.pin-09-out
setp parport.0.pin-14-out-invert 1
net xdir            => parport.0.pin-14-out
net ystep           => parport.0.pin-16-out
setp parport.0.pin-16-out-reset 1
net min-home-x      <= parport.0.pin-10-in-not
net min-home-y      <= parport.0.pin-11-in-not
net home-z          <= parport.0.pin-12-in-not
net min-home-v      <= parport.0.pin-13-in-not
net estop-ext       <= parport.0.pin-15-in

setp stepgen.0.position-scale [JOINT_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 35000
setp stepgen.0.dirsetup 35000
setp stepgen.0.maxaccel [JOINT_0]STEPGEN_MAXACCEL
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable joint.0.amp-enable-out => stepgen.0.enable
net min-home-x => joint.0.home-sw-in
net min-home-x => joint.0.neg-lim-sw-in

setp stepgen.1.position-scale [JOINT_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 35000
setp stepgen.1.dirsetup 35000
setp stepgen.1.maxaccel [JOINT_1]STEPGEN_MAXACCEL
net ypos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos-fb stepgen.1.position-fb => joint.1.motor-pos-fb
net ystep <= stepgen.1.step
net ydir <= stepgen.1.dir
net yenable joint.1.amp-enable-out => stepgen.1.enable
net min-home-y => joint.1.home-sw-in
net min-home-y => joint.1.neg-lim-sw-in

setp stepgen.2.position-scale [JOINT_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 35000
setp stepgen.2.dirsetup 35000
setp stepgen.2.maxaccel [JOINT_2]STEPGEN_MAXACCEL
net zpos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => joint.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable joint.2.amp-enable-out => stepgen.2.enable
net home-z => joint.2.home-sw-in

net estop-out <= iocontrol.0.user-enable-out
net estop-ext => iocontrol.0.emc-enable-in

loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared

 

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

Time to create page: 0.083 seconds
Powered by Kunena Forum