Axis NGCGUI 101
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 333
- Thank you received: 26
17 Mar 2020 11:25 - 17 Mar 2020 12:27 #160539
by Dinuka_Shehan
Axis NGCGUI 101 was created by Dinuka_Shehan
2nd time posting on this matter.no one help me.
I add this code to .ini file.
[DISPLAY]
DISPLAY = gmoccapy
# DISPLAY = axis
# DISPLAY = gscreen
# DISPLAY = tkemc
PROGRAM_PREFIX = ../../nc_files
PREFERENCE_FILE_PATH = gmoccapy_preferences
CYCLE_TIME = 150
# NGCGUI Entries
# Note: TKPKG (one or more) specifies tcl/tk apps to embed in axis tab pages
TKPKG = Ngcgui 1.0
NGCGUI_FONT = Helvetica -10 normal
EMBED_TAB_NAME = NGCGUI
EMBED_TAB_LOCATION = ntb_user_tabs
EMBED_TAB_COMMAND = gladevcp -x {XID} ./pyngcgui_popupkeyboard.ui
NGCGUI_PREAMBLE = lathe_std.ngc
NGCGUI_SUBFILE = threading.ngc
NGCGUI_SUBFILE = threading-metric.ngc
NGCGUI_SUBFILE = npt_pipe.ngc
NGCGUI_SUBFILE = turning.ngc
NGCGUI_SUBFILE = taper-od.ngc
NGCGUI_SUBFILE = facing.ngc
NGCGUI_SUBFILE = knurling.ngc
NGCGUI_OPTIONS = nonew noremove
after that this error message came.
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.7.0
Machine configuration directory is '/home/shehan/linuxcnc/configs/shehan'
Machine configuration file is 'shehan.ini'
INIFILE=/home/shehan/linuxcnc/configs/shehan/shehan.ini
PARAMETER_FILE=
TASK=milltask
HALUI=halui
DISPLAY=
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(REL): ./shehan.hal
Found file(REL): ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program:
Can't execute DISPLAY program
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=6696
Killing task milltask, PID=6755
task: 11 cycles, min=0.000012, max=0.010377, avg=0.006814, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Can not find -sec RS274NGC -var PARAMETER_FILE -num 1
Can not find -sec DISPLAY -var DISPLAY -num 1
Can not find -sec DISPLAY -var INTRO_GRAPHIC -num 1
Can not find -sec DISPLAY -var INTRO_TIME -num 1
.
6696
PID TTY STAT TIME COMMAND
6755
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
I tried several days on this matter.changes have made in ini file not correct,always ended with an error.I am fed up now for finding solutions.can anyone diagnose the problem why every-time pop up an error.
i downloaded .ngc files from BigjohnT's website.
after that tabs found but data on it.
Can anyone write a ini file for me.
NGCGUI documentation is not understand clearly to me.
I am using axis gui.
XZ axis for lathe mode
waiting for quick answers!
I add this code to .ini file.
[DISPLAY]
DISPLAY = gmoccapy
# DISPLAY = axis
# DISPLAY = gscreen
# DISPLAY = tkemc
PROGRAM_PREFIX = ../../nc_files
PREFERENCE_FILE_PATH = gmoccapy_preferences
CYCLE_TIME = 150
# NGCGUI Entries
# Note: TKPKG (one or more) specifies tcl/tk apps to embed in axis tab pages
TKPKG = Ngcgui 1.0
NGCGUI_FONT = Helvetica -10 normal
EMBED_TAB_NAME = NGCGUI
EMBED_TAB_LOCATION = ntb_user_tabs
EMBED_TAB_COMMAND = gladevcp -x {XID} ./pyngcgui_popupkeyboard.ui
NGCGUI_PREAMBLE = lathe_std.ngc
NGCGUI_SUBFILE = threading.ngc
NGCGUI_SUBFILE = threading-metric.ngc
NGCGUI_SUBFILE = npt_pipe.ngc
NGCGUI_SUBFILE = turning.ngc
NGCGUI_SUBFILE = taper-od.ngc
NGCGUI_SUBFILE = facing.ngc
NGCGUI_SUBFILE = knurling.ngc
NGCGUI_OPTIONS = nonew noremove
after that this error message came.
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.7.0
Machine configuration directory is '/home/shehan/linuxcnc/configs/shehan'
Machine configuration file is 'shehan.ini'
INIFILE=/home/shehan/linuxcnc/configs/shehan/shehan.ini
PARAMETER_FILE=
TASK=milltask
HALUI=halui
DISPLAY=
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(REL): ./shehan.hal
Found file(REL): ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program:
Can't execute DISPLAY program
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=6696
Killing task milltask, PID=6755
task: 11 cycles, min=0.000012, max=0.010377, avg=0.006814, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Can not find -sec RS274NGC -var PARAMETER_FILE -num 1
Can not find -sec DISPLAY -var DISPLAY -num 1
Can not find -sec DISPLAY -var INTRO_GRAPHIC -num 1
Can not find -sec DISPLAY -var INTRO_TIME -num 1
.
6696
PID TTY STAT TIME COMMAND
6755
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
I tried several days on this matter.changes have made in ini file not correct,always ended with an error.I am fed up now for finding solutions.can anyone diagnose the problem why every-time pop up an error.
i downloaded .ngc files from BigjohnT's website.
after that tabs found but data on it.
Can anyone write a ini file for me.
NGCGUI documentation is not understand clearly to me.
I am using axis gui.
XZ axis for lathe mode
waiting for quick answers!
Attachments:
Last edit: 17 Mar 2020 12:27 by Dinuka_Shehan.
Please Log in or Create an account to join the conversation.
- bbsr_5a
- Offline
- Platinum Member
Less
More
- Posts: 544
- Thank you received: 105
18 Mar 2020 07:39 #160628
by bbsr_5a
Replied by bbsr_5a on topic Axis NGCGUI 101
put all the ngc as special face.ngc to the nc_files folder
only one accepted
means no other in the soubroutine path same name
only one accepted
means no other in the soubroutine path same name
Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 333
- Thank you received: 26
18 Mar 2020 15:53 #160648
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic Axis NGCGUI 101
i put all ngc files in a folder,named it as subroutines.
File not in search path error came all ngc files.
After ok them all and axis gui appear but tabs are blank.no boxes to input numbers.
File not in search path error came all ngc files.
After ok them all and axis gui appear but tabs are blank.no boxes to input numbers.
Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 333
- Thank you received: 26
19 Mar 2020 00:45 #160696
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic Axis NGCGUI 101
Got stuck in ngcgui.
Can experts help me?
Can experts help me?
Please Log in or Create an account to join the conversation.
Time to create page: 0.078 seconds