GS-2 Spindle Configuration
01 Jun 2013 04:03 #35065
by ddmotim
GS-2 Spindle Configuration was created by ddmotim
On to the next issue with my BP mill....
I've been trying to set up serial communications with an Automation Direct GS2 VFD, and I'm not sure what's stopping this from working. I used basically the same custom hal file as the example in the documentation, with a couple modifications to match my setup (I really only got rid of the additional commands, and used the default settings):
# load the user space component for the Automation Direct GS2 VFD's
loadusr -Wn spindle-vfd gs2_vfd -s 2 -n spindle-vfd
# connect the spindle direction pin to the GS2
net gs2-fwd spindle-vfd.spindle-fwd <= motion.spindle-forward
# connect the spindle on pin to the GS2
net gs2-run spindle-vfd.spindle-on <= motion.spindle-on
# connect the GS2 at speed to the motion at speed
net gs2-at-speed motion.spindle-at-speed <= spindle-vfd.at-speed
# connect the spindle RPM to the GS2
net gs2-RPM spindle-vfd.speed-command <= motion.spindle-speed-out
I checked and double checked that my conditions in the GS2 match the custom hal file. One thing that caught my attention was that when I launch my machine after adding the custom hal file, I got an error saying that the motion.spindle-speed-out pin was already linked to a signal. I looked at my machine's hal file, and found it linked to "spindle-cmd". If I comment that line out of the hal file, I don't get an error. Now, when I run the HAL Configuration in Axis, it seems like Axis thinks the VFD is working, but it's not. Any outside ideas?
Thanks
I've been trying to set up serial communications with an Automation Direct GS2 VFD, and I'm not sure what's stopping this from working. I used basically the same custom hal file as the example in the documentation, with a couple modifications to match my setup (I really only got rid of the additional commands, and used the default settings):
# load the user space component for the Automation Direct GS2 VFD's
loadusr -Wn spindle-vfd gs2_vfd -s 2 -n spindle-vfd
# connect the spindle direction pin to the GS2
net gs2-fwd spindle-vfd.spindle-fwd <= motion.spindle-forward
# connect the spindle on pin to the GS2
net gs2-run spindle-vfd.spindle-on <= motion.spindle-on
# connect the GS2 at speed to the motion at speed
net gs2-at-speed motion.spindle-at-speed <= spindle-vfd.at-speed
# connect the spindle RPM to the GS2
net gs2-RPM spindle-vfd.speed-command <= motion.spindle-speed-out
I checked and double checked that my conditions in the GS2 match the custom hal file. One thing that caught my attention was that when I launch my machine after adding the custom hal file, I got an error saying that the motion.spindle-speed-out pin was already linked to a signal. I looked at my machine's hal file, and found it linked to "spindle-cmd". If I comment that line out of the hal file, I don't get an error. Now, when I run the HAL Configuration in Axis, it seems like Axis thinks the VFD is working, but it's not. Any outside ideas?
Thanks
Please Log in or Create an account to join the conversation.
01 Jun 2013 04:42 #35067
by BigJohnT
Replied by BigJohnT on topic GS-2 Spindle Configuration
Did you check for transmission errors?
Are ALL the parameters on the drive correct as show in the example?
www.linuxcnc.org/docs/html/examples/gs2_example.html
I wrote that step by step after installing my GS2.
JT
Are ALL the parameters on the drive correct as show in the example?
www.linuxcnc.org/docs/html/examples/gs2_example.html
I wrote that step by step after installing my GS2.
JT
Please Log in or Create an account to join the conversation.
03 Jun 2013 20:34 #35188
by ddmotim
Replied by ddmotim on topic GS-2 Spindle Configuration
I used the example as a guide and I double checked everything. For transmission errors, we set it up to transmit to a terminal on a second computer, and the inputs seemed to match what was showing up there (it sent no interpretable information, but changed with different inputs). At this point I think I'll reset the VFD to factory settings and start over. I'm still wondering why I had to comment out a line in the original Hal file, but the example did not mention that.
Thanks
Thanks
Please Log in or Create an account to join the conversation.
03 Jun 2013 21:01 #35191
by BigJohnT
Replied by BigJohnT on topic GS-2 Spindle Configuration
Which line did you comment out?
The gs2 component will definitely not work with the drive at default settings, I know.
Did you check for transmission errors as shown in the example?
JT
The gs2 component will definitely not work with the drive at default settings, I know.
Did you check for transmission errors as shown in the example?
JT
Please Log in or Create an account to join the conversation.
03 Jun 2013 21:54 #35194
by ddmotim
Replied by ddmotim on topic GS-2 Spindle Configuration
This is the line I had to comment out:
#net spindle-cmd <= motion.spindle-speed-out
I reset the GS2 to default settings and started over with the example. I copied it exactly, and changed the settings in the GS2 that I needed to. Still nada. I'm working on checking for transmission errors now
#net spindle-cmd <= motion.spindle-speed-out
I reset the GS2 to default settings and started over with the example. I copied it exactly, and changed the settings in the GS2 that I needed to. Still nada. I'm working on checking for transmission errors now
Please Log in or Create an account to join the conversation.
03 Jun 2013 22:06 #35195
by BigJohnT
Replied by BigJohnT on topic GS-2 Spindle Configuration
What was the error? I suspect you still have other spindle nets and might have missed something in your hal file. If any motion.spindle pin is found elsewhere besides the ones shown in my code they will cause it not to work.
This is my spindle drive section of my hal file.
This is my spindle drive section of my hal file.
# Spindle Drive
loadusr -Wn spindle-vfd gs2_vfd -s 2 -p none -n spindle-vfd -v
# connect the spindle direction pin to the GS2
net gs2-fwd spindle-vfd.spindle-fwd <= motion.spindle-forward
# connect the spindle on pin to the GS2
net gs2-run spindle-vfd.spindle-on <= motion.spindle-on
# connect the GS2 at speed to the motion at speed
net gs2-at-speed motion.spindle-at-speed <= spindle-vfd.at-speed
# connect the spindle RPM to the GS2
net gs2-RPM spindle-vfd.speed-command <= motion.spindle-speed-out
#vfd panel fan
net gs2-run => hm2_5i25.0.7i77.0.0.output-03
Please Log in or Create an account to join the conversation.
03 Jun 2013 23:16 #35198
by ddmotim
Replied by ddmotim on topic GS-2 Spindle Configuration
It seems like my issue is related to the run command. The GS2 just will not go into run mode. There are no other spindle nets in the hal file. I'm sure I'm missing something...
Please Log in or Create an account to join the conversation.
03 Jun 2013 23:18 #35199
by ddmotim
Replied by ddmotim on topic GS-2 Spindle Configuration
I attached my hal file. Maybe a second set of eyes will see something I can't?
Please Log in or Create an account to join the conversation.
03 Jun 2013 23:31 - 03 Jun 2013 23:33 #35201
by BigJohnT
Replied by BigJohnT on topic GS-2 Spindle Configuration
AFAIK you have to use the serial port not the USB port.
Edit: you will need the Automation Direct serial cable to connect the drive to your PC.
JT
Edit: you will need the Automation Direct serial cable to connect the drive to your PC.
JT
Last edit: 03 Jun 2013 23:33 by BigJohnT.
Please Log in or Create an account to join the conversation.
04 Jun 2013 00:03 #35204
by ddmotim
Replied by ddmotim on topic GS-2 Spindle Configuration
The setup we are using has a 4-way serial to USB (so we can see the status of each servo-drive without interupting anything) like this one: www.serialgear.com/4-Port-Serial-USB-CM-41042.html The GS2 is on the 4th Serial port, so that is why it's called out as USB3. We have a serial cable from the VFD to the 4-way.
I will try going straight from the GS2 to my computer, but I don't think that is the issue
I will try going straight from the GS2 to my computer, but I don't think that is the issue
Please Log in or Create an account to join the conversation.
Time to create page: 0.141 seconds