Motion Problem

More
10 years 5 months ago #74462 by andypugh
Replied by andypugh on topic Motion Problem

ommar wrote: Yes, We use "," for a decimal place. What's your advise about this ?


It is possible that that the "," is confusing the parts of the underlying Python code that calculates step scale.
manually editing the INI file is likely to be the best way to be sure, but you might also be able to change the number in the Test Axis dialog box. Just set it to 40.

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

More
10 years 5 months ago #74498 by ommar
Replied by ommar on topic Motion Problem
I set the step scale value for 40 step/mm. I set the max velocity value for 5000 mm/min and acceleration value for 200 mm/sn2 in the Pncconfig interface. Here my ini file ; Is this values correct ? And is the P means pitch ? I set pitch value for 5mm/rev but ini file 50 ???
Code:
# # Generated by PNCconf at Wed May 11 14:47:58 2016 # If you make changes to this file, they will be # overwritten when you run PNCconf again [EMC] MACHINE = çift_motor DEBUG = 0 [DISPLAY] DISPLAY = axis POSITION_OFFSET = RELATIVE POSITION_FEEDBACK = ACTUAL MAX_FEED_OVERRIDE = 2.000000 MAX_SPINDLE_OVERRIDE = 1.000000 MIN_SPINDLE_OVERRIDE = 0.500000 INTRO_GRAPHIC = linuxcnc.gif INTRO_TIME = 5 PROGRAM_PREFIX = /home/egmach/linuxcnc/nc_files INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm POSITION_FEEDBACK = ACTUAL DEFAULT_LINEAR_VELOCITY = 0.250000 MAX_LINEAR_VELOCITY = 1.000000 MIN_LINEAR_VELOCITY = 0.010000 DEFAULT_ANGULAR_VELOCITY = 0.250000 MAX_ANGULAR_VELOCITY = 1.000000 MIN_ANGULAR_VELOCITY = 0.010000 EDITOR = gedit GEOMETRY = xyz [FILTER] PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image PROGRAM_EXTENSION = .py Python Script 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 COMM_WAIT = 0.010 SERVO_PERIOD = 1000000 [HOSTMOT2] # **** This is for info only **** # DRIVER0=hm2_pci # BOARD0=5i25 [HAL] HALUI = halui HALFILE = çift_motor.hal HALFILE = custom.hal POSTGUI_HALFILE = postgui_call_list.hal SHUTDOWN = shutdown.hal [HALUI] [TRAJ] AXES = 3 COORDINATES = X Y Z LINEAR_UNITS = mm ANGULAR_UNITS = degree CYCLE_TIME = 0.010 DEFAULT_VELOCITY = 10.00 MAX_LINEAR_VELOCITY = 100.00 [EMCIO] EMCIO = io CYCLE_TIME = 0.100 TOOL_TABLE = tool.tbl ******************** # Axis Y #******************** [AXIS_1] TYPE = LINEAR HOME = 0.0 FERROR = 0.05 MIN_FERROR = 0.05 MAX_VELOCITY = 100.0 MAX_ACCELERATION = 200.0 # The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION # If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger. STEPGEN_MAXVEL = 125.00 STEPGEN_MAXACCEL = 250.00 P = 50.0 I = 0.0 D = 0.0 FF0 = 0.0 FF1 = 1.0 FF2 = 0.0 BIAS = 0.0 DEADBAND = 0.0 MAX_OUTPUT = 0.0 # these are in nanoseconds DIRSETUP = 5000 DIRHOLD = 5000 STEPLEN = 1500 STEPSPACE = 1500 STEP_SCALE = 40.0 MIN_LIMIT = -0.01 MAX_LIMIT = 200000.0 HOME_OFFSET = 0.0

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

More
10 years 5 months ago - 10 years 5 months ago #74505 by Todd Zuercher
Replied by Todd Zuercher on topic Motion Problem
No, P is part of the PID feedback loop, and I think it should be set to 1000 for your stepper setup (It should be calculated from your servo thread period). The only thing relating to the pitch of your screws in the ini file is the STEP_SCALE.
Last edit: 10 years 5 months ago by Todd Zuercher.

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

Moderators: cmorley
Time to create page: 0.153 seconds
Powered by Kunena Forum