Ignore Analog Limits Mesa5i25/7i77
- grzesiekzxr
- Offline
- Senior Member
-
Less
More
- Posts: 75
- Thank you received: 0
15 Apr 2016 20:01 #73362
by grzesiekzxr
Ignore Analog Limits Mesa5i25/7i77 was created by grzesiekzxr
Hi,guys
Pleas give me advise what is the proper way to have analog output 0-5V.
I add section in machine.ini:
[LASER]
MAX_OUTPUT=5
ANALOG_MINLIMIT=0
ANALOG-MAXLIMIT=5
ANALOG_SCALE=5
Linuxcnc see scale but ignor limits,why?
Thank You.
Pleas give me advise what is the proper way to have analog output 0-5V.
I add section in machine.ini:
[LASER]
MAX_OUTPUT=5
ANALOG_MINLIMIT=0
ANALOG-MAXLIMIT=5
ANALOG_SCALE=5
Linuxcnc see scale but ignor limits,why?
Thank You.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18577
- Thank you received: 5106
15 Apr 2016 21:44 #73371
by PCW
Replied by PCW on topic Ignore Analog Limits Mesa5i25/7i77
Are you sure those are the names PnCConf uses?
Did you modify the hal file to use those ini file settings?
Many if not most ini file settings do nothing by themselves,
they are just constants passed to the hal file for setup use
Unless the hal file has a setp or other statements that use
[LASER]ANALOG_MINLIMIT, [LASER]ANALOG_MAXLIMIT, [LASER]ANALOG_SCALE
as constants, the ini file settings do nothing
Did you modify the hal file to use those ini file settings?
Many if not most ini file settings do nothing by themselves,
they are just constants passed to the hal file for setup use
Unless the hal file has a setp or other statements that use
[LASER]ANALOG_MINLIMIT, [LASER]ANALOG_MAXLIMIT, [LASER]ANALOG_SCALE
as constants, the ini file settings do nothing
Please Log in or Create an account to join the conversation.
- grzesiekzxr
- Offline
- Senior Member
-
Less
More
- Posts: 75
- Thank you received: 0
16 Apr 2016 08:35 - 16 Apr 2016 08:41 #73394
by grzesiekzxr
Replied by grzesiekzxr on topic Ignore Analog Limits Mesa5i25/7i77
Than You for Your reply.
I'm using mesa since 2013 and I know that work perfectly.
"Did you modify the hal file to use those ini file settings?"
Of course :
Machine.ini:
[LASER]
MAX_OUTPUT = 4
#OUTPUT_SCALE=0.5
ANALOG_MAXLIM =4
ANALOG_MINLIM = 0
ANALOG_SCALE = 4
Core.hal :
setp hm2_5i25.0.7i77.0.1.analogout5-minlim [LASER]ANALOG_MINLIM
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim [LASER]ANALOG_MAXLIM
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax [LASER]ANALOG_SCALE
net laser motion.analog-out-00 hm2_5i25.0.7i77.0.1.analogout5
Linuxcnc work and respond for changing ANALOG_SCALE = 4 ,but don't see limit.
Could You show me proper statement for 0-5V.
Regards Grzegorz.
I'm using mesa since 2013 and I know that work perfectly.
"Did you modify the hal file to use those ini file settings?"
Of course :
Machine.ini:
[LASER]
MAX_OUTPUT = 4
#OUTPUT_SCALE=0.5
ANALOG_MAXLIM =4
ANALOG_MINLIM = 0
ANALOG_SCALE = 4
Core.hal :
setp hm2_5i25.0.7i77.0.1.analogout5-minlim [LASER]ANALOG_MINLIM
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim [LASER]ANALOG_MAXLIM
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax [LASER]ANALOG_SCALE
net laser motion.analog-out-00 hm2_5i25.0.7i77.0.1.analogout5
Linuxcnc work and respond for changing ANALOG_SCALE = 4 ,but don't see limit.
Could You show me proper statement for 0-5V.
Regards Grzegorz.
Last edit: 16 Apr 2016 08:41 by grzesiekzxr.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18577
- Thank you received: 5106
16 Apr 2016 14:31 #73403
by PCW
Replied by PCW on topic Ignore Analog Limits Mesa5i25/7i77
Sorry, missed it the first time
is what you want
[LASER]
MAX_OUTPUT=5
ANALOG_MINLIMIT=0
ANALOG-MAXLIMIT=5
ANALOG_SCALE=10
is what you want
Please Log in or Create an account to join the conversation.
- grzesiekzxr
- Offline
- Senior Member
-
Less
More
- Posts: 75
- Thank you received: 0
16 Apr 2016 18:02 #73417
by grzesiekzxr
Replied by grzesiekzxr on topic Ignore Analog Limits Mesa5i25/7i77
Thank You It's working greate 
On another machine "galvo head" I need +-7V so:
[LASER]
MAX_OUTPUT=7
MIN_OUTPUT=-7
ANALOG_MINLIMIT=-7
ANALOG-MAXLIMIT=7
ANALOG_SCALE=???????
How is it calculated?

