MESA 5i23 7i44 7i49 7i37 8i20

More
11 Oct 2015 23:07 - 11 Oct 2015 23:08 #63691 by andypugh
Replied by andypugh on topic MESA 5i23 7i44 7i49 7i37 8i20

Questions:
My motors have nominal current is: 3A and maximal current is 12,7A
Where is it set?


The 8i20.scalemax should automatically match what the 8i20 max current is set to (this can be changed using the setsserial hal component.
linuxcnc.org/docs/html/man/man9/setsserial.9.html

However, it is probably easier to leave those where they are at the moment, and simply use pid.maxoutput to limit the current requested.
Do you motors have temperature sensors fitted? Many do. If they have, then it seems wise to use them. I recently had a ball-nut go faulty and the first I knew was the smell of overheated servo motor.

I would typically set the pid.maxoutput to the 12.7A limit, but keep an eye on the typical running current to make sure that it is less than 3A in a steady-state.
I have an idea for a HAL component that integrates instantaneous current and subtracts a fixed decay rate to give a "virtual temperature" for servo motors with no in-built sensors.
Last edit: 11 Oct 2015 23:08 by andypugh.

Please Log in or Create an account to join the conversation.

More
15 Oct 2015 18:48 - 15 Oct 2015 18:56 #63777 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
Hi Andy,
I have (maybe last) problem with discrete signals. :(
I wiring external signals eg. e-stop, lim and ref. switches and spindle.
Unfortunately I dont have any example for my Mesa configuration.

1) My spindle is connection via 7i49 card. I connect Analog Out1 to Input in freq. inverter. 0-10V
2) Signals E-stop, lim switches and ref. switches I have connect to 7i37-TA. 1st input I have mapped as hm2_5i23.0.gpio.024.in and 2nd... etc... I see value this signal in HAL Meter.

I dont know how to linked these signals in my HAL file.
How do I generate 0-10V for spindle via 7i49 card?
Are there any examples?

Thank You.
Last edit: 15 Oct 2015 18:56 by kenny.

Please Log in or Create an account to join the conversation.

More
15 Oct 2015 19:42 - 15 Oct 2015 19:43 #63778 by andypugh
Replied by andypugh on topic MESA 5i23 7i44 7i49 7i37 8i20

I dont know how to linked these signals in my HAL file.
How do I generate 0-10V for spindle via 7i49 card?.


The GPIO and Analogue output pin names do not "know" that they are on the 7i49 or the 7i37.

So, the analogue outputs have names like hm2_5i23.0.pwmgen.00.value. You already seem to have figured out the GPIO.

Set the pwmgen.00.scale pin to be the spindle speed that the VFD gives you at 10V input.
Then net spindle-cmd motion.spinldle-speed-out-abs => hm2_5i23.0.pwmgen.00.value

Here are some of the pins you might want to use:
www.linuxcnc.org/docs/html/man/man9/motion.9.html

Here is the docsument that describes the Hostmot2 pins:
www.linuxcnc.org/docs/html/man/man9/hostmot2.9.html

Here are some more HAL pins that might be useful
www.linuxcnc.org/docs/html/man/man1/iocontrol.1.html
www.linuxcnc.org/docs/html/man/man1/halui.1.html
Last edit: 15 Oct 2015 19:43 by andypugh.

Please Log in or Create an account to join the conversation.

More
15 Oct 2015 19:44 #63779 by andypugh
Replied by andypugh on topic MESA 5i23 7i44 7i49 7i37 8i20
Incidentally, the pin listing in dmesg will tell you which GPIO number is on which 5i23 pin, and hence which 7i37 pin it is on.

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 21:47 #64063 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
Hi Andy, I have one question.
Parameter "MAXOUTPUT" in HAL file is defined as max. voltage from PID to servo.
What does it mean in my full digitally system with 8i20 and RS422?

Thank

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 22:31 #64075 by andypugh
Replied by andypugh on topic MESA 5i23 7i44 7i49 7i37 8i20

Parameter "MAXOUTPUT" in HAL file is defined as max. voltage from PID to servo.
What does it mean in my full digitally system with 8i20 and RS422?


Generally (and certainly in the case of my system) the PID output is actual motor amps.
The following user(s) said Thank You: kenny

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 22:35 #64076 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
My motors is designed for max current 12.7A.
Then: MAXOUTPUT = 12.7
Is this OK?

Please Log in or Create an account to join the conversation.

More
21 Oct 2015 22:52 #64078 by andypugh
Replied by andypugh on topic MESA 5i23 7i44 7i49 7i37 8i20

My motors is designed for max current 12.7A.
Then: MAXOUTPUT = 12.7
Is this OK?


Yes, I would say so.

But.. It is worth monitoring the actual current (Halmeter, for example) when running the machine to be sure that the current is closer to the continous rating than the peak rating most of the time.

If the motors have thermistors then I would suggest connecting them and monitoring in HAL (maybe use the HAL "message" component to issue warnings.

I recently nearly melted my Z servo when the ball-nut failed. The motor could still move the axis, but was running at max current all the time.
Unfortunately I don't think that any of your boards offer any analog inputs. The cheapest way to add some is probably a 7i73, but you could probably arrange resistors in such a way that a digital input will trigger on motor overheat.

The 8i20 boards communicate a driver temperature back to HAL, it might be worth monitoring that too.
The following user(s) said Thank You: kenny

Please Log in or Create an account to join the conversation.

More
24 Oct 2015 22:27 - 24 Oct 2015 22:42 #64218 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
Hi, I have one problem.
How I reversed coordinate system in X axis?
:(
Thank
Last edit: 24 Oct 2015 22:42 by kenny.

Please Log in or Create an account to join the conversation.

More
25 Oct 2015 01:56 #64236 by andypugh
Replied by andypugh on topic MESA 5i23 7i44 7i49 7i37 8i20

Hi, I have one problem.
How I reversed coordinate system in X axis?


I had to do this a couple of weeks ago, and I have already forgotten how I did it :-)

Looking at my configs, you need to change the sign of two items (and only those two)

setp hm2_5i23.0.8i20.0.2.current-scalemax -7.5
setp hm2_5i23.0.resolver.01.scale 1.2244898

(Obviously you change the ones that match your resolver and 8i20 setup)
The following user(s) said Thank You: kenny

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.112 seconds
Powered by Kunena Forum