- Posts: 216
- Thank you received: 0
How to read "Machine configuration directory" in HAL userspace component
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 to join the conversation.
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 to join the conversation.
Time to create page: 0.034 seconds
