On 9/8/23 12:22, andy pugh wrote:
On Fri, 8 Sept 2023 at 17:07, gene heskett <ghesk...@shentel.net> wrote:

Now I've another data missmatch, since when is a "not" not a true/false
invertor? I can't feed it into a mux2 in for the sample to hold???

What is the datatype of your mux2?

float ack the man 9 page

However in thinking thru that paragragh of hal code, its all bit from the input from the drivers on, to there and effectively so is the halui input that bangs the e-stop off. Everything in that chain except the mux2 is bit wise stuff. I've tested the code thru multiple times, and it is working as designed for an f2 toggle, which also comes on in an alarm state for about 1 second and it does block that momentary alarm just fine. So the existing code is actually working.

The problem on the sixty40 shows at lcnc launch init, requiring an extra hit on ctl-space to clear the messages it emmits due to the default no power state its in at that time. So I am wondering if I can "not" the signal and correct that later. I'll give that some thought later. Since that output is a bit switched by an opto, the possibility of a free inversion by rewiring comes to mind.

Future project, I've left comments in the hal file FFR. Thanks Andy

Now back to the GO704 and its missing spindir signel, which is also a bit, But since I was running the former pwmgen in mode2, I don't think I ever developed a dir signal because the mode2 is biplar. 2 separate pwm signals IOW. Fun, games and headaches but it sure keeps me out of the bars.

Thanks Andy.
Works for me:

andypugh@rm-one:~/linuxcnc-dev$ halrun
halcmd: loadrt not count=1
Note: Using POSIX realtime
halcmd: loadrt mux_generic config=bb2
halcmd: net test not.0.out mux-gen.00.in-bit-01
halcmd: show sig
Signals:
Type          Value  Name     (linked to)
bit           FALSE  test
                          ==> mux-gen.00.in-bit-01
                          <== not.0.out


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



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to