Config tour XZC

More
03 Feb 2017 14:11 #87210 by jean-claude
Config tour XZC was created by jean-claude
Salut à tous,

j'essai de configurer linuxcnc pour un tour, il me faut XZ en linéaire et la broche angulaire en C.

Dans Stepconf il y a une config XYZA et impossible d'échanger le A en C.

j'ai ajouter dans le fichier ini

[DISPLAY]
Lathe = 1

[TRAJ]
AXE = 6
GEOMETRY = Z X C

dans le fichier hal

échanger l' AXE_3 en AXE_5

mais il manque quelque chose:

Debug file information:
.
./test-tourCNC.hal:72: parameter or pin 'stepgen.5.position-scale' not found
12964
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Jean Claude

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

More
03 Feb 2017 16:19 #87220 by andypugh
Replied by andypugh on topic Config tour XZC
wiki.linuxcnc.org/cgi-bin/wiki.pl?SpindleOrient

Though that uses M19 rather than C

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

More
03 Feb 2017 17:05 #87230 by jean-claude
Replied by jean-claude on topic Config tour XZC
voici le gcode que sort le soft
....
g93 g1 x1.52000 z0.09300 c0.00 f93.75
g93 g1 x1.52000 z0.09300 c20.00 f180.56
g94 g1 x1.36000 z0.09300 c20.00 f4.00
g93 g1 x1.52000 z0.09300 c20.00 f93.75
g93 g1 x1.52000 z0.09300 c40.00 f179.31
g94 g1 x1.36000 z0.09300 c40.00 f4.00
....

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

More
03 Feb 2017 17:12 #87232 by andypugh
Replied by andypugh on topic Config tour XZC
Is there n M-code to change modes?

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

More
03 Feb 2017 17:33 #87235 by jean-claude
Replied by jean-claude on topic Config tour XZC
exemple de fichier.ini & fichier.hal
=============================
fichier.ini
=============================
[AXIS_5]
TYPE = ANGULAR
HOME = 0.0
#WRAPPED_ROTARY = 1
#WRAPPED = 1
# 10rpm * 360deg/rot / 60sec/min = 60deg/sec
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 1000.0
STEPGEN_MAXACCEL = 1250.0
# 200steps/turn * 10usteps/step * 6.5ratio / 360deg/rot = 36.1111111111usteps/deg
SCALE = 36.1111111111
FERROR = 1
MIN_FERROR = .25
#MIN_LIMIT = -10000000.0
#MAX_LIMIT = 10000000.0
HOME_OFFSET = 0.0

=============================
fichier.hal
=============================
......
setp stepgen.5.position-scale [AXIS_5]SCALE
setp stepgen.5.steplen 1
setp stepgen.5.stepspace 0
setp stepgen.5.dirhold 300
setp stepgen.5.dirsetup 300
setp stepgen.5.maxaccel [AXIS_5]STEPGEN_MAXACCEL
net cpos-cmd axis.5.motor-pos-cmd => stepgen.5.position-cmd
net cpos-fb stepgen.5.position-fb => axis.5.motor-pos-fb
net cstep <= stepgen.5.step
net cdir <= stepgen.5.dir
net cenable axis.5.amp-enable-out => stepgen.5.enable
......

mais quand je met ceci j'ai l'erreur:

./test-tourCNC.hal:72: parameter or pin 'stepgen.5.position-scale' not found

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

More
03 Feb 2017 20:30 #87251 by andypugh
Replied by andypugh on topic Config tour XZC

./test-tourCNC.hal:72: parameter or pin 'stepgen.5.position-scale' not found


Combien des stepgens dans la ligne "loadrt stepgen count=nnnn"

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

More
03 Feb 2017 23:25 #87266 by jean-claude
Replied by jean-claude on topic Config tour XZC
C'est bien ça!

j'ai changer dans le fichier.hal:
loadrt stepgen step_type=0,0,0,0 ==> loadrt stepgen step_type=0,0,0,0,0,0

linuxcnc fonctionne maintenant.

Merci

Jean Claude
The following user(s) said Thank You: jpg

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

More
04 Feb 2017 03:39 #87276 by tommylight
Replied by tommylight on topic Config tour XZC


Jean Claude


Van Dame ???????? :woohoo: :woohoo:

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

More
25 Mar 2021 12:19 - 25 Mar 2021 12:21 #203612 by jpg
Replied by jpg on topic Config tour XZC

exemple de fichier.ini & fichier.hal
=============================
fichier.ini
=============================
[AXIS_5]
TYPE = ANGULAR
HOME = 0.0
#WRAPPED_ROTARY = 1
#WRAPPED = 1
# 10rpm * 360deg/rot / 60sec/min = 60deg/sec
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 1000.0
STEPGEN_MAXACCEL = 1250.0
# 200steps/turn * 10usteps/step * 6.5ratio / 360deg/rot = 36.1111111111usteps/deg
SCALE = 36.1111111111
FERROR = 1
MIN_FERROR = .25
#MIN_LIMIT = -10000000.0
#MAX_LIMIT = 10000000.0
HOME_OFFSET = 0.0

=============================
fichier.hal
=============================
......
setp stepgen.5.position-scale [AXIS_5]SCALE
setp stepgen.5.steplen 1
setp stepgen.5.stepspace 0
setp stepgen.5.dirhold 300
setp stepgen.5.dirsetup 300
setp stepgen.5.maxaccel [AXIS_5]STEPGEN_MAXACCEL
net cpos-cmd axis.5.motor-pos-cmd => stepgen.5.position-cmd
net cpos-fb stepgen.5.position-fb => axis.5.motor-pos-fb
net cstep <= stepgen.5.step
net cdir <= stepgen.5.dir
net cenable axis.5.amp-enable-out => stepgen.5.enable
......

mais quand je met ceci j'ai l'erreur:

./test-tourCNC.hal:72: parameter or pin 'stepgen.5.position-scale' not found







bonjour , Jean-Claude , votre configuration fonctionne-telle comme vous le souhaitez ? j aimerai avoir plus d'infos sur votre config si vous souhaitez partager ,merci.
Last edit: 25 Mar 2021 12:21 by jpg.

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

Moderators: darty367
Time to create page: 0.176 seconds
Powered by Kunena Forum