- LinuxCNC
- General LinuxCNC Questions
- How to read "Machine configuration directory" in HAL userspace component
How to read "Machine configuration directory" in HAL userspace component
- udoS
- Offline
- Elite Member
Less
More
- Posts: 216
- Thank you received: 25
17 Feb 2023 10:20 #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
17 Feb 2023 14:18 #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.
- LinuxCNC
- General LinuxCNC Questions
- How to read "Machine configuration directory" in HAL userspace component
Time to create page: 0.046 seconds