On Saturday 09 December 2017 05:59:58 andy pugh wrote:

> On 9 December 2017 at 04:06, Gene Heskett <[email protected]> wrote:
> >  So I
> > tried to invert_output on gpio.001, which ack the above, should have
> > done it.
>
> Yes, I agree, it should.
>
> So, did it?
No, it cut the amplitude to about a volt, but did not invert it.
>
> What does
> halcmd show param *gpio.001*
> tell you after the system has launched?

Didn't look. And its not in a condition to be safely powered up until 
i complete the reversal at the pulse input to the pwmservo amp. But that 
shouldn't need power on anything but the 5i25 for that test.
gene@GO704:~/linuxcnc/configs/GO704fast$ halcmd show param 
hm2_5i25.0.gpio.001
Parameters:
Owner   Type  Dir         Value  Name

This is with lncnc running, but not power on the box of drivers etc. 
However if I run show config, and select the 5i25, I can see this if it 
will copy/paste:

    12  bit   RW          FALSE  hm2_5i25.0.pwmgen.00.out0.invert_output
    12  bit   RW          FALSE  hm2_5i25.0.pwmgen.00.out0.is_opendrain
    12  bit   RW           TRUE  hm2_5i25.0.pwmgen.00.out1.invert_output
    12  bit   RW          FALSE  hm2_5i25.0.pwmgen.00.out1.is_opendrain
    12  s32   RW              1  hm2_5i25.0.pwmgen.00.output-type
    12  float RW             46  hm2_5i25.0.pwmgen.00.scale
    12  u32   RW     0x00004E20  hm2_5i25.0.pwmgen.pdm_frequency
    12  u32   RW     0x00004E20  hm2_5i25.0.pwmgen.pwm_frequency
However, commenting that line back out of the hal file and rerunning 
lncnc, I get this:
    12  bit   RW          FALSE  hm2_5i25.0.pwmgen.00.out0.invert_output
    12  bit   RW          FALSE  hm2_5i25.0.pwmgen.00.out0.is_opendrain
    12  bit   RW           TRUE  hm2_5i25.0.pwmgen.00.out1.invert_output
    12  bit   RW          FALSE  hm2_5i25.0.pwmgen.00.out1.is_opendrain
    12  s32   RW              1  hm2_5i25.0.pwmgen.00.output-type
    12  float RW             46  hm2_5i25.0.pwmgen.00.scale
    12  u32   RW     0x00004E20  hm2_5i25.0.pwmgen.pdm_frequency
    12  u32   RW     0x00004E20  hm2_5i25.0.pwmgen.pwm_frequency
IOW, no change

So, lets see if this will work instead:

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

No change, I half expected an init error
    12  bit   RW          FALSE  hm2_5i25.0.pwmgen.00.out0.invert_output
    12  bit   RW          FALSE  hm2_5i25.0.pwmgen.00.out0.is_opendrain
    12  bit   RW           TRUE  hm2_5i25.0.pwmgen.00.out1.invert_output
    12  bit   RW          FALSE  hm2_5i25.0.pwmgen.00.out1.is_opendrain
    12  s32   RW              1  hm2_5i25.0.pwmgen.00.output-type
    12  float RW             46  hm2_5i25.0.pwmgen.00.scale
    12  u32   RW     0x00004E20  hm2_5i25.0.pwmgen.pdm_frequency
    12  u32   RW     0x00004E20  hm2_5i25.0.pwmgen.pwm_frequency

So I guess I go about finishing the inversion of the drive to the opto.
Since that output on the bob was drive to the relay's coil, I may take 
the 2nd of them, I bought two, and do the same relay removal to it, but 
see if I can cut & paste to invert it. Maybe even paste a transistor on 
the bottom to do it. All the other signals are apparently sink when 
true. Direction works normally.

As Jackie Gleason was fond of saying, what a revolting development that 
is. ;-) Jackie was something else on a billiards table too.

But I am out of metformin which is the first thing I need to fix this 
morning. And no dammed refills left. I have no clue why they don't write 
the rx for enough refills to match the expiration date of the rx, which 
is another 11 months at 60/month. And the auto refill computer says at 
least one business day. Hell of a way to run a train. OTOH, I should 
have called mid-week.

Thanks Andy.

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)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to