600,838 active members*
2,988 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1

    OUTPUT On/Off EXPRESSION

    Hello,
    (I'm using Planet CNC TNG SW, MK3 Controller, Output Board 3/9).

    I don't find a way for activate my output relè using code of Expression, for example if i write:

    #Loop
    if(_hw_input|3, exec("#Input3"));

    #Input3
    stop();
    output(3, 1);

    planetcnc say: "Unknown Function 'output'. Line: 'output(3, 1); Expression Function '#Input3 removed!"

    Someone know correct syntax/method for activate Output Relè directly from Expression code?

    Here i saw some tutorials but it doesn't work:
    https://www.cnc.zone/expr/functions/func-output

    I've been working on this machine for a while now but some things are still not very clear to me so thankyou for any replace.

  2. #2
    Join Date
    Mar 2017
    Posts
    1390

    Re: OUTPUT On/Off EXPRESSION

    Which version are you using?

  3. #3
    I'm using the last version realised on December 2024 for linux system.
    I find that if i write:
    out(out-num, state);
    it work correctly, for example:
    out(2, 1); switch on output 2
    out(3, 0); switch off output 3

  4. #4
    Join Date
    Mar 2017
    Posts
    1390

    Re: OUTPUT On/Off EXPRESSION

    Latest version uses "output", previous version used "out".
    Some functions were renamed to be compliant with code style standards.

Similar Threads

  1. Arithmetic expression is gcode?
    By mbradford in forum PlanetCNC
    Replies: 8
    Last Post: 10-24-2020, 11:57 PM
  2. Calling a macro in an expression
    By 01isnot.01 in forum G-Code Programing
    Replies: 4
    Last Post: 01-14-2013, 08:43 AM
  3. Illegal Expression in line
    By hartan in forum Fadal
    Replies: 9
    Last Post: 02-19-2012, 02:02 PM
  4. Mazak Expression
    By iNk in forum Mazak, Mitsubishi, Mazatrol
    Replies: 1
    Last Post: 01-17-2006, 05:01 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •