Motion Problem
10 May 2016 07:22 #74436
by ommar
Motion Problem was created by ommar
Hi again,
I connected Nanotec PD4 driver to my Mesa 7i76 daughter card. I can send pulse but motor moves daringly in the Axis test panel of Pncconfig. In this panel motor moves daringly for jog mode (+/-) but for a 50 mm test lenght it is not move.
Here the video:
( Listen with loud noise)
The Driver technical document is : technical_manual
What must i do ?
Sorry for my english and thanks for your interest.
I connected Nanotec PD4 driver to my Mesa 7i76 daughter card. I can send pulse but motor moves daringly in the Axis test panel of Pncconfig. In this panel motor moves daringly for jog mode (+/-) but for a 50 mm test lenght it is not move.
Here the video:
( Listen with loud noise)
The Driver technical document is : technical_manual
What must i do ?
Sorry for my english and thanks for your interest.
Please Log in or Create an account to join the conversation.
10 May 2016 15:44 - 10 May 2016 15:59 #74450
by ommar
Replied by ommar on topic Motion Problem
I worked on max velocity and max acceleration values. I changed the velocity value for 0 (zero) mm/min and accelaration value for 50 mm/sn2. Now the motor is moving continuously. But is is not moving to desired position. It is moving continuously and it is not stopping.
Can anybody analyze my configuration ?Here is the screen caps of my configuration ;
Can anybody analyze my configuration ?Here is the screen caps of my configuration ;
Last edit: 10 May 2016 15:59 by ommar.
Please Log in or Create an account to join the conversation.
10 May 2016 16:16 #74454
by PCW
Replied by PCW on topic Motion Problem
The stepper scale is _crazy_
Change it the correct number in your .ini file
and it should be at least a bit closer to operating
Change it the correct number in your .ini file
and it should be at least a bit closer to operating
Please Log in or Create an account to join the conversation.
10 May 2016 16:35 #74458
by andypugh
Replied by andypugh on topic Motion Problem
Do your locale settings use "," for a decimal place? I can't decide if your screw pitch is being set to 5 or 5000 mm per rev.
Please Log in or Create an account to join the conversation.
10 May 2016 17:07 #74460
by ommar
Replied by ommar on topic Motion Problem
I understand to you. But, when i enter the pitch and motor steps per revolution values, the software is calculating the step scale by itself. Pncconfig is calculating the step scale as your declaring crazy. If i enter the step scale value manually i can not move the motor.
My leadscrew metric pitch 5 mm/rev
Motor steps per revolution between 200 - 800
Pulley teeth 1:1
Can you help me about calculation of step scale ? I am confused
My leadscrew metric pitch 5 mm/rev
Motor steps per revolution between 200 - 800
Pulley teeth 1:1
Can you help me about calculation of step scale ? I am confused
Please Log in or Create an account to join the conversation.
10 May 2016 17:10 #74461
by ommar
Yes, We use "," for a decimal place. What's your advise about this ?
Replied by ommar on topic Motion Problem
Do your locale settings use "," for a decimal place? I can't decide if your screw pitch is being set to 5 or 5000 mm per rev.
Yes, We use "," for a decimal place. What's your advise about this ?
Please Log in or Create an account to join the conversation.
10 May 2016 17:21 #74462
by andypugh
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.
Replied by andypugh on topic Motion Problem
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.
11 May 2016 11:57 #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 ???
#
# 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.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
11 May 2016 12:58 - 11 May 2016 13:00 #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: 11 May 2016 13:00 by Todd Zuercher.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.084 seconds