Proper format for 3 Phase STEPGEN step sequence?
23 Apr 2014 09:00 #46230
by punitor1
Proper format for 3 Phase STEPGEN step sequence? was created by punitor1
Hello,
This is my first time modifying a HAL file. I need to switch from the default "0" type steppers to type "3" I think I have most of it figured out from the HAL and StepGen Manuals but I am stuck on formatting for the "step" comands.
I am running 3 Phase, full step motors.
I read the manuals as asking for the following but HAL errors and does not initialize:
net xstep <= stepgen.0.phase-A
net xstep <= stepgen.0.phase-B
net xstep <= stepgen.0.phase-C
What am I doing wrong/what is the proper format?
Thanks,
Travis
This is my first time modifying a HAL file. I need to switch from the default "0" type steppers to type "3" I think I have most of it figured out from the HAL and StepGen Manuals but I am stuck on formatting for the "step" comands.
I am running 3 Phase, full step motors.
I read the manuals as asking for the following but HAL errors and does not initialize:
net xstep <= stepgen.0.phase-A
net xstep <= stepgen.0.phase-B
net xstep <= stepgen.0.phase-C
What am I doing wrong/what is the proper format?
Thanks,
Travis
Please Log in or Create an account to join the conversation.
23 Apr 2014 09:36 #46232
by PCW
Replied by PCW on topic Proper format for 3 Phase STEPGEN step sequence?
if you have direct drive 3 phase outputs it would likely be something like this:
net xstep-a parport.0.pin-2-out <= stepgen.0.phase-A
net xstep-b parport.0.pin-3-out <= stepgen.0.phase-B
net xstep-c parport.0.pin-4-out <= stepgen.0.phase-C
net xstep-a parport.0.pin-2-out <= stepgen.0.phase-A
net xstep-b parport.0.pin-3-out <= stepgen.0.phase-B
net xstep-c parport.0.pin-4-out <= stepgen.0.phase-C
Please Log in or Create an account to join the conversation.
23 Apr 2014 09:55 #46233
by punitor1
Replied by punitor1 on topic Proper format for 3 Phase STEPGEN step sequence?
Thanks PCW,
I have a very simple BOB controlling the drivers, I have attached a quick controller/driver wiring diagram
I have a very simple BOB controlling the drivers, I have attached a quick controller/driver wiring diagram
Please Log in or Create an account to join the conversation.
23 Apr 2014 09:57 #46234
by punitor1
Replied by punitor1 on topic Proper format for 3 Phase STEPGEN step sequence?
I should have mentioned that the 3MD560 driver has enable - default enabled, although I have tried it both ways.
T
T
Please Log in or Create an account to join the conversation.
23 Apr 2014 11:18 #46236
by PCW
Replied by PCW on topic Proper format for 3 Phase STEPGEN step sequence?
Ahh thats a standard step/dir drive so the stepgen is just mode 0
so there are no changes needed in a normal stepconf
generated hal file.
The only thing different may be the scaling
so there are no changes needed in a normal stepconf
generated hal file.
The only thing different may be the scaling
The following user(s) said Thank You: punitor1
Please Log in or Create an account to join the conversation.
23 Apr 2014 22:28 #46258
by andypugh
As PCW has said, that is a normal step-dir drive, so is controlled entirely normally with a Mode 0 stepgen.
You might want to wire with +5V to the + pins and connect the parport / BOB to the - pins. This would certainly be a better arrangement with a direct parallel port connector (typically parports can sing 15mA but many can only source 3mA). The BOB probably removes this limit.
The problem with your HAL:
net xstep <= stepgen.0.phase-A
net xstep <= stepgen.0.phase-B
net xstep <= stepgen.0.phase-C
Is that you are trying to connect three outputs to the same signal (xstep), and a signal can only be driven by a single output (otherwise which value should it believe?)
Note that signal names in HAL are not special, you get to make them up. The same is not true of HAL pins, those have to exist.
The signal name is the first thing after net, and must always exist.
Replied by andypugh on topic Proper format for 3 Phase STEPGEN step sequence?
I have a very simple BOB controlling the drivers, I have attached a quick controller/driver wiring diagram
As PCW has said, that is a normal step-dir drive, so is controlled entirely normally with a Mode 0 stepgen.
You might want to wire with +5V to the + pins and connect the parport / BOB to the - pins. This would certainly be a better arrangement with a direct parallel port connector (typically parports can sing 15mA but many can only source 3mA). The BOB probably removes this limit.
The problem with your HAL:
net xstep <= stepgen.0.phase-A
net xstep <= stepgen.0.phase-B
net xstep <= stepgen.0.phase-C
Is that you are trying to connect three outputs to the same signal (xstep), and a signal can only be driven by a single output (otherwise which value should it believe?)
Note that signal names in HAL are not special, you get to make them up. The same is not true of HAL pins, those have to exist.
The signal name is the first thing after net, and must always exist.
The following user(s) said Thank You: punitor1
Please Log in or Create an account to join the conversation.
24 Apr 2014 07:31 #46273
by punitor1
Replied by punitor1 on topic Proper format for 3 Phase STEPGEN step sequence?
Thanks PCW and andypugh,
I reverted the file to 0 type and rewired for a +5v common and - signal and it works:)
Now I just need to get the scaling adjusted (steppers are jumpy) and I should be good to go.
Thanks again for your help,
Travis
I reverted the file to 0 type and rewired for a +5v common and - signal and it works:)
Now I just need to get the scaling adjusted (steppers are jumpy) and I should be good to go.
Thanks again for your help,
Travis
Please Log in or Create an account to join the conversation.
Time to create page: 0.079 seconds