2 scripting lanuages ???

Post anything you want to discuss with others about the software.

Re: 2 scripting lanuages ???

Postby Vmax549 » Fri Mar 30, 2018 12:59 am

So which code is better C# or VB :twisted:

You would have had to be part of the great Mach3 flaming wars to appreciate that remark.

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

Re: 2 scripting lanuages ???

Postby cncdrive » Fri Mar 30, 2018 1:15 am

Haha, it's like Iphone or Android phone. :)
cncdrive
Site Admin
 
Posts: 2113
Joined: Tue Aug 12, 2014 11:17 pm

Re: 2 scripting lanuages ???

Postby Vmax549 » Fri Mar 30, 2018 1:45 am

Balazs, do you have an example of a semi complex VB macro script in UCCNC we can look at??

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

Re: 2 scripting lanuages ???

Postby ger21 » Fri Mar 30, 2018 3:50 am

Is it VB.net,or VB script like Mach3?
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 1040
Joined: Sat Sep 03, 2016 2:17 am

Re: 2 scripting lanuages ???

Postby Robertspark » Fri Mar 30, 2018 5:50 am

I've got use to c#, but I can definitely see the advantage of offering both VB and c# especially in offering something else to improve the attractiveness of uccnc and market share.

Like everything I've dabbled with VB in Microsoft excel. (Learnt and forgot it on the fly... Mainly copied and pasted + tweaked)

It would be useful to see a semi complex macro (ie a few lines of code) in c# converted to VB so users could see what is involved.

I found VB cypress fairly easy to understand or learn, but I never did a large number of macros with it. C# seemed to be a little more difficult to learn / took longer on the uptake.... The pesky ";" at the end of line in c# generated a lot of errorlog messages for me, where as VB cypress was more about code than format.

It will still be a learning curve from mach3 but probably an easier one plus help gain interest in uccnc where the complaint was ... It's not VB (more than its no longer being developed haha).
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 820
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: 2 scripting lanuages ???

Postby dezsoe » Fri Mar 30, 2018 8:57 am

Terry,

Could you send that CE code with so much errors? I have only a few Mach macros, but I didn't find any language level problems, only Mach functions that don't exist.
dezsoe
 
Posts: 496
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: 2 scripting lanuages ???

Postby dezsoe » Fri Mar 30, 2018 9:03 am

Vmax549 wrote:So which code is better C# or VB :twisted:

You would have had to be part of the great Mach3 flaming wars to appreciate that remark.

(;-) TP

This question is good. :) It can start war of religions. :) But don't forget: the two languages complie to the same object code, which is .net! In fact, there's no differece at the end, just the input syntax.
dezsoe
 
Posts: 496
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: 2 scripting lanuages ???

Postby dezsoe » Fri Mar 30, 2018 9:28 am

Robertspark wrote:It would be useful to see a semi complex macro (ie a few lines of code) in c# converted to VB so users could see what is involved.

Here are 2 macros with exactly same code. M20910 is in C#, M20912 is in VB. To run these macros you have to home the machine. These macros check the homing precision by rehoming the axes. If you run some stress test g-code and one of these macros, you can check if the homing went away.
Attachments
M20912.txt
(3.7 KiB) Downloaded 57 times
M20910.txt
(3.49 KiB) Downloaded 52 times
dezsoe
 
Posts: 496
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: 2 scripting lanuages ???

Postby Robertspark » Fri Mar 30, 2018 10:34 am

Thanks Dezsoe :D Just what I was looking for {I thought you'd post something :D :D )
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 820
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Previous

Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 1 guest