Hi at all, after 1 or 2 years I resumed my old project to have a C ++ application made by c++. On my pc I have Lcnc2.8 userspace ... (no rt no preeempt, only for test).
I am willing to make my work available to everyone, also because I need help to learn how to deal with Linuxcnc files. Now, inspired by the old xemc.cc, I'm trying to send commands from my application to a linuxcnc instance that runs on my pc (userspace). For debug use of course axis launched from terminal. I have been trying to understand for two days, but being able to draw only from the old xemc files may be that today things have changed. In particular I realized that the code to send commands is this for example: EMC_TASK_SET_STATE *state_msg; state_msg->state = EMC_TASK_STATE_OFF; state_msg->serial_number = ++emcCommandSerialNumber; emcCommandBuffer->write(state_msg); Only that every time I use it I get the error segmentation error (core dump ..) The reading part of the value of the 3 axes does not give any problem. obviusly I'm reading "motion.traj.position.tran(x-y-z)" ... wich I think is the value of the axis trajectory ... or is the value of the axis or the joint? How can read the "other" values? Real thanks for any suggestion bkt _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers