Oops,
I should have mentioned that the code snippet comes from the file
src/emc/usr_intf/emcsched.cc.
Regards,
Eric
------------>Code Snippet<--------------------------
if (sendProgramOpen(fileStr) != 0) {
queueStatus = qsError;
printf("Could not open program\n");
}
sendMdi();
sendMdiCmd("G92.1\n");
if (q.front().getZone() != 0) {
switch (q.front().getZone()) {
case 1: sendMdiCmd("G54\n"); break;
case 2: sendMdiCmd("G55\n"); break;
case 3: sendMdiCmd("G56\n"); break;
case 4: sendMdiCmd("G57\n"); break;
case 5: sendMdiCmd("G58\n"); break;
case 6: sendMdiCmd("G59\n"); break;
case 7: sendMdiCmd("G59.1\n"); break;
case 8: sendMdiCmd("G59.2\n"); break;
case 9: sendMdiCmd("G59.3\n");
}
}
else {
q.front().getOffsets(x, y, z);
sendFeedOverride(((double) q.front().getFeedOverride()) /
100.0);
sendSpindleOverride(((double) q.front().getSpindleOverride()) /
100.0);
sprintf(cmd, "G0 X%f Y%f Z%f\n", x, y, z);
sendMdiCmd(cmd);
sendMdiCmd("G92 X0 Y0 Z0\n");
}
if (sendTaskPlanInit() != 0) {
queueStatus = qsError;
printf("Could not send Task Plan Init\n");
}
sendAuto();
if (sendProgramRun(0) != 0) {
queueStatus = qsError;
printf("Could not change state to run\n");
}
------------>End Code Snippet<----------------------
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers