How to use outputs?

From the original Synthetos forum (2011–2025)

Started by vnuEndru on in TinyG Support. 5 replies, last activity Jun 17, 2017.

#

I cant understand it from github wiki, I`m using due with fb 100.26 and I want some outputs be 0 or 1. Is it possible in general? If so how can I do that?

Staff #

It's not 100% clear what you seek to do, so some Q&A first.
To reduce confusion, I'll seek to use terminology as defined in this wiki

https://github.com/synthetos/g2/wiki/Digital-IO

Take note that the capabilities as described in Digital I/O and fv >= 0.99 are new to all of us and evolving.

You want some outputs to be 0 or 1, so the pins will be configured as digital outputs which is supported in $fv =0.99.

For simplicity, consider digital outputs of two types

Controlled by Gcode

Examples would be SPIN (spindle on/off) and Cool (coolant on/off). Digital outputs of this type are pre-assigned by default to specific pins and bound to specific Gcode commands

Controlled by CAM (Computer Aided Machining)

Example would be an output controlled by the user for a user specific function.

Which of these two types of outputs are you asking about, Gcode controlled or CAM controlled?

I'll stop here as this could head off in different directions depending on your response.

It would be useful if you would provide a parameter listing for your particular setup, send $$ to G2core from a terminal window, then copy/paste the resulting output to a text file and post the text file to a cloud drive of your liking (Gdrive, Dropbox, etc) and provide a URL here for viewing.

Also, have a look at

https://github.com/synthetos/g2/issues

Issues is a place to ask detailed questions, raise potential bugs, etc and is closer to the developers. Some of the topics will likely be informative as GPIO evolves.

#

Sorry for so late reply. So I talking about CAM controlled outputs, if I use Arduino due what is the cam outputs pinouts?

#

Yes I'm looking for cam outputs, as you say, not gcode.
Here https://github.com/synthetos/g2/wiki/Digital-IO.

{out1:1} Write digital output to ON state
{out2:1}
...
{outN:1}

Where are this "out1-outn" on Arduino board ?

Staff #

I am unaware of any CAM software (e.g. Chilipepper) that has yet developed a higher level interface to the enhanced I/O capability available in $fv >=0.99 firmware.
To achieve what you want, you will have to
Step one : Understand Motate
Step Two : Code up an out x:y and rebuild the I/O structure with a new Motate Build
Step three: For now, you will be able to toggle the new I/O using a terminal command line interface to G2Core

The DUE is somewhat Pin out limited, as you can tell.
Safe to assume that the target for this enhance I/O structure is yet to be released hardware or custom designs built around DUE compatible compute engines.
But limited use based on a DUE is possible.

This topic is from the original forum (June 2017). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.