PIPE commands for TNGv2:
Code:
#Run & Exit
exit Exits program
#Version & Profile Info
version Returns version info
profname Returns profile name
description Returns description from settings
#Screen
isvisible Returns 1 is main window is visible
show Shows main window
hide Hides main window
setprogress <value> Sets progress bar value
setstatus <text> Sets status bar text
print <text> Shows message box
msg <text> Prints text to output window
#Parameters & Eval
param <name>=<value> Sets parameter <name> to <value>
param <name> Returns parameter <name>
evaluate <expr> Evaluates expression <expr>
#State
islicensevalid Returns 1 if license is valid
isuiready Returns 1 if UI in not busy
iscontrollerready Returns 1 if controller is connected and ready to use
iscontrollerrunning Returns 1 if controller is running
isprogramloaded Returns 1 if g - gode program is loaded
isidle Returns 1 if machine is idle
isestop Returns 1 if e-stop is active
isstop Returns 1 if stop is active
ispause Returns 1 if pause is active
#Machine Command status
isestopenabled Returns 1 if e - stop command is enabled
isstopenabled Returns 1 if stop command is enabled
ispauseenabled Returns 1 if pause command is enabled
isstartenabled Returns 1 if start command is enabled
isoutputenabled Returns 1 if output command is enabled
iscodeenabled Returns 1 if script code commands is enabled
iscodeexenabled Returns 1 if script code commands is enabled
isopenenabled Returns 1 if open command is enabled
iscloseenabled Returns 1 if close command is enabled
#Machine Commands
estop Toggles e-stop
estop_enable Enables e-stop
estop_disable Disables e-stop
stop Performs stop
pause Performs pause
pause_enable Enables pause
pause_disable Disables pause
start Performs start
close Closes opened g-code
#Machine Commands Generic
getcmdcount Returns command count
getcmdid <name> Returns command id command name
getcmdidmdi <mdi> Returns command id from mdi shortcut
iscmdenabled <id> Returns 1 if command is enabled and can be executed
iscmdchecked <id> Returns 1 if command is currently active
getcmdname <id> Returns command name
getcmddispname <id> Returns command display name
getcmddispnamepath <id> Returns command display name with path
cmdexec <id> Executes command
cmdexecstr <id>|<str> Executes command with string argument
cmdexecval <id>|<val> Executes command with double argument
cmdexecval2 <id>|<num> <val> Executes command with int and double argument
#Helpers
openfile <fn> Opens g-code from file
opencode <code> Opens g-code from string
testfile <fn> Tests g-code from file
testcode <code> Tests g-code from text
startfile <fn> Starts g-code from file
startcode <code> Starts g-code from text
#G-Code
filename Returns opened filename
linecount Returns line count
line <row> Returns line
linenum Returns current line number
#Info
isinitialized Returns 1 if controller is initialized
serial Returns controller serial number
hwversion Returns controller version number
swversion Returns software version number
versionvalid Returns 1 if controller version is correct
pos Returns position for all axes
posx Returns position for X axis
posy Returns position for Y axis
posz Returns position for Z axis
posa Returns position for A axis
posb Returns position for B axis
posc Returns position for C axis
posu Returns position for U axis
posv Returns position for V axis
posw Returns position for W axis
posmotor Returns motor position for all axes
posmotorx Returns motor position for X axis
posmotory Returns motor position for Y axis
posmotorz Returns motor position for Z axis
posmotora Returns motor position for A axis
posmotorb Returns motor position for B axis
posmotorc Returns motor position for C axis
posmotoru Returns motor position for U axis
posmotorv Returns motor position for V axis
posmotorw Returns motor position for W axis
speed Returns current speed
accel Returns current acceleration
spindle Returns current spindle RPM
spindle_idx Returns current spindle RPM from index
spindle_enc Returns current spindle RPM from encoder
spindle_set Returns current spindle RPM as set in g - code
inputhex Returns value of INPUT in hex format
input Returns value of INPUT
input1 Returns value of INPUT 1 pin
input2 Returns value of INPUT 2 pin
input3 Returns value of INPUT 3 pin
input4 Returns value of INPUT 4 pin
input5 Returns value of INPUT 5 pin
input6 Returns value of INPUT 6 pin
input7 Returns value of INPUT 7 pin
input8 Returns value of INPUT 8 pin
joghex Returns value of JOG in hex format
jog Returns value of JOG
jog1 Returns value of JOG 1 pin
jog2 Returns value of JOG 2 pin
jog3 Returns value of JOG 3 pin
jog4 Returns value of JOG 4 pin
jog5 Returns value of JOG 5 pin
jog6 Returns value of JOG 6 pin
jog7 Returns value of JOG 7 pin
jog8 Returns value of JOG 8 pin
joga1 Returns value of JOG A1 pin
joga2 Returns value of JOG A2 pin
jogs Returns value of JOG S pin
jogpot Returns value of JOG POT
limithex Returns value of LIMIT in hex format
limit Returns value of LIMIT
limit1 Returns value of LIMIT 1 pin
limit2 Returns value of LIMIT 2 pin
limit3 Returns value of LIMIT 3 pin
limit4 Returns value of LIMIT 4 pin
limit5 Returns value of LIMIT 5 pin
limit6 Returns value of LIMIT 6 pin
limit7 Returns value of LIMIT 7 pin
limit8 Returns value of LIMIT 8 pin
limit9 Returns value of LIMIT 9 pin
outputhex Returns value of OUTPUT in hex format
output Returns value of OUTPUT
output1 Returns value of OUTPUT 1 pin
output2 Returns value of OUTPUT 2 pin
output3 Returns value of OUTPUT 3 pin
output4 Returns value of OUTPUT 4 pin
output5 Returns value of OUTPUT 5 pin
output6 Returns value of OUTPUT 6 pin
output7 Returns value of OUTPUT 7 pin
output8 Returns value of OUTPUT 8 pin
outputfreq1 Returns frequency of OUTPUT 1 pin
outputduty1 Returns duty cycle of OUTPUT 1 pin
outputfreq2 Returns frequency of OUTPUT 2 pin
outputduty2 Returns duty cycle of OUTPUT 2 pin
outputfreq3 Returns frequency of OUTPUT 6 pin
outputduty3 Returns duty cycle of OUTPUT 6 pin
aux1 Returns value of AUX 1 pin
aux2 Returns value of AUX 2 pin
aux3 Returns value of AUX 3 pin
aux4 Returns value of AUX 4 pin
buffer Returns amount of free buffer
bufferutil Returns buffer utilization