Home › Forums › TinyG › TinyG Support › How to use outputs?
- This topic has 5 replies, 2 voices, and was last updated 7 years, 5 months ago by cmcgrath5035.
-
AuthorPosts
-
May 23, 2017 at 9:38 am #10398vnuEndruMember
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?
May 24, 2017 at 6:21 am #10399cmcgrath5035ModeratorIt’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 wikiTake 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
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.
June 17, 2017 at 4:57 am #10412vnuEndruMemberSorry for so late reply. So I talking about CAM controlled outputs, if I use Arduino due what is the cam outputs pinouts?
June 17, 2017 at 8:39 am #10413cmcgrath5035ModeratorThis is a somewhat dated, but still accurate(I think) pinout for G2core when compiled for Gshield.
I see spin on/off, spindir, spinpwm and coolant, which are the leads supported from Gcode on tinyG.
You looking for something else?
June 17, 2017 at 10:42 am #10414vnuEndruMemberYes 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 ?
June 17, 2017 at 3:23 pm #10415cmcgrath5035ModeratorI 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 G2CoreThe 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. -
AuthorPosts
- You must be logged in to reply to this topic.