ArtF wrote:
Bobby:
Your English is far better than my version of your native tongue.
I think you have tighter control than most.
Art
Hi Art.
Thanks for the kind words . Usual people correct me in not a nice way , but
i say to all " if they realy want , can correct me in my native language"
I'm Romanian , i speak very good Ru and Fr language , in my time english wasn't on
school . I run in it in my faculty , of course technical english , but still .
About my laser control , well i think is the source issue. Is very tight on small power
rise fast , and after decrease until 4.2V = 20mA. I dont use more than 10mA but
the control look like 30% logarithmic increase and after keep some linear shape.
Hard to tell without measure device on laser power.
I finish my interface , i solve that little noise on voltage offset (i was stupid , no any decoupling cap
and no small low pass to first AO input. I was tired. Is solved all .
Now i run in my OLD issue . I don't get what's going on , i just dont understand .
I made a small switch between
normal power for cutting and
power with offset for engrave .
I change all stats with one single signal from OC 1 of Pokeys.
Well i write the code for button switch , i create the button , the variable are in system and are called
when i press the button but NO way to get the output ON on any OC.
Code: Select all
Variable GravareButton calls with current:1.0000
thread 33 started.
thread 33 stopped.
Variable GravareButton calls with current:0.0000
thread 34 started.
thread 34 stopped.
Variable AirButton calls with current:1.0000
thread 35 started.
thread 35 stopped.
Variable AirButton calls with current:0.0000
thread 36 started.
thread 36 stopped.
I mean working in midi script , also first time i create that function , was perfectly normal.
Work without issue .
I turn off the laser and Auggie and i go to sleep . After i wake up , i say to edit the name of button
was "EMPTY" and to change the color. I do it without start the laser. After i save the screen and i start laser
nothing work anymore.
Code: Select all
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//Toggle the output of the button for engrave
global GravareButton = function()
{
if (Gravare.GetState() == 1)
{
Pokeys1.SetOC(1, 1);//set putere gravare
yield();
}
else
{
Pokeys1.SetOC(1, 0);//set putere taiere
yield();
}
return;
};
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
And declared here " don't know if the order matter " some compiler do.
Code: Select all
global Gravare=Button("Engrave_BUT_66");
And check below in while loop.
Code: Select all
global TheWatch = function()
{
while(1)
{
LedButton();
AirButton();
GravareButton();
Safety();
yield();
}
return;
};
And the button is pic below.
I dont get it why doing that . If i turn on the OC1 in midi script and i press
button the OC 1 will turn off. Maybe that help.For me is mistery.
I remember , i run is same problem when i try to made the button for compressor .
Finaly got it working and after never stop.
Also what is mean " ID number " Any button created start with -1 .
Thanks for now.
Bobby