- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Mesa 5i25/7i76 + driver leadshine DM2282 digital
Mesa 5i25/7i76 + driver leadshine DM2282 digital
- echesortux
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 46
- Thank you received: 1
24 Jul 2016 23:02 #77946
by echesortux
Mesa 5i25/7i76 + driver leadshine DM2282 digital was created by echesortux
Hello everybody. we are migrating from parport to Mesa 5i25/7i76 but we are having some issues to move the motors. Regarding the motors we are using a digital drivers Leadshine DM2282 ( same as DM1182 ) acording to Leadshine the minimum driving timing are:
Step_Len: 2500
Step Space: 2500
Dir_hold: 5000
Dir_Setup: 5000
the problem we have is that if we use this parameters on Pnconf the motor doesn't move.
But if we increse this values to:
Step_Len: 4000
Step Space: 4000
Dir_hold: 6000
Dir_Setup: 6000
the motor start to move but not works properly
we were using leadshine's recommend values with a simple parallel port using stepconf without problem but now we don't know what is happening.
I've attached leadshine driver timing for reference.
has anyone any idea?
Thanks in advance.
Step_Len: 2500
Step Space: 2500
Dir_hold: 5000
Dir_Setup: 5000
the problem we have is that if we use this parameters on Pnconf the motor doesn't move.
But if we increse this values to:
Step_Len: 4000
Step Space: 4000
Dir_hold: 6000
Dir_Setup: 6000
the motor start to move but not works properly
we were using leadshine's recommend values with a simple parallel port using stepconf without problem but now we don't know what is happening.
I've attached leadshine driver timing for reference.
has anyone any idea?
Thanks in advance.
Please Log in or Create an account to join the conversation.
24 Jul 2016 23:48 #77948
by PCW
Replied by PCW on topic Mesa 5i25/7i76 + driver leadshine DM2282 digital
How are the 7I76 outputs connected to the Leadshine driver? (common GND, common 5V or differential)
Can you post your hal and INI files?
Can you post your hal and INI files?
Please Log in or Create an account to join the conversation.
- echesortux
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 46
- Thank you received: 1
25 Jul 2016 00:34 #77950
by echesortux
Replied by echesortux on topic Mesa 5i25/7i76 + driver leadshine DM2282 digital
Hi, attached there are Ini and hal files and in adition an image that shows how we had conected driver to 7i76. Don't pay attantion to dip switch in the image (it just an image taken from internet)
in addition I can tell you that 7i76 is powered from 5i25 ( 5v ) and we are using a 12v isolated source for vfield.
thanks in advance.
in addition I can tell you that 7i76 is powered from 5i25 ( 5v ) and we are using a 12v isolated source for vfield.
thanks in advance.
Please Log in or Create an account to join the conversation.
25 Jul 2016 00:43 - 25 Jul 2016 00:46 #77951
by PCW
Replied by PCW on topic Mesa 5i25/7i76 + driver leadshine DM2282 digital
First thing I would is change the P term to 1000 (was 50)
The wiring looks correct but sometimes the differential outputs do not work very well with high input
current drives so it might be worth trying with common ground wiring (connect PUL- AND DIR- to ground instead of 7I76 outputs and leave the 7I76 dir- and step- outputs unconnected)
You might also verify that the 5V at the 7I76 is not less then 4.75V or so
The wiring looks correct but sometimes the differential outputs do not work very well with high input
current drives so it might be worth trying with common ground wiring (connect PUL- AND DIR- to ground instead of 7I76 outputs and leave the 7I76 dir- and step- outputs unconnected)
You might also verify that the 5V at the 7I76 is not less then 4.75V or so
Last edit: 25 Jul 2016 00:46 by PCW.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
25 Jul 2016 00:50 #77952
by Todd Zuercher
Replied by Todd Zuercher on topic Mesa 5i25/7i76 + driver leadshine DM2282 digital
Looks like you were caught by a PNCconf bug.
In you hal file for each axis change:
setp pid.N.maxerror .0005
to
setp pid.N.maxerror 0
Then in your ini file set the P gains to 1000
In you hal file for each axis change:
setp pid.N.maxerror .0005
to
setp pid.N.maxerror 0
Then in your ini file set the P gains to 1000
Please Log in or Create an account to join the conversation.
25 Jul 2016 00:59 #77953
by PCW
Replied by PCW on topic Mesa 5i25/7i76 + driver leadshine DM2282 digital
Ahh yes for metric .0005 pid.N.maxerror wont work (its ok for inches)
Please Log in or Create an account to join the conversation.
- echesortux
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 46
- Thank you received: 1
25 Jul 2016 01:02 #77954
by echesortux
Replied by echesortux on topic Mesa 5i25/7i76 + driver leadshine DM2282 digital
what is the P term? I though it was only for server motors. we are using stepper motors.
Thanks.
Thanks.
Please Log in or Create an account to join the conversation.
25 Jul 2016 01:13 #77956
by PCW
Replied by PCW on topic Mesa 5i25/7i76 + driver leadshine DM2282 digital
its set in a line like this in the ini file:
P = 50.0
this needs to be changed to
P = 50.0
P = 1000
Note that there is one per axis
The
setp pid.N.maxerror .0005
statements are in the hal file
They should all be changed to
setp pid.N.maxerror 0
P = 50.0
this needs to be changed to
P = 50.0
P = 1000
Note that there is one per axis
The
setp pid.N.maxerror .0005
statements are in the hal file
They should all be changed to
setp pid.N.maxerror 0
Please Log in or Create an account to join the conversation.
- echesortux
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 46
- Thank you received: 1
25 Jul 2016 01:19 #77957
by echesortux
Replied by echesortux on topic Mesa 5i25/7i76 + driver leadshine DM2282 digital
I mean what is the meaning of P? what does it mean?
Thanks.
Thanks.
Please Log in or Create an account to join the conversation.
25 Jul 2016 01:43 #77958
by PCW
Replied by PCW on topic Mesa 5i25/7i76 + driver leadshine DM2282 digital
P term in the stepgen PID loop
Please Log in or Create an account to join the conversation.
Moderators: cmorley
- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Mesa 5i25/7i76 + driver leadshine DM2282 digital
Time to create page: 0.097 seconds