How to use outputs?

Home Forums TinyG TinyG Support How to use outputs?

Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10398
    vnuEndru
    Member

    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?

    #10399
    cmcgrath5035
    Moderator

    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

    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

    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.

    #10412
    vnuEndru
    Member

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

    #10413
    cmcgrath5035
    Moderator

    This 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?

    #10414
    vnuEndru
    Member

    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 ?

    #10415
    cmcgrath5035
    Moderator

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.