On Fri, 20 May 2022, gene heskett wrote:

Date: Fri, 20 May 2022 18:08:57 -0400
From: gene heskett <[email protected]>
Reply-To: "Enhanced Machine Controller (EMC)"
    <[email protected]>
To: "Enhanced Machine Controller (EMC)" <[email protected]>
Subject: Re: [Emc-users] For Peter

On Friday, 20 May 2022 17:06:13 EDT Peter C. Wallace wrote:
On Fri, 20 May 2022, gene heskett wrote:
So I took out the --dbnames and printed the readhmid, which gave me
some pin numbers to look at. which is a help.

That means you are still running the old mesaflash

Yup, fixed now.

Did you build the mesaflash source with "sudo make install" ?

yes

But apparently the setp for output-type takes a different syntax as
trying to set it to zero is a pin not found showstopper??? And I
can't find it in any similar name in halshow???

That should be

setp hm2_5i25.0.pwmgen.00.output-type N

From the bottom of my .ini file:
[AIR_0]
PWMGEN_S_FREQ = 4000
PWMGEN1_TYPE = 0
PWMGEN0_TYPE = 1
from the setp's in my .hal file:
setp hm2_5I25.0.pwmgen.01.output-type [AIR_0]PWMGEN1_TYPE
setp hm2_5i25.0.pwmgen.00.output-type [AIR_0]PWMGEN0_TYPE

There was a couple typu's above.
But that does not agree with the software version, logging this at
startup of linuxcnc:
hm2/hm2_5i25.0: invalid pwmgen output_type 0 requested
hm2/hm2_5i25.0: supported .output-type values are: 1 (PWM & Dir), 2 (Up &
Down), 3 (PDM & Dir), and 4 (Dir & PWM)

I can run on 2 or 3, ignoring the dir so thats not a real problem.
Getting the correct polarity, off=low, when the machine power is off
might be. OTOH they won't run long without a hot supply, which also goes
away when F2 is toggled off.

Thats correct, 0 is not a valid PWM type

To invert the output polarities, you would:

for PWM 0
setp hm2_5i25.0.pwmgen.00.out0.invert_output true

for PWM 1
setp hm2_5i25.0.pwmgen.01.out0.invert_output true


I'm about spent for the day, the years are tattling on me, so thank you
Peter.

Take care & stay well, both of you.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis





_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users


Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to