- Posts: 266
- Thank you received: 120
rs485 huanyang speed control
- BrendaEM
- Offline
- Elite Member
-
Less
More
8 years 4 months ago - 8 years 4 months ago #112944
by BrendaEM
Replied by BrendaEM on topic rs485 huanyang speed control
Yes, I am using Axis.
I guess it thinks I have no spindle, so I guess I have to do another round with stepconf, and then the merging, and the sorting, with the pointy teeth : P
And I don't have any idea what stepconf settings applies to the Huanyang VFDs. In the video Marco Reps just glosses over the spindle page in stepconf--not important : P I like his videos, though.
My thinking is: most people will have a milling machine with a spindle.
Oh, the Axis internal controls are written in different language than the external ones....
One of the shames about Axis is: nothing is anti-aliased--no Cairo?
Thanks,
Brenda
I guess it thinks I have no spindle, so I guess I have to do another round with stepconf, and then the merging, and the sorting, with the pointy teeth : P
And I don't have any idea what stepconf settings applies to the Huanyang VFDs. In the video Marco Reps just glosses over the spindle page in stepconf--not important : P I like his videos, though.
My thinking is: most people will have a milling machine with a spindle.
Oh, the Axis internal controls are written in different language than the external ones....
One of the shames about Axis is: nothing is anti-aliased--no Cairo?
Thanks,
Brenda
Last edit: 8 years 4 months ago by BrendaEM.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
8 years 4 months ago - 8 years 4 months ago #112946
by andypugh
Replied by andypugh on topic rs485 huanyang speed control
Maybe now is the time to decide that Stepconf has done its duty and its time to take charge of your HAL and INI yourself.
Back in the mists of time the HAL and INI had to be written from scratch. Stepconf and PnCCOnf are "wizards" that try to automate the process, but the HAL and INI are meant to be human-readable and are expected to be human-edited.
To put this in perspective, I wrote about half of the Mesa drivers, but I have never used PnCConf. (largely because I am nearly always working with new cards that PnCConf can't be expected to work with because _LinuxCNC_ doesn't work with them yet.)
Back in the mists of time the HAL and INI had to be written from scratch. Stepconf and PnCCOnf are "wizards" that try to automate the process, but the HAL and INI are meant to be human-readable and are expected to be human-edited.
To put this in perspective, I wrote about half of the Mesa drivers, but I have never used PnCConf. (largely because I am nearly always working with new cards that PnCConf can't be expected to work with because _LinuxCNC_ doesn't work with them yet.)
Last edit: 8 years 4 months ago by andypugh.
Please Log in or Create an account to join the conversation.
- BrendaEM
- Offline
- Elite Member
-
Less
More
- Posts: 266
- Thank you received: 120
8 years 4 months ago - 8 years 4 months ago #112949
by BrendaEM
Replied by BrendaEM on topic rs485 huanyang speed control
Well, as you know know most of my .hal is custom; you helped me with it : )
I just don't know what form of communication is happening over RS285.
Is RS285 sending PWM or data?
To read the hy_vfd man page, I would think that it sends and read data to/from the VFD, but the spindle control code I've seen seems to deal with terminal PWM, so how can it work?
It appears that stepconf has a PDM option, will that help it's speed settings work for RS485
In general the thing missing from the LinuxCNC documentation is examples of use and a sense of how things fit together, a lay of the land. A user who does not understand the documentation enough to soldier through it cannot improve it, and they will come here to the forums.
This would be a swell place to include some Huanyang VFD information.
wiki.linuxcnc.org/cgi-bin/wiki.pl?VFD_Modbus
I just don't know what form of communication is happening over RS285.
Is RS285 sending PWM or data?
To read the hy_vfd man page, I would think that it sends and read data to/from the VFD, but the spindle control code I've seen seems to deal with terminal PWM, so how can it work?
It appears that stepconf has a PDM option, will that help it's speed settings work for RS485
In general the thing missing from the LinuxCNC documentation is examples of use and a sense of how things fit together, a lay of the land. A user who does not understand the documentation enough to soldier through it cannot improve it, and they will come here to the forums.
This would be a swell place to include some Huanyang VFD information.
wiki.linuxcnc.org/cgi-bin/wiki.pl?VFD_Modbus
Last edit: 8 years 4 months ago by BrendaEM.
Please Log in or Create an account to join the conversation.
- ozzyrob
- Visitor
-
8 years 4 months ago - 8 years 4 months ago #112952
by ozzyrob
Replied by ozzyrob on topic rs485 huanyang speed control
RS-485 and the rest explained....it's data.
www.ni.com/white-paper/11390/en/
There's the man pages
linuxcnc.org/docs/2.7/html/man/man1/hy_vfd.1.html
linuxcnc.org/docs/2.7/html/man/man1/hy_gt_vfd.1.html
And probably more info available by searching the forum.
www.ni.com/white-paper/11390/en/
There's the man pages
linuxcnc.org/docs/2.7/html/man/man1/hy_vfd.1.html
linuxcnc.org/docs/2.7/html/man/man1/hy_gt_vfd.1.html
And probably more info available by searching the forum.
Last edit: 8 years 4 months ago by ozzyrob.
Please Log in or Create an account to join the conversation.
- BrendaEM
- Offline
- Elite Member
-
Less
More
- Posts: 266
- Thank you received: 120
8 years 4 months ago - 8 years 4 months ago #112954
by BrendaEM
Replied by BrendaEM on topic rs485 huanyang speed control
I've seen serial protocol before.
The issue I am having is: having never seen working code, having never found anything that explains how the speed setting connect with HY VFD, this I am shooting in the quiet dark.
Noticing that the VFD driver was written to support a Huanyang GT just sent a chill down my spine.
The issue I am having is: having never seen working code, having never found anything that explains how the speed setting connect with HY VFD, this I am shooting in the quiet dark.
Noticing that the VFD driver was written to support a Huanyang GT just sent a chill down my spine.
Last edit: 8 years 4 months ago by BrendaEM.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
8 years 4 months ago - 8 years 4 months ago #112955
by andypugh
It is sending numerical data. (it's a byte-based serial protocol, sending PWM would be weird. And also entirely possible)
HAL is magic. Or close. Everything in HAL is just a number. Most of the important ones are floats. But you can convert them in HAL. Most simply with the dedicated functions like "conv_float_s32" but more subtly with things like the "PWM" HAL module that takes a floating-point spindle speed as input and outputs a bit-type output for connection to a digital pin.
In your case you would just not have the PWM component. Simply connect floating-point spindle speed command to the VFD component floating-point spindle-speed input.
Unless you need scaling.
Replied by andypugh on topic rs485 huanyang speed control
BrendaEM wrote: I just don't know what form of communication is happening over RS285.
Is RS285 sending PWM or data?
It is sending numerical data. (it's a byte-based serial protocol, sending PWM would be weird. And also entirely possible)
To read the hy_vfd man page, I would think that it sends and read data to/from the VFD, but the spindle control code I've seen seems to deal with terminal PWM, so how can it work?
HAL is magic. Or close. Everything in HAL is just a number. Most of the important ones are floats. But you can convert them in HAL. Most simply with the dedicated functions like "conv_float_s32" but more subtly with things like the "PWM" HAL module that takes a floating-point spindle speed as input and outputs a bit-type output for connection to a digital pin.
In your case you would just not have the PWM component. Simply connect floating-point spindle speed command to the VFD component floating-point spindle-speed input.
Unless you need scaling.
Last edit: 8 years 4 months ago by andypugh.
Please Log in or Create an account to join the conversation.
Time to create page: 1.977 seconds