2 scripting lanuages ???

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

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: 639
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 106 times
M20910.txt
(3.49 KiB) Downloaded 108 times
dezsoe
 
Posts: 639
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.2108, Neuron Lite
UCCNC v1.2108 Macro Manual
Robertspark
 
Posts: 1208
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 4 guests