Macro_capability_detailed.htm - suggested corrections

This section is for Users that want to create and share Documentation about UCCNC.

Re: Macro_capability_detailed.htm - suggested corrections

Postby Robertspark » Sat Oct 22, 2016 9:44 pm

Is it not g90/g91?
Rob

Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
UC400eth, UC300eth, UCCNC v1.2046, Neuron Lite.
UCCNC Macro Manual
Robertspark
 
Posts: 617
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: Macro_capability_detailed.htm - suggested corrections

Postby Vmax549 » Sun Oct 23, 2016 2:45 am

Teh return values I got were "0" and "1". So if you added teh G prefix back you get a G0 and G1

(;-) TP
Vmax549
 
Posts: 589
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Macro_capability_detailed.htm - suggested corrections

Postby Vmax549 » Sun Oct 23, 2016 5:02 pm

Robert IF you need to know teh Modal values I can send you a script to read it.

(;-) TP
Vmax549
 
Posts: 589
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Macro_capability_detailed.htm - suggested corrections

Postby Robertspark » Fri Oct 28, 2016 11:13 am

exec.actualmodal function

Code: Select all
  int originalmodalmode = exec.actualmodal;
  string OMM = originalmodalmode.ToString();
  MessageBox.Show(OMM);
//   exec.actualmodal
//   returns [as int]>
//   "0" = G0 - Linear interpolation with maximum feedrate
//   "1" = G1 - Linear interpolation with set feedrate
//   "2" = G2 - CW arc interpolation with set feedrate
//   "3" = G3 - CCW arc interpolation with set feedrate




exec.actualdistmode function

Code: Select all
   int originaldistancemode = exec.actualdistmode;
   string ODM = originaldistancemode.ToString();
   MessageBox.Show(ODM);
//   exec.actualdistmode
//   returns [as int]>
//   "90" = g90 - absolute distance mode
//   "91" = g91 - relative distance mode


both found in M204.txt macro
Rob

Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
UC400eth, UC300eth, UCCNC v1.2046, Neuron Lite.
UCCNC Macro Manual
Robertspark
 
Posts: 617
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: Macro_capability_detailed.htm - suggested corrections

Postby Robertspark » Fri Oct 28, 2016 11:16 am

exec.DospinCW();
exec.DospinCCW();
exec.Stopspin();
exec.Miston();
exec.Floodon();
exec.Stopcoolant();


found in macros M3, M4, M5, M7, M8 & M9.txt respectively.
Rob

Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
UC400eth, UC300eth, UCCNC v1.2046, Neuron Lite.
UCCNC Macro Manual
Robertspark
 
Posts: 617
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: Macro_capability_detailed.htm - suggested corrections

Postby Vmax549 » Fri Oct 28, 2016 5:53 pm

Hiya Robert, there are other modal groups that you may wish to know about. (;-) Teh ACTUAL MODAL string show the current values for each modal group separated by the "|" charector in the string . Each section shows a different modal group value that is active at that point. at this point in developement not ALL teh values are shown but enough to be handy

(;-) TP
Vmax549
 
Posts: 589
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Macro_capability_detailed.htm - suggested corrections

Postby ger21 » Mon Oct 31, 2016 11:34 pm

To press a button from a macro:
exec.Callbutton(int ButtonNumber)

To Change Tab layers from a macro:
AS3.selectlayer(int LayerNumber)

Took me a while to figure out the second one. :)
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 810
Joined: Sat Sep 03, 2016 2:17 am

Re: Macro_capability_detailed.htm - suggested corrections

Postby Robertspark » Tue Nov 01, 2016 2:38 pm

Thanks Gerry, I'll update them, not started on a plugin section, need to issue the updates as there are a couple of extra fields, buttons and LEDs in v027
Rob

Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
UC400eth, UC300eth, UCCNC v1.2046, Neuron Lite.
UCCNC Macro Manual
Robertspark
 
Posts: 617
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: Macro_capability_detailed.htm - suggested corrections

Postby ger21 » Wed Nov 23, 2016 2:31 am

AS3.Getfielddouble(****)

Also, this thread should be moved. Took me 10 minutes to find it.
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 810
Joined: Sat Sep 03, 2016 2:17 am

Re: Macro_capability_detailed.htm - suggested corrections

Postby Robertspark » Wed Nov 23, 2016 9:06 am

Could someone please move this to the documentation section?

[May be a good idea to do a bit of housekeeping as there is stuff like the ISOBOB that could be moved to hardware, etc etc]

Thanks,
Rob

Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
UC400eth, UC300eth, UCCNC v1.2046, Neuron Lite.
UCCNC Macro Manual
Robertspark
 
Posts: 617
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

PreviousNext

Return to User Documentation

Who is online

Users browsing this forum: No registered users and 1 guest