How to read "Machine configuration directory" in HAL userspace component

More
17 Feb 2023 10:20 #264685 by udoS
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

Please Log in or Create an account to join the conversation.

More
17 Feb 2023 14:18 #264692 by udoS
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;
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.196 seconds
Powered by Kunena Forum