Hello Guest it is May 03, 2024, 10:53:43 PM

Author Topic: system command in the gcode  (Read 293 times)

0 Members and 1 Guest are viewing this topic.

system command in the gcode
« on: March 30, 2024, 12:33:07 PM »
hello.

i have a custom mcode that captures a camera image, its basically running a system command to a command line image capture tool.
the macro create a unique filename for each images from the date_time_xyz then runs the capture utility

I was wondering if system commands could be called directly from the code?

Offline TPS

*
  •  2,507 2,507
    • View Profile
Re: system command in the gcode
« Reply #1 on: March 30, 2024, 12:52:17 PM »
this is creating a string with date time xcoord ycoord zcoord

Code: [Select]
mystring = Date() & "_" & Time() & "_X_" & GetOEMDRO(800) & "_Y_" & GetOEMDRO(801) & "_Z_" & GetOEMDRO(802)

msgbox mystring
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.