mcjGRBL

________________________________________________________________________

Introduction

________________________________________________________________________

Also See mcjTTY for a version without GRBL addons

Head This Way for the new version which works with the Marlin Firmware

and includes instructions about hooking up a Laser Diode Module Driver

https://sites.google.com/site/mcasualsdazscripts9/mcjgrbl2

If you have a GRBL-enabled arduino, or in fact anything that "talks" over the serial port of your PC

then using this kit of software, you can communicate with your device from Daz Studio

This is for Windows PCs only ... unless someone can come up with a simple Terminal for Macs

________________________________________________________________________

Installation

________________________________________________________________________

The installation zip packages can be found at the bottom of this web page in the attachments section

The 2 important parts:

  • mcjCommtty.exe A PC/DOS program kown as a "terminal" It is the communication bridge between the Arduino and DazStudio
  • mcjGRBL.dsa A Daz Studio script which sends, receives and displays data to/from the arduino through mcjCommTty with some GRBL-specific features

mcjGRBL.zip contains mcjGRBL.dsa

Typically it means:

c:\program files\daz\studio\contents

or

C:\Program Files (x86)\DAZ\Studio\content

or

C:\Users\YOURUSERNAME\Documents\DAZ 3D\Studio\My Library\

if installed properly, mcjGRBL.dsa will be accessible in Daz Studio in the contents tab as

studio/scripts/mcasual/

or

My Library/scripts/mCasual

mcjComtty.zip contains mcjCommtty.exe and mcjCommtty.cpp the source code

the easiest is to unzip this in YourDazContentLibrary/scripts/mCasual

because by default that's where mcjGRBL will expect to find it

but you can place it where you please!

________________________________________________________________________

Version History

________________________________________________________________________

February 3rd 2018 7:07 pm Release

________________________________________________________________________

Requirements

________________________________________________________________________

- PC running Windows

- An arduino or in fact anything that can send data to your PC through one of the COM ports

________________________________________________________________________

Instructions

________________________________________________________________________

Note that this script is mainly intended as a base

upon which daz script programmers can develop

The script does not detect the COM port your device uses

so get the COM port from, for example the Arduino IDE

launch mcjGRBL

set the com port and baud rate

if it's not already done, press the "Select Server" button and specify the location of mcjComtty.exe

press the "Start Server" button

You can use the "Type Here" field to send commands

There's also a "Send File" option

compared to mcjTTY, i added some flow control/pacing, the script waits for an "ok" before sending the next line

for tiny grbl files it worked fine

===================

The GRBL settings

although you could use a command like "$0=1000 to set GRBL parameter 0

mcjGRBL obtains the list of parameters when you launch the script

then when you select one of those parameters in the drop down-list

you have the opportunity to change the value ( dont forget to click the 'set' button.

After sending the command, the script obtains and renews the whole list

________________________________________________________________________

License and credits for mcjCommtty.exe

________________________________________________________________________

copyright 2018 mCasualJacques

permission to use in other programs is granted.

this is an almost unmodified version of commtty.c

by Robert Mashlan

copyright 1996 Robert Mashlan rmashlan@r2m.com

permission to use in other programs is granted.

http://nersp.nerdc.ufl.edu/~esi4161/files/commtty.c

________________________________________________________________________

// License and credits for mcjGRBL.dsa

________________________________________________________________________

// mcjGRBL.dsa by mCasual/Jacques c2018

// You can use this script freely for personal or commercial use.

// You may not sell, resell, sub-license or rent this script in any way.

// you may credit this script to mCasual/Jacques

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,

// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES

// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND

// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT

// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,

// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR

// OTHER DEALINGS IN THE SOFTWARE.

__________________________________________