CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 20, 2019, 20:14:05 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: How to create a MOP inserting G-Code by script (Python) ?  (Read 617 times)
gmoo
Storm Trooper
***
Offline Offline

Posts: 106

Jam it !


View Profile
« on: March 16, 2019, 11:03:30 am »

Dear CAMBAM-Jedis,

(maybe I´m not asking the correct question or I´m not using the correct terms.)

I try to make a MOP doing nothing except inserting a script-generated G-Code,
f.e. moving to a specific position or start tool length mesurent, moving home, bring a beer ...

Manually I tried this :
- Fill MOP´s G-Code header and clear the Primitives ID-List => Error
- using a NC MOP, but this wants to read an existing file

Any ideas out there in CAMBAM world ?

Best regards

Berhard
Logged

best regards

Bernhard
dave benson
CNC Jedi
*****
Offline Offline

Posts: 1133


View Profile
« Reply #1 on: March 16, 2019, 11:51:09 am »

Hi Bernhard
You could use Eddy's Relocate Plugin.
Dave


* Reply for Bernhard.PNG (140 KB, 997x613 - viewed 64 times.)
Logged
dwc
CNC Jedi
*****
Offline Offline

Posts: 536



View Profile WWW
« Reply #2 on: March 16, 2019, 14:11:18 pm »

It sounds to me like the simplest way would be to make text files of the output of each of your scripts and to then include them using the NC MOP.
Don
Logged

Garyhlucas
CNC Jedi
*****
Offline Offline

Posts: 1281


View Profile
« Reply #3 on: March 16, 2019, 14:14:07 pm »

Don,
You beat me to it! Those files could then be reused just by calling them and you could edit them without editing the script that generated them.
Logged

Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/
gmoo
Storm Trooper
***
Offline Offline

Posts: 106

Jam it !


View Profile
« Reply #4 on: March 16, 2019, 19:31:33 pm »

Creating textfiles and loading into an NC MOP will shurely work ... but this is really not elegant !

Logged

best regards

Bernhard
gmoo
Storm Trooper
***
Offline Offline

Posts: 106

Jam it !


View Profile
« Reply #5 on: March 18, 2019, 07:21:22 am »

Thank you all !

Not the best way, but this does what I want :

Just sending the text to following MOP´s CustomMOPHeader.
Logged

best regards

Bernhard
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.103 seconds with 19 queries.

Copyright © 2018 HexRay Ltd. | Sitemap