On another machine "galvo head" I need +-7V so:
[LASER]
MAX_OUTPUT=7
MIN_OUTPUT=-7
ANALOG_MINLIMIT=-7
ANALOG-MAXLIMIT=7
ANALOG_SCALE=???????
How is it calculated?
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18577
- Thank you received: 5106
16 Apr 2016 19:08 #73420
by PCW
Replied by PCW on topic Ignore Analog Limits Mesa5i25/7i77
Analog scale is always 10 if you want correct scaling for volts (since that's full scale output)
You might want scale to be 6000 (RPM) for a spindle or 200mm/s for a linear axis
You might want scale to be 6000 (RPM) for a spindle or 200mm/s for a linear axis
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Away
- Platinum Member
-
Less
More
- Posts: 4996
- Thank you received: 1458
17 Apr 2016 19:30 #73501
by Todd Zuercher
Replied by Todd Zuercher on topic Ignore Analog Limits Mesa5i25/7i77
Another way of looking at this.
The cards output range is always -10-10v, the ANALOG_SCALE=X sets up what scale of numbers Linuxcnc equatest that voltage range to. Such as +/-6000 RPM, so when the command is 6000RPM the card would output 10v.
So for your +/-7volt
[LASER]
MAX_OUTPUT=7
ANALOG_MINLIMIT=-7
ANALOG-MAXLIMIT=7
ANALOG_SCALE=10
For a spindle VFD with +/-5v with 5v=6000 RPM
MAX_OUTPUT=6000
ANALOG_MINLIMIT=-5
ANALOG-MAXLIMIT=5
ANALOG_SCALE=12000
(I think) I'm sure someone will correct me if I'm wrong.
The cards output range is always -10-10v, the ANALOG_SCALE=X sets up what scale of numbers Linuxcnc equatest that voltage range to. Such as +/-6000 RPM, so when the command is 6000RPM the card would output 10v.
So for your +/-7volt
[LASER]
MAX_OUTPUT=7
ANALOG_MINLIMIT=-7
ANALOG-MAXLIMIT=7
ANALOG_SCALE=10
For a spindle VFD with +/-5v with 5v=6000 RPM
MAX_OUTPUT=6000
ANALOG_MINLIMIT=-5
ANALOG-MAXLIMIT=5
ANALOG_SCALE=12000
(I think) I'm sure someone will correct me if I'm wrong.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18577
- Thank you received: 5106
18 Apr 2016 13:35 #73531
by PCW
Replied by PCW on topic Ignore Analog Limits Mesa5i25/7i77
The limits are also scaled:
For a spindle VFD with +/-5v with 5v=6000 RPM
MAX_OUTPUT=6000
ANALOG_MINLIMIT=-6000
ANALOG-MAXLIMIT=6000
ANALOG_SCALE=12000
For a spindle VFD with +/-5v with 5v=6000 RPM
MAX_OUTPUT=6000
ANALOG_MINLIMIT=-6000
ANALOG-MAXLIMIT=6000
ANALOG_SCALE=12000
Please Log in or Create an account to join the conversation.
- grzesiekzxr
- Offline
- Senior Member
-
Less
More
- Posts: 75
- Thank you received: 0
18 Apr 2016 18:49 #73559
by grzesiekzxr
Replied by grzesiekzxr on topic Ignore Analog Limits Mesa5i25/7i77
This is Greate forum with friendly People!
Thank You PCW.
Thank You Todd.
Sorry for the dellay CNC is my hobby ,and sometimes hard to find time for toys
What is better way to controll laser: ANALOG 0-5V or PWM/PDM.?
I wonder what is faster and more precise?
Thank You PCW.
Thank You Todd.
Sorry for the dellay CNC is my hobby ,and sometimes hard to find time for toys

What is better way to controll laser: ANALOG 0-5V or PWM/PDM.?
I wonder what is faster and more precise?
Please Log in or Create an account to join the conversation.
Time to create page: 0.214 seconds