- Posts: 19899
- Thank you received: 4655
How to read "Machine configuration directory" in HAL userspace component
- andypugh
- Offline
- Moderator
-
Less
More
3 years 10 months ago #259401
by andypugh
External command from where?
pkill -3 axis
will work, but seems to always pop-up the error report dialog box in my testing.
Replied by andypugh on topic How to read "Machine configuration directory" in HAL userspace component
how can you shut down Linuxcnc in a controlled way with an external command;
External command from where?
pkill -3 axis
will work, but seems to always pop-up the error report dialog box in my testing.
Please Log in or Create an account to join the conversation.
- udoS
- Offline
- Elite Member
-
Less
More
- Posts: 216
- Thank you received: 25
3 years 10 months ago - 3 years 10 months ago #259429
by udoS
Replied by udoS on topic How to read "Machine configuration directory" in HAL userspace component
[justify]
@andypugh
Hi andypugh,
"pkill -3 axis" works OK and I don't get that popup window;
But only if you use axis; running in the backyard so to speek;
It looks like everything is cleaned out;
I can send it with QProcess;
I thought there would be an internal Lcnc function
or a NML command to shut it down in a controlled way;
or else I will stick to the kill;
I'm starting LinuxCNC out of my Qt c++ app because I need access to the HAL / PINS;
Thanks
Best Regards
p.s. is there a privat channal to talk; I have a realy basic question regarding LinuxCNC;
or else a mail uschlicher at t-online dot de
[/justify] It looks like everything is cleaned out;
I can send it with QProcess;
I thought there would be an internal Lcnc function
or a NML command to shut it down in a controlled way;
or else I will stick to the kill;
I'm starting LinuxCNC out of my Qt c++ app because I need access to the HAL / PINS;
Thanks
Best Regards
p.s. is there a privat channal to talk; I have a realy basic question regarding LinuxCNC;
or else a mail uschlicher at t-online dot de
Last edit: 3 years 10 months ago by udoS.
Please Log in or Create an account to join the conversation.
- udoS
- Offline
- Elite Member
-
Less
More
- Posts: 216
- Thank you received: 25
3 years 8 months ago #264685
by udoS
Replied by udoS on topic How to read "Machine configuration directory" in HAL userspace component
Hi to ALL;
How do I get the info from Lcnc (nml ? ) what the gantry joints are in relation to the axis;
Like in axis at startup you see the 4 joints but after REF you have your 3 axis. No in manual mode you can only move e.g. joint1 and joint3 together;
thanks
How do I get the info from Lcnc (nml ? ) what the gantry joints are in relation to the axis;
Like in axis at startup you see the 4 joints but after REF you have your 3 axis. No in manual mode you can only move e.g. joint1 and joint3 together;
thanks
Please Log in or Create an account to join the conversation.
- udoS
- Offline
- Elite Member
-
Less
More
- Posts: 216
- Thank you received: 25
3 years 8 months ago #264692
by udoS
Replied by udoS on topic How to read "Machine configuration directory" in HAL userspace component
Oh, and about the
read "Machine configuration directory"
You can get from: emcStatusTaskIniFilename from nml;
like this:
char emcStatusTaskIniFilename[255];
EMC_STAT *emcStatus = static_cast<EMC_STAT*>(_nmlStat->get_address());
emcStatusTaskIniFilename[0] = 0;
strncpy(emcStatusTaskIniFilename, emcStatus->task.ini_filename, sizeof(emcStatusTaskIniFilename));
emcStatusTaskIniFilename and there you have it;
read "Machine configuration directory"
You can get from: emcStatusTaskIniFilename from nml;
like this:
char emcStatusTaskIniFilename[255];
EMC_STAT *emcStatus = static_cast<EMC_STAT*>(_nmlStat->get_address());
emcStatusTaskIniFilename[0] = 0;
strncpy(emcStatusTaskIniFilename, emcStatus->task.ini_filename, sizeof(emcStatusTaskIniFilename));
emcStatusTaskIniFilename and there you have it;
Please Log in or Create an account to join the conversation.
Time to create page: 0.188 seconds