Micros and spreadsheet

More
18 Nov 2014 12:11 #53185 by car84
Micros and spreadsheet was created by car84
I want to write a micro that will pull variables from a spread sheet and update from the spread sheet each cycle. Is thIs possible and does anyone have examples?

Please Log in or Create an account to join the conversation.

More
18 Nov 2014 17:56 #53190 by ArcEye
Replied by ArcEye on topic Micros and spreadsheet
Hi

There are no macros in Linuxcnc, which I assume is what you mean.
You can use binary programs, bash scripts, python etc, but none of them is called in the same way as the visual basic macros in mach.

A spreadsheet is a GUI representation of numerical data for humans to be able to grasp, it is not an ideal format for any data for machining.
Whatever produces this spreadsheet would be better programmed to do it in at least a csv format, if not actually outputting gcode.

................update from the spread sheet each cycle


depends what you mean by 'each cycle'

Can you arbitrarily, externally change values that the interpreter has already used to read ahead and plan the next moves, in mid program, no.

Can you run a program, then re-write the program based upon new data and run the new program, yes.

If want to make movements based upon external data, which is unknown at the point of commencement, then you are really into setting up a psuedo DNC
and making all the calls through MDI, one at a time.

Without more info, cannot be specific.

regards

Please Log in or Create an account to join the conversation.

More
18 Nov 2014 23:51 #53195 by car84
Replied by car84 on topic Micros and spreadsheet
The machine will run the same program all the time the only changes will be distance the dimensions will come from an excell spreadsheet

Please Log in or Create an account to join the conversation.

Time to create page: 0.177 seconds
Powered by Kunena Forum