00001
00002
00003
00004
00005
00006
00007 #include "rcs.hh"
00008
00009
00010 #include "canon.hh"
00011 #include "emc.hh"
00012 #include "emcglb.h"
00013 #include "emcpos.h"
00014
00015
00016 void EmcPose_update(CMS *cms, EmcPose *x);
00017 void CANON_TOOL_TABLE_update(CMS *cms, CANON_TOOL_TABLE *x);
00018 void PmCartesian_update(CMS *cms, PmCartesian *x);
00019 void CANON_VECTOR_update(CMS *cms, CANON_VECTOR *x);
00020 void CANON_POSITION_update(CMS *cms, CANON_POSITION *x);
00021
00022
00023
00024
00025
00026
00027 int emcFormat(NMLTYPE type, void *buffer, CMS *cms)
00028 {
00029 switch(type)
00030 {
00031 case EMC_ABORT_TYPE:
00032 ((EMC_ABORT *) buffer)->update(cms);
00033 break;
00034 case EMC_AUX_ABORT_TYPE:
00035 ((EMC_AUX_ABORT *) buffer)->update(cms);
00036 break;
00037 case EMC_AUX_AIO_WRITE_TYPE:
00038 ((EMC_AUX_AIO_WRITE *) buffer)->update(cms);
00039 break;
00040 case EMC_AUX_DIO_WRITE_TYPE:
00041 ((EMC_AUX_DIO_WRITE *) buffer)->update(cms);
00042 break;
00043 case EMC_AUX_ESTOP_OFF_TYPE:
00044 ((EMC_AUX_ESTOP_OFF *) buffer)->update(cms);
00045 break;
00046 case EMC_AUX_ESTOP_ON_TYPE:
00047 ((EMC_AUX_ESTOP_ON *) buffer)->update(cms);
00048 break;
00049 case EMC_AUX_HALT_TYPE:
00050 ((EMC_AUX_HALT *) buffer)->update(cms);
00051 break;
00052 case EMC_AUX_INIT_TYPE:
00053 ((EMC_AUX_INIT *) buffer)->update(cms);
00054 break;
00055 case EMC_AUX_STAT_TYPE:
00056 ((EMC_AUX_STAT *) buffer)->update(cms);
00057 break;
00058 case EMC_AXIS_ABORT_TYPE:
00059 ((EMC_AXIS_ABORT *) buffer)->update(cms);
00060 break;
00061 case EMC_AXIS_ABS_JOG_TYPE:
00062 ((EMC_AXIS_ABS_JOG *) buffer)->update(cms);
00063 break;
00064 case EMC_AXIS_ACTIVATE_TYPE:
00065 ((EMC_AXIS_ACTIVATE *) buffer)->update(cms);
00066 break;
00067 case EMC_AXIS_ALTER_TYPE:
00068 ((EMC_AXIS_ALTER *) buffer)->update(cms);
00069 break;
00070 case EMC_AXIS_DEACTIVATE_TYPE:
00071 ((EMC_AXIS_DEACTIVATE *) buffer)->update(cms);
00072 break;
00073 case EMC_AXIS_DISABLE_TYPE:
00074 ((EMC_AXIS_DISABLE *) buffer)->update(cms);
00075 break;
00076 case EMC_AXIS_ENABLE_TYPE:
00077 ((EMC_AXIS_ENABLE *) buffer)->update(cms);
00078 break;
00079 case EMC_AXIS_HALT_TYPE:
00080 ((EMC_AXIS_HALT *) buffer)->update(cms);
00081 break;
00082 case EMC_AXIS_HOME_TYPE:
00083 ((EMC_AXIS_HOME *) buffer)->update(cms);
00084 break;
00085 case EMC_AXIS_INCR_JOG_TYPE:
00086 ((EMC_AXIS_INCR_JOG *) buffer)->update(cms);
00087 break;
00088 case EMC_AXIS_INIT_TYPE:
00089 ((EMC_AXIS_INIT *) buffer)->update(cms);
00090 break;
00091 case EMC_AXIS_JOG_TYPE:
00092 ((EMC_AXIS_JOG *) buffer)->update(cms);
00093 break;
00094 case EMC_AXIS_LOAD_COMP_TYPE:
00095 ((EMC_AXIS_LOAD_COMP *) buffer)->update(cms);
00096 break;
00097 case EMC_AXIS_OVERRIDE_LIMITS_TYPE:
00098 ((EMC_AXIS_OVERRIDE_LIMITS *) buffer)->update(cms);
00099 break;
00100 case EMC_AXIS_SET_AXIS_TYPE:
00101 ((EMC_AXIS_SET_AXIS *) buffer)->update(cms);
00102 break;
00103 case EMC_AXIS_SET_CYCLE_TIME_TYPE:
00104 ((EMC_AXIS_SET_CYCLE_TIME *) buffer)->update(cms);
00105 break;
00106 case EMC_AXIS_SET_FERROR_TYPE:
00107 ((EMC_AXIS_SET_FERROR *) buffer)->update(cms);
00108 break;
00109 case EMC_AXIS_SET_GAINS_TYPE:
00110 ((EMC_AXIS_SET_GAINS *) buffer)->update(cms);
00111 break;
00112 case EMC_AXIS_SET_HOME_TYPE:
00113 ((EMC_AXIS_SET_HOME *) buffer)->update(cms);
00114 break;
00115 case EMC_AXIS_SET_HOME_OFFSET_TYPE:
00116 ((EMC_AXIS_SET_HOME_OFFSET *) buffer)->update(cms);
00117 break;
00118 case EMC_AXIS_SET_HOMING_VEL_TYPE:
00119 ((EMC_AXIS_SET_HOMING_VEL *) buffer)->update(cms);
00120 break;
00121 case EMC_AXIS_SET_INPUT_SCALE_TYPE:
00122 ((EMC_AXIS_SET_INPUT_SCALE *) buffer)->update(cms);
00123 break;
00124 case EMC_AXIS_SET_MAX_OUTPUT_LIMIT_TYPE:
00125 ((EMC_AXIS_SET_MAX_OUTPUT_LIMIT *) buffer)->update(cms);
00126 break;
00127 case EMC_AXIS_SET_MAX_POSITION_LIMIT_TYPE:
00128 ((EMC_AXIS_SET_MAX_POSITION_LIMIT *) buffer)->update(cms);
00129 break;
00130 case EMC_AXIS_SET_MAX_VELOCITY_TYPE:
00131 ((EMC_AXIS_SET_MAX_VELOCITY *) buffer)->update(cms);
00132 break;
00133 case EMC_AXIS_SET_MIN_FERROR_TYPE:
00134 ((EMC_AXIS_SET_MIN_FERROR *) buffer)->update(cms);
00135 break;
00136 case EMC_AXIS_SET_MIN_OUTPUT_LIMIT_TYPE:
00137 ((EMC_AXIS_SET_MIN_OUTPUT_LIMIT *) buffer)->update(cms);
00138 break;
00139 case EMC_AXIS_SET_MIN_POSITION_LIMIT_TYPE:
00140 ((EMC_AXIS_SET_MIN_POSITION_LIMIT *) buffer)->update(cms);
00141 break;
00142 case EMC_AXIS_SET_OUTPUT_TYPE:
00143 ((EMC_AXIS_SET_OUTPUT *) buffer)->update(cms);
00144 break;
00145 case EMC_AXIS_SET_OUTPUT_SCALE_TYPE:
00146 ((EMC_AXIS_SET_OUTPUT_SCALE *) buffer)->update(cms);
00147 break;
00148 case EMC_AXIS_SET_UNITS_TYPE:
00149 ((EMC_AXIS_SET_UNITS *) buffer)->update(cms);
00150 break;
00151 case EMC_AXIS_STAT_TYPE:
00152 ((EMC_AXIS_STAT *) buffer)->update(cms);
00153 break;
00154 case EMC_COOLANT_ABORT_TYPE:
00155 ((EMC_COOLANT_ABORT *) buffer)->update(cms);
00156 break;
00157 case EMC_COOLANT_FLOOD_OFF_TYPE:
00158 ((EMC_COOLANT_FLOOD_OFF *) buffer)->update(cms);
00159 break;
00160 case EMC_COOLANT_FLOOD_ON_TYPE:
00161 ((EMC_COOLANT_FLOOD_ON *) buffer)->update(cms);
00162 break;
00163 case EMC_COOLANT_HALT_TYPE:
00164 ((EMC_COOLANT_HALT *) buffer)->update(cms);
00165 break;
00166 case EMC_COOLANT_INIT_TYPE:
00167 ((EMC_COOLANT_INIT *) buffer)->update(cms);
00168 break;
00169 case EMC_COOLANT_MIST_OFF_TYPE:
00170 ((EMC_COOLANT_MIST_OFF *) buffer)->update(cms);
00171 break;
00172 case EMC_COOLANT_MIST_ON_TYPE:
00173 ((EMC_COOLANT_MIST_ON *) buffer)->update(cms);
00174 break;
00175 case EMC_COOLANT_STAT_TYPE:
00176 ((EMC_COOLANT_STAT *) buffer)->update(cms);
00177 break;
00178 case EMC_HALT_TYPE:
00179 ((EMC_HALT *) buffer)->update(cms);
00180 break;
00181 case EMC_INIT_TYPE:
00182 ((EMC_INIT *) buffer)->update(cms);
00183 break;
00184 case EMC_IO_ABORT_TYPE:
00185 ((EMC_IO_ABORT *) buffer)->update(cms);
00186 break;
00187 case EMC_IO_HALT_TYPE:
00188 ((EMC_IO_HALT *) buffer)->update(cms);
00189 break;
00190 case EMC_IO_INIT_TYPE:
00191 ((EMC_IO_INIT *) buffer)->update(cms);
00192 break;
00193 case EMC_IO_SET_CYCLE_TIME_TYPE:
00194 ((EMC_IO_SET_CYCLE_TIME *) buffer)->update(cms);
00195 break;
00196 case EMC_IO_STAT_TYPE:
00197 ((EMC_IO_STAT *) buffer)->update(cms);
00198 break;
00199 case EMC_LOG_CLOSE_TYPE:
00200 ((EMC_LOG_CLOSE *) buffer)->update(cms);
00201 break;
00202 case EMC_LOG_OPEN_TYPE:
00203 ((EMC_LOG_OPEN *) buffer)->update(cms);
00204 break;
00205 case EMC_LOG_START_TYPE:
00206 ((EMC_LOG_START *) buffer)->update(cms);
00207 break;
00208 case EMC_LOG_STOP_TYPE:
00209 ((EMC_LOG_STOP *) buffer)->update(cms);
00210 break;
00211 case EMC_LUBE_ABORT_TYPE:
00212 ((EMC_LUBE_ABORT *) buffer)->update(cms);
00213 break;
00214 case EMC_LUBE_HALT_TYPE:
00215 ((EMC_LUBE_HALT *) buffer)->update(cms);
00216 break;
00217 case EMC_LUBE_INIT_TYPE:
00218 ((EMC_LUBE_INIT *) buffer)->update(cms);
00219 break;
00220 case EMC_LUBE_OFF_TYPE:
00221 ((EMC_LUBE_OFF *) buffer)->update(cms);
00222 break;
00223 case EMC_LUBE_ON_TYPE:
00224 ((EMC_LUBE_ON *) buffer)->update(cms);
00225 break;
00226 case EMC_LUBE_STAT_TYPE:
00227 ((EMC_LUBE_STAT *) buffer)->update(cms);
00228 break;
00229 case EMC_MOTION_ABORT_TYPE:
00230 ((EMC_MOTION_ABORT *) buffer)->update(cms);
00231 break;
00232 case EMC_MOTION_HALT_TYPE:
00233 ((EMC_MOTION_HALT *) buffer)->update(cms);
00234 break;
00235 case EMC_MOTION_INIT_TYPE:
00236 ((EMC_MOTION_INIT *) buffer)->update(cms);
00237 break;
00238 case EMC_MOTION_SET_AOUT_TYPE:
00239 ((EMC_MOTION_SET_AOUT *) buffer)->update(cms);
00240 break;
00241 case EMC_MOTION_SET_DOUT_TYPE:
00242 ((EMC_MOTION_SET_DOUT *) buffer)->update(cms);
00243 break;
00244 case EMC_MOTION_STAT_TYPE:
00245 ((EMC_MOTION_STAT *) buffer)->update(cms);
00246 break;
00247 case EMC_NULL_TYPE:
00248 ((EMC_NULL *) buffer)->update(cms);
00249 break;
00250 case EMC_OPERATOR_DISPLAY_TYPE:
00251 ((EMC_OPERATOR_DISPLAY *) buffer)->update(cms);
00252 break;
00253 case EMC_OPERATOR_ERROR_TYPE:
00254 ((EMC_OPERATOR_ERROR *) buffer)->update(cms);
00255 break;
00256 case EMC_OPERATOR_TEXT_TYPE:
00257 ((EMC_OPERATOR_TEXT *) buffer)->update(cms);
00258 break;
00259 case EMC_SET_AIO_INDEX_TYPE:
00260 ((EMC_SET_AIO_INDEX *) buffer)->update(cms);
00261 break;
00262 case EMC_SET_DEBUG_TYPE:
00263 ((EMC_SET_DEBUG *) buffer)->update(cms);
00264 break;
00265 case EMC_SET_DIO_INDEX_TYPE:
00266 ((EMC_SET_DIO_INDEX *) buffer)->update(cms);
00267 break;
00268 case EMC_SET_POLARITY_TYPE:
00269 ((EMC_SET_POLARITY *) buffer)->update(cms);
00270 break;
00271 case EMC_SPINDLE_ABORT_TYPE:
00272 ((EMC_SPINDLE_ABORT *) buffer)->update(cms);
00273 break;
00274 case EMC_SPINDLE_BRAKE_ENGAGE_TYPE:
00275 ((EMC_SPINDLE_BRAKE_ENGAGE *) buffer)->update(cms);
00276 break;
00277 case EMC_SPINDLE_BRAKE_RELEASE_TYPE:
00278 ((EMC_SPINDLE_BRAKE_RELEASE *) buffer)->update(cms);
00279 break;
00280 case EMC_SPINDLE_CONSTANT_TYPE:
00281 ((EMC_SPINDLE_CONSTANT *) buffer)->update(cms);
00282 break;
00283 case EMC_SPINDLE_DECREASE_TYPE:
00284 ((EMC_SPINDLE_DECREASE *) buffer)->update(cms);
00285 break;
00286 case EMC_SPINDLE_DISABLE_TYPE:
00287 ((EMC_SPINDLE_DISABLE *) buffer)->update(cms);
00288 break;
00289 case EMC_SPINDLE_ENABLE_TYPE:
00290 ((EMC_SPINDLE_ENABLE *) buffer)->update(cms);
00291 break;
00292 case EMC_SPINDLE_FORWARD_TYPE:
00293 ((EMC_SPINDLE_FORWARD *) buffer)->update(cms);
00294 break;
00295 case EMC_SPINDLE_HALT_TYPE:
00296 ((EMC_SPINDLE_HALT *) buffer)->update(cms);
00297 break;
00298 case EMC_SPINDLE_INCREASE_TYPE:
00299 ((EMC_SPINDLE_INCREASE *) buffer)->update(cms);
00300 break;
00301 case EMC_SPINDLE_INIT_TYPE:
00302 ((EMC_SPINDLE_INIT *) buffer)->update(cms);
00303 break;
00304 case EMC_SPINDLE_OFF_TYPE:
00305 ((EMC_SPINDLE_OFF *) buffer)->update(cms);
00306 break;
00307 case EMC_SPINDLE_ON_TYPE:
00308 ((EMC_SPINDLE_ON *) buffer)->update(cms);
00309 break;
00310 case EMC_SPINDLE_REVERSE_TYPE:
00311 ((EMC_SPINDLE_REVERSE *) buffer)->update(cms);
00312 break;
00313 case EMC_SPINDLE_STAT_TYPE:
00314 ((EMC_SPINDLE_STAT *) buffer)->update(cms);
00315 break;
00316 case EMC_SPINDLE_STOP_TYPE:
00317 ((EMC_SPINDLE_STOP *) buffer)->update(cms);
00318 break;
00319 case EMC_STAT_TYPE:
00320 ((EMC_STAT *) buffer)->update(cms);
00321 break;
00322 case EMC_TASK_ABORT_TYPE:
00323 ((EMC_TASK_ABORT *) buffer)->update(cms);
00324 break;
00325 case EMC_TASK_HALT_TYPE:
00326 ((EMC_TASK_HALT *) buffer)->update(cms);
00327 break;
00328 case EMC_TASK_INIT_TYPE:
00329 ((EMC_TASK_INIT *) buffer)->update(cms);
00330 break;
00331 case EMC_TASK_PLAN_CLOSE_TYPE:
00332 ((EMC_TASK_PLAN_CLOSE *) buffer)->update(cms);
00333 break;
00334 case EMC_TASK_PLAN_END_TYPE:
00335 ((EMC_TASK_PLAN_END *) buffer)->update(cms);
00336 break;
00337 case EMC_TASK_PLAN_EXECUTE_TYPE:
00338 ((EMC_TASK_PLAN_EXECUTE *) buffer)->update(cms);
00339 break;
00340 case EMC_TASK_PLAN_INIT_TYPE:
00341 ((EMC_TASK_PLAN_INIT *) buffer)->update(cms);
00342 break;
00343 case EMC_TASK_PLAN_OPEN_TYPE:
00344 ((EMC_TASK_PLAN_OPEN *) buffer)->update(cms);
00345 break;
00346 case EMC_TASK_PLAN_PAUSE_TYPE:
00347 ((EMC_TASK_PLAN_PAUSE *) buffer)->update(cms);
00348 break;
00349 case EMC_TASK_PLAN_READ_TYPE:
00350 ((EMC_TASK_PLAN_READ *) buffer)->update(cms);
00351 break;
00352 case EMC_TASK_PLAN_RESUME_TYPE:
00353 ((EMC_TASK_PLAN_RESUME *) buffer)->update(cms);
00354 break;
00355 case EMC_TASK_PLAN_RUN_TYPE:
00356 ((EMC_TASK_PLAN_RUN *) buffer)->update(cms);
00357 break;
00358 case EMC_TASK_PLAN_STEP_TYPE:
00359 ((EMC_TASK_PLAN_STEP *) buffer)->update(cms);
00360 break;
00361 case EMC_TASK_PLAN_SYNCH_TYPE:
00362 ((EMC_TASK_PLAN_SYNCH *) buffer)->update(cms);
00363 break;
00364 case EMC_TASK_SET_MODE_TYPE:
00365 ((EMC_TASK_SET_MODE *) buffer)->update(cms);
00366 break;
00367 case EMC_TASK_SET_STATE_TYPE:
00368 ((EMC_TASK_SET_STATE *) buffer)->update(cms);
00369 break;
00370 case EMC_TASK_STAT_TYPE:
00371 ((EMC_TASK_STAT *) buffer)->update(cms);
00372 break;
00373 case EMC_TOOL_ABORT_TYPE:
00374 ((EMC_TOOL_ABORT *) buffer)->update(cms);
00375 break;
00376 case EMC_TOOL_HALT_TYPE:
00377 ((EMC_TOOL_HALT *) buffer)->update(cms);
00378 break;
00379 case EMC_TOOL_INIT_TYPE:
00380 ((EMC_TOOL_INIT *) buffer)->update(cms);
00381 break;
00382 case EMC_TOOL_LOAD_TYPE:
00383 ((EMC_TOOL_LOAD *) buffer)->update(cms);
00384 break;
00385 case EMC_TOOL_LOAD_TOOL_TABLE_TYPE:
00386 ((EMC_TOOL_LOAD_TOOL_TABLE *) buffer)->update(cms);
00387 break;
00388 case EMC_TOOL_PREPARE_TYPE:
00389 ((EMC_TOOL_PREPARE *) buffer)->update(cms);
00390 break;
00391 case EMC_TOOL_SET_OFFSET_TYPE:
00392 ((EMC_TOOL_SET_OFFSET *) buffer)->update(cms);
00393 break;
00394 case EMC_TOOL_STAT_TYPE:
00395 ((EMC_TOOL_STAT *) buffer)->update(cms);
00396 break;
00397 case EMC_TOOL_UNLOAD_TYPE:
00398 ((EMC_TOOL_UNLOAD *) buffer)->update(cms);
00399 break;
00400 case EMC_TRAJ_ABORT_TYPE:
00401 ((EMC_TRAJ_ABORT *) buffer)->update(cms);
00402 break;
00403 case EMC_TRAJ_CIRCULAR_MOVE_TYPE:
00404 ((EMC_TRAJ_CIRCULAR_MOVE *) buffer)->update(cms);
00405 break;
00406 case EMC_TRAJ_CLEAR_PROBE_TRIPPED_FLAG_TYPE:
00407 ((EMC_TRAJ_CLEAR_PROBE_TRIPPED_FLAG *) buffer)->update(cms);
00408 break;
00409 case EMC_TRAJ_DELAY_TYPE:
00410 ((EMC_TRAJ_DELAY *) buffer)->update(cms);
00411 break;
00412 case EMC_TRAJ_DISABLE_TYPE:
00413 ((EMC_TRAJ_DISABLE *) buffer)->update(cms);
00414 break;
00415 case EMC_TRAJ_ENABLE_TYPE:
00416 ((EMC_TRAJ_ENABLE *) buffer)->update(cms);
00417 break;
00418 case EMC_TRAJ_HALT_TYPE:
00419 ((EMC_TRAJ_HALT *) buffer)->update(cms);
00420 break;
00421 case EMC_TRAJ_INIT_TYPE:
00422 ((EMC_TRAJ_INIT *) buffer)->update(cms);
00423 break;
00424 case EMC_TRAJ_LINEAR_MOVE_TYPE:
00425 ((EMC_TRAJ_LINEAR_MOVE *) buffer)->update(cms);
00426 break;
00427 case EMC_TRAJ_PAUSE_TYPE:
00428 ((EMC_TRAJ_PAUSE *) buffer)->update(cms);
00429 break;
00430 case EMC_TRAJ_PROBE_TYPE:
00431 ((EMC_TRAJ_PROBE *) buffer)->update(cms);
00432 break;
00433 case EMC_TRAJ_RESUME_TYPE:
00434 ((EMC_TRAJ_RESUME *) buffer)->update(cms);
00435 break;
00436 case EMC_TRAJ_SET_ACCELERATION_TYPE:
00437 ((EMC_TRAJ_SET_ACCELERATION *) buffer)->update(cms);
00438 break;
00439 case EMC_TRAJ_SET_AXES_TYPE:
00440 ((EMC_TRAJ_SET_AXES *) buffer)->update(cms);
00441 break;
00442 case EMC_TRAJ_SET_CYCLE_TIME_TYPE:
00443 ((EMC_TRAJ_SET_CYCLE_TIME *) buffer)->update(cms);
00444 break;
00445 case EMC_TRAJ_SET_HOME_TYPE:
00446 ((EMC_TRAJ_SET_HOME *) buffer)->update(cms);
00447 break;
00448 case EMC_TRAJ_SET_MAX_ACCELERATION_TYPE:
00449 ((EMC_TRAJ_SET_MAX_ACCELERATION *) buffer)->update(cms);
00450 break;
00451 case EMC_TRAJ_SET_MAX_VELOCITY_TYPE:
00452 ((EMC_TRAJ_SET_MAX_VELOCITY *) buffer)->update(cms);
00453 break;
00454 case EMC_TRAJ_SET_MODE_TYPE:
00455 ((EMC_TRAJ_SET_MODE *) buffer)->update(cms);
00456 break;
00457 case EMC_TRAJ_SET_MOTION_ID_TYPE:
00458 ((EMC_TRAJ_SET_MOTION_ID *) buffer)->update(cms);
00459 break;
00460 case EMC_TRAJ_SET_OFFSET_TYPE:
00461 ((EMC_TRAJ_SET_OFFSET *) buffer)->update(cms);
00462 break;
00463 case EMC_TRAJ_SET_ORIGIN_TYPE:
00464 ((EMC_TRAJ_SET_ORIGIN *) buffer)->update(cms);
00465 break;
00466 case EMC_TRAJ_SET_PROBE_INDEX_TYPE:
00467 ((EMC_TRAJ_SET_PROBE_INDEX *) buffer)->update(cms);
00468 break;
00469 case EMC_TRAJ_SET_PROBE_POLARITY_TYPE:
00470 ((EMC_TRAJ_SET_PROBE_POLARITY *) buffer)->update(cms);
00471 break;
00472 case EMC_TRAJ_SET_SCALE_TYPE:
00473 ((EMC_TRAJ_SET_SCALE *) buffer)->update(cms);
00474 break;
00475 case EMC_TRAJ_SET_TELEOP_ENABLE_TYPE:
00476 ((EMC_TRAJ_SET_TELEOP_ENABLE *) buffer)->update(cms);
00477 break;
00478 case EMC_TRAJ_SET_TELEOP_VECTOR_TYPE:
00479 ((EMC_TRAJ_SET_TELEOP_VECTOR *) buffer)->update(cms);
00480 break;
00481 case EMC_TRAJ_SET_TERM_COND_TYPE:
00482 ((EMC_TRAJ_SET_TERM_COND *) buffer)->update(cms);
00483 break;
00484 case EMC_TRAJ_SET_UNITS_TYPE:
00485 ((EMC_TRAJ_SET_UNITS *) buffer)->update(cms);
00486 break;
00487 case EMC_TRAJ_SET_VELOCITY_TYPE:
00488 ((EMC_TRAJ_SET_VELOCITY *) buffer)->update(cms);
00489 break;
00490 case EMC_TRAJ_STAT_TYPE:
00491 ((EMC_TRAJ_STAT *) buffer)->update(cms);
00492 break;
00493 case EMC_TRAJ_STEP_TYPE:
00494 ((EMC_TRAJ_STEP *) buffer)->update(cms);
00495 break;
00496
00497 default:
00498 return(0);
00499 }
00500 return 1;
00501 }
00502
00503
00504
00505 const char *emc_symbol_lookup(int type)
00506 {
00507 switch(type)
00508 {
00509 case EMC_ABORT_TYPE:
00510 return "EMC_ABORT";
00511 case EMC_AUX_ABORT_TYPE:
00512 return "EMC_AUX_ABORT";
00513 case EMC_AUX_AIO_WRITE_TYPE:
00514 return "EMC_AUX_AIO_WRITE";
00515 case EMC_AUX_DIO_WRITE_TYPE:
00516 return "EMC_AUX_DIO_WRITE";
00517 case EMC_AUX_ESTOP_OFF_TYPE:
00518 return "EMC_AUX_ESTOP_OFF";
00519 case EMC_AUX_ESTOP_ON_TYPE:
00520 return "EMC_AUX_ESTOP_ON";
00521 case EMC_AUX_HALT_TYPE:
00522 return "EMC_AUX_HALT";
00523 case EMC_AUX_INIT_TYPE:
00524 return "EMC_AUX_INIT";
00525 case EMC_AUX_STAT_TYPE:
00526 return "EMC_AUX_STAT";
00527 case EMC_AXIS_ABORT_TYPE:
00528 return "EMC_AXIS_ABORT";
00529 case EMC_AXIS_ABS_JOG_TYPE:
00530 return "EMC_AXIS_ABS_JOG";
00531 case EMC_AXIS_ACTIVATE_TYPE:
00532 return "EMC_AXIS_ACTIVATE";
00533 case EMC_AXIS_ALTER_TYPE:
00534 return "EMC_AXIS_ALTER";
00535 case EMC_AXIS_DEACTIVATE_TYPE:
00536 return "EMC_AXIS_DEACTIVATE";
00537 case EMC_AXIS_DISABLE_TYPE:
00538 return "EMC_AXIS_DISABLE";
00539 case EMC_AXIS_ENABLE_TYPE:
00540 return "EMC_AXIS_ENABLE";
00541 case EMC_AXIS_HALT_TYPE:
00542 return "EMC_AXIS_HALT";
00543 case EMC_AXIS_HOME_TYPE:
00544 return "EMC_AXIS_HOME";
00545 case EMC_AXIS_INCR_JOG_TYPE:
00546 return "EMC_AXIS_INCR_JOG";
00547 case EMC_AXIS_INIT_TYPE:
00548 return "EMC_AXIS_INIT";
00549 case EMC_AXIS_JOG_TYPE:
00550 return "EMC_AXIS_JOG";
00551 case EMC_AXIS_LOAD_COMP_TYPE:
00552 return "EMC_AXIS_LOAD_COMP";
00553 case EMC_AXIS_OVERRIDE_LIMITS_TYPE:
00554 return "EMC_AXIS_OVERRIDE_LIMITS";
00555 case EMC_AXIS_SET_AXIS_TYPE:
00556 return "EMC_AXIS_SET_AXIS";
00557 case EMC_AXIS_SET_CYCLE_TIME_TYPE:
00558 return "EMC_AXIS_SET_CYCLE_TIME";
00559 case EMC_AXIS_SET_FERROR_TYPE:
00560 return "EMC_AXIS_SET_FERROR";
00561 case EMC_AXIS_SET_GAINS_TYPE:
00562 return "EMC_AXIS_SET_GAINS";
00563 case EMC_AXIS_SET_HOME_TYPE:
00564 return "EMC_AXIS_SET_HOME";
00565 case EMC_AXIS_SET_HOME_OFFSET_TYPE:
00566 return "EMC_AXIS_SET_HOME_OFFSET";
00567 case EMC_AXIS_SET_HOMING_VEL_TYPE:
00568 return "EMC_AXIS_SET_HOMING_VEL";
00569 case EMC_AXIS_SET_INPUT_SCALE_TYPE:
00570 return "EMC_AXIS_SET_INPUT_SCALE";
00571 case EMC_AXIS_SET_MAX_OUTPUT_LIMIT_TYPE:
00572 return "EMC_AXIS_SET_MAX_OUTPUT_LIMIT";
00573 case EMC_AXIS_SET_MAX_POSITION_LIMIT_TYPE:
00574 return "EMC_AXIS_SET_MAX_POSITION_LIMIT";
00575 case EMC_AXIS_SET_MAX_VELOCITY_TYPE:
00576 return "EMC_AXIS_SET_MAX_VELOCITY";
00577 case EMC_AXIS_SET_MIN_FERROR_TYPE:
00578 return "EMC_AXIS_SET_MIN_FERROR";
00579 case EMC_AXIS_SET_MIN_OUTPUT_LIMIT_TYPE:
00580 return "EMC_AXIS_SET_MIN_OUTPUT_LIMIT";
00581 case EMC_AXIS_SET_MIN_POSITION_LIMIT_TYPE:
00582 return "EMC_AXIS_SET_MIN_POSITION_LIMIT";
00583 case EMC_AXIS_SET_OUTPUT_TYPE:
00584 return "EMC_AXIS_SET_OUTPUT";
00585 case EMC_AXIS_SET_OUTPUT_SCALE_TYPE:
00586 return "EMC_AXIS_SET_OUTPUT_SCALE";
00587 case EMC_AXIS_SET_UNITS_TYPE:
00588 return "EMC_AXIS_SET_UNITS";
00589 case EMC_AXIS_STAT_TYPE:
00590 return "EMC_AXIS_STAT";
00591 case EMC_COOLANT_ABORT_TYPE:
00592 return "EMC_COOLANT_ABORT";
00593 case EMC_COOLANT_FLOOD_OFF_TYPE:
00594 return "EMC_COOLANT_FLOOD_OFF";
00595 case EMC_COOLANT_FLOOD_ON_TYPE:
00596 return "EMC_COOLANT_FLOOD_ON";
00597 case EMC_COOLANT_HALT_TYPE:
00598 return "EMC_COOLANT_HALT";
00599 case EMC_COOLANT_INIT_TYPE:
00600 return "EMC_COOLANT_INIT";
00601 case EMC_COOLANT_MIST_OFF_TYPE:
00602 return "EMC_COOLANT_MIST_OFF";
00603 case EMC_COOLANT_MIST_ON_TYPE:
00604 return "EMC_COOLANT_MIST_ON";
00605 case EMC_COOLANT_STAT_TYPE:
00606 return "EMC_COOLANT_STAT";
00607 case EMC_HALT_TYPE:
00608 return "EMC_HALT";
00609 case EMC_INIT_TYPE:
00610 return "EMC_INIT";
00611 case EMC_IO_ABORT_TYPE:
00612 return "EMC_IO_ABORT";
00613 case EMC_IO_HALT_TYPE:
00614 return "EMC_IO_HALT";
00615 case EMC_IO_INIT_TYPE:
00616 return "EMC_IO_INIT";
00617 case EMC_IO_SET_CYCLE_TIME_TYPE:
00618 return "EMC_IO_SET_CYCLE_TIME";
00619 case EMC_IO_STAT_TYPE:
00620 return "EMC_IO_STAT";
00621 case EMC_LOG_CLOSE_TYPE:
00622 return "EMC_LOG_CLOSE";
00623 case EMC_LOG_OPEN_TYPE:
00624 return "EMC_LOG_OPEN";
00625 case EMC_LOG_START_TYPE:
00626 return "EMC_LOG_START";
00627 case EMC_LOG_STOP_TYPE:
00628 return "EMC_LOG_STOP";
00629 case EMC_LUBE_ABORT_TYPE:
00630 return "EMC_LUBE_ABORT";
00631 case EMC_LUBE_HALT_TYPE:
00632 return "EMC_LUBE_HALT";
00633 case EMC_LUBE_INIT_TYPE:
00634 return "EMC_LUBE_INIT";
00635 case EMC_LUBE_OFF_TYPE:
00636 return "EMC_LUBE_OFF";
00637 case EMC_LUBE_ON_TYPE:
00638 return "EMC_LUBE_ON";
00639 case EMC_LUBE_STAT_TYPE:
00640 return "EMC_LUBE_STAT";
00641 case EMC_MOTION_ABORT_TYPE:
00642 return "EMC_MOTION_ABORT";
00643 case EMC_MOTION_HALT_TYPE:
00644 return "EMC_MOTION_HALT";
00645 case EMC_MOTION_INIT_TYPE:
00646 return "EMC_MOTION_INIT";
00647 case EMC_MOTION_SET_AOUT_TYPE:
00648 return "EMC_MOTION_SET_AOUT";
00649 case EMC_MOTION_SET_DOUT_TYPE:
00650 return "EMC_MOTION_SET_DOUT";
00651 case EMC_MOTION_STAT_TYPE:
00652 return "EMC_MOTION_STAT";
00653 case EMC_NULL_TYPE:
00654 return "EMC_NULL";
00655 case EMC_OPERATOR_DISPLAY_TYPE:
00656 return "EMC_OPERATOR_DISPLAY";
00657 case EMC_OPERATOR_ERROR_TYPE:
00658 return "EMC_OPERATOR_ERROR";
00659 case EMC_OPERATOR_TEXT_TYPE:
00660 return "EMC_OPERATOR_TEXT";
00661 case EMC_SET_AIO_INDEX_TYPE:
00662 return "EMC_SET_AIO_INDEX";
00663 case EMC_SET_DEBUG_TYPE:
00664 return "EMC_SET_DEBUG";
00665 case EMC_SET_DIO_INDEX_TYPE:
00666 return "EMC_SET_DIO_INDEX";
00667 case EMC_SET_POLARITY_TYPE:
00668 return "EMC_SET_POLARITY";
00669 case EMC_SPINDLE_ABORT_TYPE:
00670 return "EMC_SPINDLE_ABORT";
00671 case EMC_SPINDLE_BRAKE_ENGAGE_TYPE:
00672 return "EMC_SPINDLE_BRAKE_ENGAGE";
00673 case EMC_SPINDLE_BRAKE_RELEASE_TYPE:
00674 return "EMC_SPINDLE_BRAKE_RELEASE";
00675 case EMC_SPINDLE_CONSTANT_TYPE:
00676 return "EMC_SPINDLE_CONSTANT";
00677 case EMC_SPINDLE_DECREASE_TYPE:
00678 return "EMC_SPINDLE_DECREASE";
00679 case EMC_SPINDLE_DISABLE_TYPE:
00680 return "EMC_SPINDLE_DISABLE";
00681 case EMC_SPINDLE_ENABLE_TYPE:
00682 return "EMC_SPINDLE_ENABLE";
00683 case EMC_SPINDLE_FORWARD_TYPE:
00684 return "EMC_SPINDLE_FORWARD";
00685 case EMC_SPINDLE_HALT_TYPE:
00686 return "EMC_SPINDLE_HALT";
00687 case EMC_SPINDLE_INCREASE_TYPE:
00688 return "EMC_SPINDLE_INCREASE";
00689 case EMC_SPINDLE_INIT_TYPE:
00690 return "EMC_SPINDLE_INIT";
00691 case EMC_SPINDLE_OFF_TYPE:
00692 return "EMC_SPINDLE_OFF";
00693 case EMC_SPINDLE_ON_TYPE:
00694 return "EMC_SPINDLE_ON";
00695 case EMC_SPINDLE_REVERSE_TYPE:
00696 return "EMC_SPINDLE_REVERSE";
00697 case EMC_SPINDLE_STAT_TYPE:
00698 return "EMC_SPINDLE_STAT";
00699 case EMC_SPINDLE_STOP_TYPE:
00700 return "EMC_SPINDLE_STOP";
00701 case EMC_STAT_TYPE:
00702 return "EMC_STAT";
00703 case EMC_TASK_ABORT_TYPE:
00704 return "EMC_TASK_ABORT";
00705 case EMC_TASK_HALT_TYPE:
00706 return "EMC_TASK_HALT";
00707 case EMC_TASK_INIT_TYPE:
00708 return "EMC_TASK_INIT";
00709 case EMC_TASK_PLAN_CLOSE_TYPE:
00710 return "EMC_TASK_PLAN_CLOSE";
00711 case EMC_TASK_PLAN_END_TYPE:
00712 return "EMC_TASK_PLAN_END";
00713 case EMC_TASK_PLAN_EXECUTE_TYPE:
00714 return "EMC_TASK_PLAN_EXECUTE";
00715 case EMC_TASK_PLAN_INIT_TYPE:
00716 return "EMC_TASK_PLAN_INIT";
00717 case EMC_TASK_PLAN_OPEN_TYPE:
00718 return "EMC_TASK_PLAN_OPEN";
00719 case EMC_TASK_PLAN_PAUSE_TYPE:
00720 return "EMC_TASK_PLAN_PAUSE";
00721 case EMC_TASK_PLAN_READ_TYPE:
00722 return "EMC_TASK_PLAN_READ";
00723 case EMC_TASK_PLAN_RESUME_TYPE:
00724 return "EMC_TASK_PLAN_RESUME";
00725 case EMC_TASK_PLAN_RUN_TYPE:
00726 return "EMC_TASK_PLAN_RUN";
00727 case EMC_TASK_PLAN_STEP_TYPE:
00728 return "EMC_TASK_PLAN_STEP";
00729 case EMC_TASK_PLAN_SYNCH_TYPE:
00730 return "EMC_TASK_PLAN_SYNCH";
00731 case EMC_TASK_SET_MODE_TYPE:
00732 return "EMC_TASK_SET_MODE";
00733 case EMC_TASK_SET_STATE_TYPE:
00734 return "EMC_TASK_SET_STATE";
00735 case EMC_TASK_STAT_TYPE:
00736 return "EMC_TASK_STAT";
00737 case EMC_TOOL_ABORT_TYPE:
00738 return "EMC_TOOL_ABORT";
00739 case EMC_TOOL_HALT_TYPE:
00740 return "EMC_TOOL_HALT";
00741 case EMC_TOOL_INIT_TYPE:
00742 return "EMC_TOOL_INIT";
00743 case EMC_TOOL_LOAD_TYPE:
00744 return "EMC_TOOL_LOAD";
00745 case EMC_TOOL_LOAD_TOOL_TABLE_TYPE:
00746 return "EMC_TOOL_LOAD_TOOL_TABLE";
00747 case EMC_TOOL_PREPARE_TYPE:
00748 return "EMC_TOOL_PREPARE";
00749 case EMC_TOOL_SET_OFFSET_TYPE:
00750 return "EMC_TOOL_SET_OFFSET";
00751 case EMC_TOOL_STAT_TYPE:
00752 return "EMC_TOOL_STAT";
00753 case EMC_TOOL_UNLOAD_TYPE:
00754 return "EMC_TOOL_UNLOAD";
00755 case EMC_TRAJ_ABORT_TYPE:
00756 return "EMC_TRAJ_ABORT";
00757 case EMC_TRAJ_CIRCULAR_MOVE_TYPE:
00758 return "EMC_TRAJ_CIRCULAR_MOVE";
00759 case EMC_TRAJ_CLEAR_PROBE_TRIPPED_FLAG_TYPE:
00760 return "EMC_TRAJ_CLEAR_PROBE_TRIPPED_FLAG";
00761 case EMC_TRAJ_DELAY_TYPE:
00762 return "EMC_TRAJ_DELAY";
00763 case EMC_TRAJ_DISABLE_TYPE:
00764 return "EMC_TRAJ_DISABLE";
00765 case EMC_TRAJ_ENABLE_TYPE:
00766 return "EMC_TRAJ_ENABLE";
00767 case EMC_TRAJ_HALT_TYPE:
00768 return "EMC_TRAJ_HALT";
00769 case EMC_TRAJ_INIT_TYPE:
00770 return "EMC_TRAJ_INIT";
00771 case EMC_TRAJ_LINEAR_MOVE_TYPE:
00772 return "EMC_TRAJ_LINEAR_MOVE";
00773 case EMC_TRAJ_PAUSE_TYPE:
00774 return "EMC_TRAJ_PAUSE";
00775 case EMC_TRAJ_PROBE_TYPE:
00776 return "EMC_TRAJ_PROBE";
00777 case EMC_TRAJ_RESUME_TYPE:
00778 return "EMC_TRAJ_RESUME";
00779 case EMC_TRAJ_SET_ACCELERATION_TYPE:
00780 return "EMC_TRAJ_SET_ACCELERATION";
00781 case EMC_TRAJ_SET_AXES_TYPE:
00782 return "EMC_TRAJ_SET_AXES";
00783 case EMC_TRAJ_SET_CYCLE_TIME_TYPE:
00784 return "EMC_TRAJ_SET_CYCLE_TIME";
00785 case EMC_TRAJ_SET_HOME_TYPE:
00786 return "EMC_TRAJ_SET_HOME";
00787 case EMC_TRAJ_SET_MAX_ACCELERATION_TYPE:
00788 return "EMC_TRAJ_SET_MAX_ACCELERATION";
00789 case EMC_TRAJ_SET_MAX_VELOCITY_TYPE:
00790 return "EMC_TRAJ_SET_MAX_VELOCITY";
00791 case EMC_TRAJ_SET_MODE_TYPE:
00792 return "EMC_TRAJ_SET_MODE";
00793 case EMC_TRAJ_SET_MOTION_ID_TYPE:
00794 return "EMC_TRAJ_SET_MOTION_ID";
00795 case EMC_TRAJ_SET_OFFSET_TYPE:
00796 return "EMC_TRAJ_SET_OFFSET";
00797 case EMC_TRAJ_SET_ORIGIN_TYPE:
00798 return "EMC_TRAJ_SET_ORIGIN";
00799 case EMC_TRAJ_SET_PROBE_INDEX_TYPE:
00800 return "EMC_TRAJ_SET_PROBE_INDEX";
00801 case EMC_TRAJ_SET_PROBE_POLARITY_TYPE:
00802 return "EMC_TRAJ_SET_PROBE_POLARITY";
00803 case EMC_TRAJ_SET_SCALE_TYPE:
00804 return "EMC_TRAJ_SET_SCALE";
00805 case EMC_TRAJ_SET_TELEOP_ENABLE_TYPE:
00806 return "EMC_TRAJ_SET_TELEOP_ENABLE";
00807 case EMC_TRAJ_SET_TELEOP_VECTOR_TYPE:
00808 return "EMC_TRAJ_SET_TELEOP_VECTOR";
00809 case EMC_TRAJ_SET_TERM_COND_TYPE:
00810 return "EMC_TRAJ_SET_TERM_COND";
00811 case EMC_TRAJ_SET_UNITS_TYPE:
00812 return "EMC_TRAJ_SET_UNITS";
00813 case EMC_TRAJ_SET_VELOCITY_TYPE:
00814 return "EMC_TRAJ_SET_VELOCITY";
00815 case EMC_TRAJ_STAT_TYPE:
00816 return "EMC_TRAJ_STAT";
00817 case EMC_TRAJ_STEP_TYPE:
00818 return "EMC_TRAJ_STEP";
00819 default:
00820 return"UNKNOWN";
00821 break;
00822 }
00823 return(NULL);
00824 }
00825
00826
00827
00828
00829
00830
00831 void EMC_LOG_CLOSE::update(CMS *cms)
00832 {
00833
00834 EMC_CMD_MSG::update(cms);
00835
00836 }
00837
00838
00839
00840
00841
00842
00843
00844 void EMC_LUBE_INIT::update(CMS *cms)
00845 {
00846
00847 EMC_LUBE_CMD_MSG::update(cms);
00848
00849 }
00850
00851
00852
00853
00854
00855
00856
00857 void EMC_TASK_PLAN_CLOSE::update(CMS *cms)
00858 {
00859
00860 EMC_TASK_CMD_MSG::update(cms);
00861
00862 }
00863
00864
00865
00866
00867
00868
00869
00870 void EMC_IO_STAT::update(CMS *cms)
00871 {
00872
00873 EMC_IO_STAT_MSG::update(cms);
00874 cms->update(cycleTime);
00875 cms->update(debug);
00876 tool.update(cms);
00877 spindle.update(cms);
00878 coolant.update(cms);
00879 aux.update(cms);
00880 lube.update(cms);
00881
00882 }
00883
00884
00885
00886
00887
00888
00889
00890 void EMC_SPINDLE_STAT_MSG::update(CMS *cms)
00891 {
00892
00893 }
00894
00895
00896
00897
00898
00899
00900
00901 void EMC_TRAJ_SET_HOME::update(CMS *cms)
00902 {
00903
00904 EMC_TRAJ_CMD_MSG::update(cms);
00905 EmcPose_update(cms,&home);
00906
00907 }
00908
00909
00910
00911
00912
00913
00914
00915 void EMC_CMD_MSG::update(CMS *cms)
00916 {
00917
00918 }
00919
00920
00921
00922
00923
00924
00925
00926 void EMC_AUX_AIO_WRITE::update(CMS *cms)
00927 {
00928
00929 EMC_AUX_CMD_MSG::update(cms);
00930 cms->update(index);
00931 cms->update(value);
00932
00933 }
00934
00935
00936
00937
00938
00939
00940
00941 void EMC_AUX_ESTOP_OFF::update(CMS *cms)
00942 {
00943
00944 EMC_AUX_CMD_MSG::update(cms);
00945
00946 }
00947
00948
00949
00950
00951
00952
00953
00954 void EMC_OPERATOR_DISPLAY::update(CMS *cms)
00955 {
00956 cms->update(id);
00957 cms->update(display,256);
00958
00959 }
00960
00961
00962
00963
00964
00965
00966
00967 void EMC_TRAJ_CLEAR_PROBE_TRIPPED_FLAG::update(CMS *cms)
00968 {
00969
00970 EMC_TRAJ_CMD_MSG::update(cms);
00971
00972 }
00973
00974
00975
00976
00977
00978
00979
00980 void EMC_TOOL_STAT::update(CMS *cms)
00981 {
00982
00983 EMC_TOOL_STAT_MSG::update(cms);
00984 cms->update(toolPrepped);
00985 cms->update(toolInSpindle);
00986 for(int i_toolTable = 0;i_toolTable < 33 ;i_toolTable++)
00987 CANON_TOOL_TABLE_update(cms,&(toolTable[i_toolTable]));
00988
00989 }
00990
00991
00992
00993
00994
00995
00996
00997 void EMC_MOTION_INIT::update(CMS *cms)
00998 {
00999
01000 EMC_MOTION_CMD_MSG::update(cms);
01001
01002 }
01003
01004
01005
01006
01007
01008
01009
01010 void EMC_AXIS_SET_UNITS::update(CMS *cms)
01011 {
01012
01013 EMC_AXIS_CMD_MSG::update(cms);
01014 cms->update(units);
01015
01016 }
01017
01018
01019
01020
01021
01022
01023
01024 void EMC_AUX_DIO_WRITE::update(CMS *cms)
01025 {
01026
01027 EMC_AUX_CMD_MSG::update(cms);
01028 cms->update(index);
01029 cms->update(value);
01030
01031 }
01032
01033
01034
01035
01036
01037
01038
01039 void EMC_SPINDLE_CONSTANT::update(CMS *cms)
01040 {
01041
01042 EMC_SPINDLE_CMD_MSG::update(cms);
01043
01044 }
01045
01046
01047
01048
01049
01050
01051
01052 void EMC_SPINDLE_CMD_MSG::update(CMS *cms)
01053 {
01054
01055 }
01056
01057
01058
01059
01060
01061
01062
01063 void EMC_TRAJ_DELAY::update(CMS *cms)
01064 {
01065
01066 EMC_TRAJ_CMD_MSG::update(cms);
01067 cms->update(delay);
01068
01069 }
01070
01071
01072
01073
01074
01075
01076
01077 void EMC_AXIS_ABS_JOG::update(CMS *cms)
01078 {
01079
01080 EMC_AXIS_CMD_MSG::update(cms);
01081 cms->update(pos);
01082 cms->update(vel);
01083
01084 }
01085
01086
01087
01088
01089
01090
01091
01092 void EMC_LUBE_CMD_MSG::update(CMS *cms)
01093 {
01094
01095 }
01096
01097
01098
01099
01100
01101
01102
01103 void EMC_COOLANT_INIT::update(CMS *cms)
01104 {
01105
01106 EMC_COOLANT_CMD_MSG::update(cms);
01107
01108 }
01109
01110
01111
01112
01113
01114
01115
01116 void EMC_TOOL_PREPARE::update(CMS *cms)
01117 {
01118
01119 EMC_TOOL_CMD_MSG::update(cms);
01120 cms->update(tool);
01121
01122 }
01123
01124
01125
01126
01127
01128
01129
01130 void EMC_SPINDLE_OFF::update(CMS *cms)
01131 {
01132
01133 EMC_SPINDLE_CMD_MSG::update(cms);
01134
01135 }
01136
01137
01138
01139
01140
01141
01142
01143 void EMC_TASK_PLAN_SYNCH::update(CMS *cms)
01144 {
01145
01146 EMC_TASK_CMD_MSG::update(cms);
01147
01148 }
01149
01150
01151
01152
01153
01154
01155
01156 void EMC_COOLANT_CMD_MSG::update(CMS *cms)
01157 {
01158
01159 }
01160
01161
01162
01163
01164
01165
01166
01167 void EMC_TRAJ_HALT::update(CMS *cms)
01168 {
01169
01170 EMC_TRAJ_CMD_MSG::update(cms);
01171
01172 }
01173
01174
01175
01176
01177
01178
01179
01180 void EMC_TOOL_LOAD::update(CMS *cms)
01181 {
01182
01183 EMC_TOOL_CMD_MSG::update(cms);
01184
01185 }
01186
01187
01188
01189
01190
01191
01192
01193 void EMC_AXIS_OVERRIDE_LIMITS::update(CMS *cms)
01194 {
01195
01196 EMC_AXIS_CMD_MSG::update(cms);
01197
01198 }
01199
01200
01201
01202
01203
01204
01205
01206 void PmCartesian_update(CMS *cms,PmCartesian *x)
01207 {
01208 cms->update(x->x);
01209 cms->update(x->y);
01210 cms->update(x->z);
01211
01212 }
01213
01214
01215
01216
01217
01218
01219
01220 void EMC_AXIS_SET_FERROR::update(CMS *cms)
01221 {
01222
01223 EMC_AXIS_CMD_MSG::update(cms);
01224 cms->update(ferror);
01225
01226 }
01227
01228
01229
01230
01231
01232
01233
01234 void EMC_AXIS_SET_MIN_POSITION_LIMIT::update(CMS *cms)
01235 {
01236
01237 EMC_AXIS_CMD_MSG::update(cms);
01238 cms->update(limit);
01239
01240 }
01241
01242
01243
01244
01245
01246
01247
01248 void EMC_AXIS_DEACTIVATE::update(CMS *cms)
01249 {
01250
01251 EMC_AXIS_CMD_MSG::update(cms);
01252
01253 }
01254
01255
01256
01257
01258
01259
01260
01261 void EMC_LUBE_HALT::update(CMS *cms)
01262 {
01263
01264 EMC_LUBE_CMD_MSG::update(cms);
01265
01266 }
01267
01268
01269
01270
01271
01272
01273
01274 void EMC_TRAJ_SET_VELOCITY::update(CMS *cms)
01275 {
01276
01277 EMC_TRAJ_CMD_MSG::update(cms);
01278 cms->update(velocity);
01279
01280 }
01281
01282
01283
01284
01285
01286
01287
01288 void EMC_TASK_ABORT::update(CMS *cms)
01289 {
01290
01291 EMC_TASK_CMD_MSG::update(cms);
01292
01293 }
01294
01295
01296
01297
01298
01299
01300
01301 void EMC_LOG_OPEN::update(CMS *cms)
01302 {
01303
01304 EMC_CMD_MSG::update(cms);
01305 cms->update(file,256);
01306 cms->update(type);
01307 cms->update(size);
01308 cms->update(skip);
01309 cms->update(which);
01310 cms->update(triggerType);
01311 cms->update(triggerVar);
01312 cms->update(triggerThreshold);
01313
01314 }
01315
01316
01317
01318
01319
01320
01321
01322 void EMC_AXIS_SET_HOME::update(CMS *cms)
01323 {
01324
01325 EMC_AXIS_CMD_MSG::update(cms);
01326 cms->update(home);
01327
01328 }
01329
01330
01331
01332
01333
01334
01335
01336 void EMC_LOG_STOP::update(CMS *cms)
01337 {
01338
01339 EMC_CMD_MSG::update(cms);
01340
01341 }
01342
01343
01344
01345
01346
01347
01348
01349 void EMC_TRAJ_SET_MOTION_ID::update(CMS *cms)
01350 {
01351
01352 EMC_TRAJ_CMD_MSG::update(cms);
01353 cms->update(id);
01354
01355 }
01356
01357
01358
01359
01360
01361
01362
01363 void EMC_MOTION_HALT::update(CMS *cms)
01364 {
01365
01366 EMC_MOTION_CMD_MSG::update(cms);
01367
01368 }
01369
01370
01371
01372
01373
01374
01375
01376 void EMC_TASK_PLAN_INIT::update(CMS *cms)
01377 {
01378
01379 EMC_TASK_CMD_MSG::update(cms);
01380
01381 }
01382
01383
01384
01385
01386
01387
01388
01389 void EMC_TRAJ_SET_ACCELERATION::update(CMS *cms)
01390 {
01391
01392 EMC_TRAJ_CMD_MSG::update(cms);
01393 cms->update(acceleration);
01394
01395 }
01396
01397
01398
01399
01400
01401
01402
01403 void EMC_AUX_STAT::update(CMS *cms)
01404 {
01405
01406 EMC_AUX_STAT_MSG::update(cms);
01407 cms->update(estop);
01408 cms->update(estopIn);
01409 cms->update(dout,4);
01410 cms->update(din,4);
01411 cms->update(aout,32);
01412 cms->update(ain,32);
01413
01414 }
01415
01416
01417
01418
01419
01420
01421
01422 void EMC_TASK_STAT_MSG::update(CMS *cms)
01423 {
01424 cms->update(heartbeat);
01425
01426 }
01427
01428
01429
01430
01431
01432
01433
01434 void EMC_TRAJ_SET_CYCLE_TIME::update(CMS *cms)
01435 {
01436
01437 EMC_TRAJ_CMD_MSG::update(cms);
01438 cms->update(cycleTime);
01439
01440 }
01441
01442
01443
01444
01445
01446
01447
01448 void EMC_IO_CMD_MSG::update(CMS *cms)
01449 {
01450
01451 }
01452
01453
01454
01455
01456
01457
01458
01459 void EMC_AXIS_CMD_MSG::update(CMS *cms)
01460 {
01461 cms->update(axis);
01462
01463 }
01464
01465
01466
01467
01468
01469
01470
01471 void EMC_SPINDLE_STOP::update(CMS *cms)
01472 {
01473
01474 EMC_SPINDLE_CMD_MSG::update(cms);
01475
01476 }
01477
01478
01479
01480
01481
01482
01483
01484 void EMC_COOLANT_HALT::update(CMS *cms)
01485 {
01486
01487 EMC_COOLANT_CMD_MSG::update(cms);
01488
01489 }
01490
01491
01492
01493
01494
01495
01496
01497 void EMC_IO_INIT::update(CMS *cms)
01498 {
01499
01500 EMC_IO_CMD_MSG::update(cms);
01501
01502 }
01503
01504
01505
01506
01507
01508
01509
01510 void EMC_STAT::update(CMS *cms)
01511 {
01512
01513 EMC_STAT_MSG::update(cms);
01514 task.update(cms);
01515 motion.update(cms);
01516 io.update(cms);
01517 cms->update(logFile,256);
01518 cms->update(logType);
01519 cms->update(logSize);
01520 cms->update(logSkip);
01521 cms->update(logOpen);
01522 cms->update(logStarted);
01523 cms->update(logPoints);
01524 cms->update(debug);
01525
01526 }
01527
01528
01529
01530
01531
01532
01533
01534 void EMC_AXIS_JOG::update(CMS *cms)
01535 {
01536
01537 EMC_AXIS_CMD_MSG::update(cms);
01538 cms->update(vel);
01539
01540 }
01541
01542
01543
01544
01545
01546
01547
01548 void EMC_AUX_ABORT::update(CMS *cms)
01549 {
01550
01551 EMC_AUX_CMD_MSG::update(cms);
01552
01553 }
01554
01555
01556
01557
01558
01559
01560
01561 void CANON_VECTOR_update(CMS *cms,CANON_VECTOR *x)
01562 {
01563 cms->update(x->x);
01564 cms->update(x->y);
01565 cms->update(x->z);
01566
01567 }
01568
01569
01570
01571
01572
01573
01574
01575 void EMC_TOOL_INIT::update(CMS *cms)
01576 {
01577
01578 EMC_TOOL_CMD_MSG::update(cms);
01579
01580 }
01581
01582
01583
01584
01585
01586
01587
01588 void EMC_TRAJ_ENABLE::update(CMS *cms)
01589 {
01590
01591 EMC_TRAJ_CMD_MSG::update(cms);
01592
01593 }
01594
01595
01596
01597
01598
01599
01600
01601 void EMC_AXIS_ALTER::update(CMS *cms)
01602 {
01603
01604 EMC_AXIS_CMD_MSG::update(cms);
01605 cms->update(alter);
01606
01607 }
01608
01609
01610
01611
01612
01613
01614
01615 void EMC_MOTION_SET_AOUT::update(CMS *cms)
01616 {
01617
01618 EMC_MOTION_CMD_MSG::update(cms);
01619 cms->update(index);
01620 cms->update(start);
01621 cms->update(end);
01622
01623 }
01624
01625
01626
01627
01628
01629
01630
01631 void EMC_AXIS_SET_INPUT_SCALE::update(CMS *cms)
01632 {
01633
01634 EMC_AXIS_CMD_MSG::update(cms);
01635 cms->update(scale);
01636 cms->update(offset);
01637
01638 }
01639
01640
01641
01642
01643
01644
01645
01646 void EMC_COOLANT_STAT_MSG::update(CMS *cms)
01647 {
01648
01649 }
01650
01651
01652
01653
01654
01655
01656
01657 void EMC_MOTION_ABORT::update(CMS *cms)
01658 {
01659
01660 EMC_MOTION_CMD_MSG::update(cms);
01661
01662 }
01663
01664
01665
01666
01667
01668
01669
01670 void EMC_TRAJ_RESUME::update(CMS *cms)
01671 {
01672
01673 EMC_TRAJ_CMD_MSG::update(cms);
01674
01675 }
01676
01677
01678
01679
01680
01681
01682
01683 void EMC_AXIS_SET_AXIS::update(CMS *cms)
01684 {
01685
01686 EMC_AXIS_CMD_MSG::update(cms);
01687 cms->update(axisType);
01688
01689 }
01690
01691
01692
01693
01694
01695
01696
01697 void EMC_TRAJ_ABORT::update(CMS *cms)
01698 {
01699
01700 EMC_TRAJ_CMD_MSG::update(cms);
01701
01702 }
01703
01704
01705
01706
01707
01708
01709
01710 void EMC_TOOL_SET_OFFSET::update(CMS *cms)
01711 {
01712
01713 EMC_TOOL_CMD_MSG::update(cms);
01714 cms->update(tool);
01715 cms->update(length);
01716 cms->update(diameter);
01717
01718 }
01719
01720
01721
01722
01723
01724
01725
01726 void EMC_SPINDLE_STAT::update(CMS *cms)
01727 {
01728
01729 EMC_SPINDLE_STAT_MSG::update(cms);
01730 cms->update(speed);
01731 cms->update(direction);
01732 cms->update(brake);
01733 cms->update(increasing);
01734 cms->update(enabled);
01735
01736 }
01737
01738
01739
01740
01741
01742
01743
01744 void EMC_AXIS_SET_MAX_POSITION_LIMIT::update(CMS *cms)
01745 {
01746
01747 EMC_AXIS_CMD_MSG::update(cms);
01748 cms->update(limit);
01749
01750 }
01751
01752
01753
01754
01755
01756
01757
01758 void EMC_LOG_START::update(CMS *cms)
01759 {
01760
01761 EMC_CMD_MSG::update(cms);
01762
01763 }
01764
01765
01766
01767
01768
01769
01770
01771 void EMC_COOLANT_MIST_ON::update(CMS *cms)
01772 {
01773
01774 EMC_COOLANT_CMD_MSG::update(cms);
01775
01776 }
01777
01778
01779
01780
01781
01782
01783
01784 void EMC_TRAJ_LINEAR_MOVE::update(CMS *cms)
01785 {
01786
01787 EMC_TRAJ_CMD_MSG::update(cms);
01788 EmcPose_update(cms,&end);
01789
01790 }
01791
01792
01793
01794
01795
01796
01797
01798 void EMC_SPINDLE_DISABLE::update(CMS *cms)
01799 {
01800
01801 EMC_SPINDLE_CMD_MSG::update(cms);
01802
01803 }
01804
01805
01806
01807
01808
01809
01810
01811 void EMC_TRAJ_SET_TERM_COND::update(CMS *cms)
01812 {
01813
01814 EMC_TRAJ_CMD_MSG::update(cms);
01815 cms->update(cond);
01816
01817 }
01818
01819
01820
01821
01822
01823
01824
01825 void EMC_TASK_PLAN_RUN::update(CMS *cms)
01826 {
01827
01828 EMC_TASK_CMD_MSG::update(cms);
01829 cms->update(line);
01830
01831 }
01832
01833
01834
01835
01836
01837
01838
01839 void EMC_TOOL_CMD_MSG::update(CMS *cms)
01840 {
01841
01842 }
01843
01844
01845
01846
01847
01848
01849
01850 void EMC_TRAJ_STEP::update(CMS *cms)
01851 {
01852
01853 EMC_TRAJ_CMD_MSG::update(cms);
01854
01855 }
01856
01857
01858
01859
01860
01861
01862
01863 void EMC_TASK_PLAN_RESUME::update(CMS *cms)
01864 {
01865
01866 EMC_TASK_CMD_MSG::update(cms);
01867
01868 }
01869
01870
01871
01872
01873
01874
01875
01876 void EMC_TASK_CMD_MSG::update(CMS *cms)
01877 {
01878
01879 }
01880
01881
01882
01883
01884
01885
01886
01887 void EMC_TRAJ_STAT_MSG::update(CMS *cms)
01888 {
01889
01890 }
01891
01892
01893
01894
01895
01896
01897
01898 void EMC_IO_HALT::update(CMS *cms)
01899 {
01900
01901 EMC_IO_CMD_MSG::update(cms);
01902
01903 }
01904
01905
01906
01907
01908
01909
01910
01911 void EMC_SPINDLE_REVERSE::update(CMS *cms)
01912 {
01913
01914 EMC_SPINDLE_CMD_MSG::update(cms);
01915
01916 }
01917
01918
01919
01920
01921
01922
01923
01924 void EMC_OPERATOR_TEXT::update(CMS *cms)
01925 {
01926 cms->update(id);
01927 cms->update(text,256);
01928
01929 }
01930
01931
01932
01933
01934
01935
01936
01937 void EMC_COOLANT_MIST_OFF::update(CMS *cms)
01938 {
01939
01940 EMC_COOLANT_CMD_MSG::update(cms);
01941
01942 }
01943
01944
01945
01946
01947
01948
01949
01950 void EMC_TASK_PLAN_READ::update(CMS *cms)
01951 {
01952
01953 EMC_TASK_CMD_MSG::update(cms);
01954
01955 }
01956
01957
01958
01959
01960
01961
01962
01963 void EMC_TOOL_HALT::update(CMS *cms)
01964 {
01965
01966 EMC_TOOL_CMD_MSG::update(cms);
01967
01968 }
01969
01970
01971
01972
01973
01974
01975
01976 void EMC_AUX_INIT::update(CMS *cms)
01977 {
01978
01979 EMC_AUX_CMD_MSG::update(cms);
01980
01981 }
01982
01983
01984
01985
01986
01987
01988
01989 void EMC_SPINDLE_DECREASE::update(CMS *cms)
01990 {
01991
01992 EMC_SPINDLE_CMD_MSG::update(cms);
01993
01994 }
01995
01996
01997
01998
01999
02000
02001
02002 void CANON_TOOL_TABLE_update(CMS *cms,CANON_TOOL_TABLE *x)
02003 {
02004 cms->update(x->id);
02005 cms->update(x->length);
02006 cms->update(x->diameter);
02007
02008 }
02009
02010
02011
02012
02013
02014
02015
02016 void EMC_IO_STAT_MSG::update(CMS *cms)
02017 {
02018 cms->update(heartbeat);
02019
02020 }
02021
02022
02023
02024
02025
02026
02027
02028 void EMC_ABORT::update(CMS *cms)
02029 {
02030
02031 EMC_CMD_MSG::update(cms);
02032
02033 }
02034
02035
02036
02037
02038
02039
02040
02041 void EMC_TOOL_STAT_MSG::update(CMS *cms)
02042 {
02043
02044 }
02045
02046
02047
02048
02049
02050
02051
02052 void EMC_AXIS_STAT::update(CMS *cms)
02053 {
02054
02055 EMC_AXIS_STAT_MSG::update(cms);
02056 cms->update(axisType);
02057 cms->update(units);
02058 cms->update(p);
02059 cms->update(i);
02060 cms->update(d);
02061 cms->update(ff0);
02062 cms->update(ff1);
02063 cms->update(ff2);
02064 cms->update(backlash);
02065 cms->update(bias);
02066 cms->update(maxError);
02067 cms->update(deadband);
02068 cms->update(cycleTime);
02069 cms->update(inputScale);
02070 cms->update(inputOffset);
02071 cms->update(outputScale);
02072 cms->update(outputOffset);
02073 cms->update(minPositionLimit);
02074 cms->update(maxPositionLimit);
02075 cms->update(minOutputLimit);
02076 cms->update(maxOutputLimit);
02077 cms->update(maxFerror);
02078 cms->update(minFerror);
02079 cms->update(homingVel);
02080 cms->update(homeOffset);
02081 cms->update(enablePolarity);
02082 cms->update(minLimitSwitchPolarity);
02083 cms->update(maxLimitSwitchPolarity);
02084 cms->update(homeSwitchPolarity);
02085 cms->update(homingPolarity);
02086 cms->update(faultPolarity);
02087 cms->update(setpoint);
02088 cms->update(ferrorCurrent);
02089 cms->update(ferrorHighMark);
02090 cms->update(output);
02091 cms->update(input);
02092 cms->update(inpos);
02093 cms->update(homing);
02094 cms->update(homed);
02095 cms->update(fault);
02096 cms->update(enabled);
02097 cms->update(minSoftLimit);
02098 cms->update(maxSoftLimit);
02099 cms->update(minHardLimit);
02100 cms->update(maxHardLimit);
02101 cms->update(overrideLimits);
02102 cms->update(scale);
02103 cms->update(alter);
02104
02105 }
02106
02107
02108
02109
02110
02111
02112
02113 void EMC_INIT::update(CMS *cms)
02114 {
02115
02116 EMC_CMD_MSG::update(cms);
02117
02118 }
02119
02120
02121
02122
02123
02124
02125
02126 void EMC_TRAJ_SET_SCALE::update(CMS *cms)
02127 {
02128
02129 EMC_TRAJ_CMD_MSG::update(cms);
02130 cms->update(scale);
02131
02132 }
02133
02134
02135
02136
02137
02138
02139
02140 void EMC_AXIS_SET_HOMING_VEL::update(CMS *cms)
02141 {
02142
02143 EMC_AXIS_CMD_MSG::update(cms);
02144 cms->update(homingVel);
02145
02146 }
02147
02148
02149
02150
02151
02152
02153
02154 void EMC_IO_ABORT::update(CMS *cms)
02155 {
02156
02157 EMC_IO_CMD_MSG::update(cms);
02158
02159 }
02160
02161
02162
02163
02164
02165
02166
02167 void EMC_TASK_STAT::update(CMS *cms)
02168 {
02169
02170 EMC_TASK_STAT_MSG::update(cms);
02171 cms->update(mode);
02172 cms->update(state);
02173 cms->update(execState);
02174 cms->update(interpState);
02175 cms->update(motionLine);
02176 cms->update(currentLine);
02177 cms->update(readLine);
02178 cms->update(file,256);
02179 cms->update(command,256);
02180 EmcPose_update(cms,&origin);
02181 EmcPose_update(cms,&toolOffset);
02182 cms->update(activeGCodes,12);
02183 cms->update(activeMCodes,7);
02184 cms->update(activeSettings,3);
02185 cms->update(programUnits);
02186 cms->update(interpreter_errcode);
02187
02188 }
02189
02190
02191
02192
02193
02194
02195
02196 void EMC_TOOL_ABORT::update(CMS *cms)
02197 {
02198
02199 EMC_TOOL_CMD_MSG::update(cms);
02200
02201 }
02202
02203
02204
02205
02206
02207
02208
02209 void EMC_SPINDLE_ENABLE::update(CMS *cms)
02210 {
02211
02212 EMC_SPINDLE_CMD_MSG::update(cms);
02213
02214 }
02215
02216
02217
02218
02219
02220
02221
02222 void EMC_TRAJ_SET_AXES::update(CMS *cms)
02223 {
02224
02225 EMC_TRAJ_CMD_MSG::update(cms);
02226 cms->update(axes);
02227
02228 }
02229
02230
02231
02232
02233
02234
02235
02236 void EMC_TOOL_LOAD_TOOL_TABLE::update(CMS *cms)
02237 {
02238
02239 EMC_TOOL_CMD_MSG::update(cms);
02240 cms->update(file,256);
02241
02242 }
02243
02244
02245
02246
02247
02248
02249
02250 void EMC_TASK_SET_STATE::update(CMS *cms)
02251 {
02252
02253 EMC_TASK_CMD_MSG::update(cms);
02254 cms->update(state);
02255
02256 }
02257
02258
02259
02260
02261
02262
02263
02264 void EMC_SPINDLE_BRAKE_RELEASE::update(CMS *cms)
02265 {
02266
02267 EMC_SPINDLE_CMD_MSG::update(cms);
02268
02269 }
02270
02271
02272
02273
02274
02275
02276
02277 void EMC_AXIS_STAT_MSG::update(CMS *cms)
02278 {
02279 cms->update(axis);
02280
02281 }
02282
02283
02284
02285
02286
02287
02288
02289 void EMC_AXIS_LOAD_COMP::update(CMS *cms)
02290 {
02291
02292 EMC_AXIS_CMD_MSG::update(cms);
02293 cms->update(file,256);
02294
02295 }
02296
02297
02298
02299
02300
02301
02302
02303 void EMC_TRAJ_SET_UNITS::update(CMS *cms)
02304 {
02305
02306 EMC_TRAJ_CMD_MSG::update(cms);
02307 cms->update(linearUnits);
02308 cms->update(angularUnits);
02309
02310 }
02311
02312
02313
02314
02315
02316
02317
02318 void EMC_STAT_MSG::update(CMS *cms)
02319 {
02320
02321 }
02322
02323
02324
02325
02326
02327
02328
02329 void EMC_TASK_SET_MODE::update(CMS *cms)
02330 {
02331
02332 EMC_TASK_CMD_MSG::update(cms);
02333 cms->update(mode);
02334
02335 }
02336
02337
02338
02339
02340
02341
02342
02343 void EMC_AXIS_INCR_JOG::update(CMS *cms)
02344 {
02345
02346 EMC_AXIS_CMD_MSG::update(cms);
02347 cms->update(incr);
02348 cms->update(vel);
02349
02350 }
02351
02352
02353
02354
02355
02356
02357
02358 void EMC_AXIS_ACTIVATE::update(CMS *cms)
02359 {
02360
02361 EMC_AXIS_CMD_MSG::update(cms);
02362
02363 }
02364
02365
02366
02367
02368
02369
02370
02371 void EMC_TRAJ_SET_PROBE_INDEX::update(CMS *cms)
02372 {
02373
02374 EMC_TRAJ_CMD_MSG::update(cms);
02375 cms->update(index);
02376
02377 }
02378
02379
02380
02381
02382
02383
02384
02385 void EMC_AXIS_SET_MAX_OUTPUT_LIMIT::update(CMS *cms)
02386 {
02387
02388 EMC_AXIS_CMD_MSG::update(cms);
02389 cms->update(limit);
02390
02391 }
02392
02393
02394
02395
02396
02397
02398
02399 void EMC_SPINDLE_ABORT::update(CMS *cms)
02400 {
02401
02402 EMC_SPINDLE_CMD_MSG::update(cms);
02403
02404 }
02405
02406
02407
02408
02409
02410
02411
02412 void EMC_AXIS_SET_OUTPUT_SCALE::update(CMS *cms)
02413 {
02414
02415 EMC_AXIS_CMD_MSG::update(cms);
02416 cms->update(scale);
02417 cms->update(offset);
02418
02419 }
02420
02421
02422
02423
02424
02425
02426
02427 void EMC_SPINDLE_ON::update(CMS *cms)
02428 {
02429
02430 EMC_SPINDLE_CMD_MSG::update(cms);
02431 cms->update(speed);
02432
02433 }
02434
02435
02436
02437
02438
02439
02440
02441 void EMC_SPINDLE_INIT::update(CMS *cms)
02442 {
02443
02444 EMC_SPINDLE_CMD_MSG::update(cms);
02445
02446 }
02447
02448
02449
02450
02451
02452
02453
02454 void EMC_AUX_HALT::update(CMS *cms)
02455 {
02456
02457 EMC_AUX_CMD_MSG::update(cms);
02458
02459 }
02460
02461
02462
02463
02464
02465
02466
02467 void EMC_TASK_PLAN_END::update(CMS *cms)
02468 {
02469
02470 EMC_TASK_CMD_MSG::update(cms);
02471
02472 }
02473
02474
02475
02476
02477
02478
02479
02480 void EMC_TRAJ_SET_OFFSET::update(CMS *cms)
02481 {
02482
02483 EMC_TRAJ_CMD_MSG::update(cms);
02484 EmcPose_update(cms,&offset);
02485
02486 }
02487
02488
02489
02490
02491
02492
02493
02494 void EMC_AXIS_ABORT::update(CMS *cms)
02495 {
02496
02497 EMC_AXIS_CMD_MSG::update(cms);
02498
02499 }
02500
02501
02502
02503
02504
02505
02506
02507 void EMC_TRAJ_CMD_MSG::update(CMS *cms)
02508 {
02509
02510 }
02511
02512
02513
02514
02515
02516
02517
02518 void EMC_OPERATOR_ERROR::update(CMS *cms)
02519 {
02520 cms->update(id);
02521 cms->update(error,256);
02522
02523 }
02524
02525
02526
02527
02528
02529
02530
02531 void EMC_SET_AIO_INDEX::update(CMS *cms)
02532 {
02533 cms->update(value);
02534 cms->update(index);
02535
02536 }
02537
02538
02539
02540
02541
02542
02543
02544 void EMC_AXIS_SET_MAX_VELOCITY::update(CMS *cms)
02545 {
02546
02547 EMC_AXIS_CMD_MSG::update(cms);
02548 cms->update(vel);
02549
02550 }
02551
02552
02553
02554
02555
02556
02557
02558 void EMC_SET_DEBUG::update(CMS *cms)
02559 {
02560 cms->update(debug);
02561
02562 }
02563
02564
02565
02566
02567
02568
02569
02570 void EMC_HALT::update(CMS *cms)
02571 {
02572
02573 EMC_CMD_MSG::update(cms);
02574
02575 }
02576
02577
02578
02579
02580
02581
02582
02583 void EMC_SET_DIO_INDEX::update(CMS *cms)
02584 {
02585 cms->update(value);
02586 cms->update(index);
02587
02588 }
02589
02590
02591
02592
02593
02594
02595
02596 void EMC_TASK_PLAN_STEP::update(CMS *cms)
02597 {
02598
02599 EMC_TASK_CMD_MSG::update(cms);
02600
02601 }
02602
02603
02604
02605
02606
02607
02608
02609 void EMC_AXIS_DISABLE::update(CMS *cms)
02610 {
02611
02612 EMC_AXIS_CMD_MSG::update(cms);
02613
02614 }
02615
02616
02617
02618
02619
02620
02621
02622 void EMC_AXIS_SET_GAINS::update(CMS *cms)
02623 {
02624
02625 EMC_AXIS_CMD_MSG::update(cms);
02626 cms->update(p);
02627 cms->update(i);
02628 cms->update(d);
02629 cms->update(ff0);
02630 cms->update(ff1);
02631 cms->update(ff2);
02632 cms->update(backlash);
02633 cms->update(bias);
02634 cms->update(maxError);
02635 cms->update(deadband);
02636
02637 }
02638
02639
02640
02641
02642
02643
02644
02645 void EMC_TRAJ_SET_ORIGIN::update(CMS *cms)
02646 {
02647
02648 EMC_TRAJ_CMD_MSG::update(cms);
02649 EmcPose_update(cms,&origin);
02650
02651 }
02652
02653
02654
02655
02656
02657
02658
02659 void EMC_SPINDLE_BRAKE_ENGAGE::update(CMS *cms)
02660 {
02661
02662 EMC_SPINDLE_CMD_MSG::update(cms);
02663
02664 }
02665
02666
02667
02668
02669
02670
02671
02672 void EMC_AXIS_SET_CYCLE_TIME::update(CMS *cms)
02673 {
02674
02675 EMC_AXIS_CMD_MSG::update(cms);
02676 cms->update(cycleTime);
02677
02678 }
02679
02680
02681
02682
02683
02684
02685
02686 void EMC_TRAJ_STAT::update(CMS *cms)
02687 {
02688
02689 EMC_TRAJ_STAT_MSG::update(cms);
02690 cms->update(linearUnits);
02691 cms->update(angularUnits);
02692 cms->update(cycleTime);
02693 cms->update(axes);
02694 cms->update(mode);
02695 cms->update(enabled);
02696 cms->update(inpos);
02697 cms->update(queue);
02698 cms->update(activeQueue);
02699 cms->update(queueFull);
02700 cms->update(id);
02701 cms->update(paused);
02702 cms->update(scale);
02703 EmcPose_update(cms,&position);
02704 EmcPose_update(cms,&actualPosition);
02705 cms->update(velocity);
02706 cms->update(acceleration);
02707 cms->update(maxVelocity);
02708 cms->update(maxAcceleration);
02709 EmcPose_update(cms,&probedPosition);
02710 cms->update(probe_index);
02711 cms->update(probe_polarity);
02712 cms->update(probe_tripped);
02713 cms->update(probing);
02714 cms->update(probeval);
02715 cms->update(kinematics_type);
02716
02717 }
02718
02719
02720
02721
02722
02723
02724
02725 void EMC_AXIS_HOME::update(CMS *cms)
02726 {
02727
02728 EMC_AXIS_CMD_MSG::update(cms);
02729
02730 }
02731
02732
02733
02734
02735
02736
02737
02738 void EMC_AXIS_INIT::update(CMS *cms)
02739 {
02740
02741 EMC_AXIS_CMD_MSG::update(cms);
02742
02743 }
02744
02745
02746
02747
02748
02749
02750
02751 void EMC_AXIS_ENABLE::update(CMS *cms)
02752 {
02753
02754 EMC_AXIS_CMD_MSG::update(cms);
02755
02756 }
02757
02758
02759
02760
02761
02762
02763
02764 void EMC_TRAJ_SET_MAX_ACCELERATION::update(CMS *cms)
02765 {
02766
02767 EMC_TRAJ_CMD_MSG::update(cms);
02768 cms->update(acceleration);
02769
02770 }
02771
02772
02773
02774
02775
02776
02777
02778 void EMC_LUBE_STAT_MSG::update(CMS *cms)
02779 {
02780
02781 }
02782
02783
02784
02785
02786
02787
02788
02789 void EMC_LUBE_STAT::update(CMS *cms)
02790 {
02791
02792 EMC_LUBE_STAT_MSG::update(cms);
02793 cms->update(on);
02794 cms->update(level);
02795
02796 }
02797
02798
02799
02800
02801
02802
02803
02804 void EMC_SPINDLE_INCREASE::update(CMS *cms)
02805 {
02806
02807 EMC_SPINDLE_CMD_MSG::update(cms);
02808
02809 }
02810
02811
02812
02813
02814
02815
02816
02817 void EMC_TASK_INIT::update(CMS *cms)
02818 {
02819
02820 EMC_TASK_CMD_MSG::update(cms);
02821
02822 }
02823
02824
02825
02826
02827
02828
02829
02830 void EMC_AUX_CMD_MSG::update(CMS *cms)
02831 {
02832
02833 }
02834
02835
02836
02837
02838
02839
02840
02841 void EMC_TRAJ_CIRCULAR_MOVE::update(CMS *cms)
02842 {
02843
02844 EMC_TRAJ_CMD_MSG::update(cms);
02845 EmcPose_update(cms,&end);
02846 cms->update(center);
02847 cms->update(normal);
02848 cms->update(turn);
02849
02850 }
02851
02852
02853
02854
02855
02856
02857
02858 void EMC_SPINDLE_HALT::update(CMS *cms)
02859 {
02860
02861 EMC_SPINDLE_CMD_MSG::update(cms);
02862
02863 }
02864
02865
02866
02867
02868
02869
02870
02871 void EMC_TRAJ_SET_TELEOP_VECTOR::update(CMS *cms)
02872 {
02873
02874 EMC_TRAJ_CMD_MSG::update(cms);
02875 EmcPose_update(cms,&vector);
02876
02877 }
02878
02879
02880
02881
02882
02883
02884
02885 void EMC_AXIS_SET_MIN_FERROR::update(CMS *cms)
02886 {
02887
02888 EMC_AXIS_CMD_MSG::update(cms);
02889 cms->update(ferror);
02890
02891 }
02892
02893
02894
02895
02896
02897
02898
02899 void EMC_SET_POLARITY::update(CMS *cms)
02900 {
02901 cms->update(value);
02902 cms->update(polarity);
02903
02904 }
02905
02906
02907
02908
02909
02910
02911
02912 void EMC_AUX_ESTOP_ON::update(CMS *cms)
02913 {
02914
02915 EMC_AUX_CMD_MSG::update(cms);
02916
02917 }
02918
02919
02920
02921
02922
02923
02924
02925 void EMC_NULL::update(CMS *cms)
02926 {
02927
02928 }
02929
02930
02931
02932
02933
02934
02935
02936 void EMC_COOLANT_FLOOD_OFF::update(CMS *cms)
02937 {
02938
02939 EMC_COOLANT_CMD_MSG::update(cms);
02940
02941 }
02942
02943
02944
02945
02946
02947
02948
02949 void EmcPose_update(CMS *cms,EmcPose *x)
02950 {
02951 PmCartesian_update(cms,&(x->tran));
02952 cms->update(x->a);
02953 cms->update(x->b);
02954 cms->update(x->c);
02955
02956 }
02957
02958
02959
02960
02961
02962
02963
02964 void EMC_MOTION_STAT::update(CMS *cms)
02965 {
02966
02967 EMC_MOTION_STAT_MSG::update(cms);
02968 traj.update(cms);
02969 for(int i_axis = 0;i_axis < 8 ;i_axis++)
02970 axis[i_axis].update(cms);
02971 cms->update(debug);
02972
02973 }
02974
02975
02976
02977
02978
02979
02980
02981 void EMC_AXIS_SET_OUTPUT::update(CMS *cms)
02982 {
02983
02984 EMC_AXIS_CMD_MSG::update(cms);
02985 cms->update(output);
02986
02987 }
02988
02989
02990
02991
02992
02993
02994
02995 void EMC_TRAJ_PAUSE::update(CMS *cms)
02996 {
02997
02998 EMC_TRAJ_CMD_MSG::update(cms);
02999
03000 }
03001
03002
03003
03004
03005
03006
03007
03008 void EMC_TRAJ_SET_MAX_VELOCITY::update(CMS *cms)
03009 {
03010
03011 EMC_TRAJ_CMD_MSG::update(cms);
03012 cms->update(velocity);
03013
03014 }
03015
03016
03017
03018
03019
03020
03021
03022 void EMC_AUX_STAT_MSG::update(CMS *cms)
03023 {
03024
03025 }
03026
03027
03028
03029
03030
03031
03032
03033 void EMC_TASK_PLAN_OPEN::update(CMS *cms)
03034 {
03035
03036 EMC_TASK_CMD_MSG::update(cms);
03037 cms->update(file,256);
03038
03039 }
03040
03041
03042
03043
03044
03045
03046
03047 void EMC_AXIS_SET_HOME_OFFSET::update(CMS *cms)
03048 {
03049
03050 EMC_AXIS_CMD_MSG::update(cms);
03051 cms->update(offset);
03052
03053 }
03054
03055
03056
03057
03058
03059
03060
03061 void EMC_TRAJ_SET_MODE::update(CMS *cms)
03062 {
03063
03064 EMC_TRAJ_CMD_MSG::update(cms);
03065 cms->update(mode);
03066
03067 }
03068
03069
03070
03071
03072
03073
03074
03075 void EMC_TASK_PLAN_EXECUTE::update(CMS *cms)
03076 {
03077
03078 EMC_TASK_CMD_MSG::update(cms);
03079 cms->update(command,256);
03080
03081 }
03082
03083
03084
03085
03086
03087
03088
03089 void EMC_COOLANT_FLOOD_ON::update(CMS *cms)
03090 {
03091
03092 EMC_COOLANT_CMD_MSG::update(cms);
03093
03094 }
03095
03096
03097
03098
03099
03100
03101
03102 void EMC_COOLANT_STAT::update(CMS *cms)
03103 {
03104
03105 EMC_COOLANT_STAT_MSG::update(cms);
03106 cms->update(mist);
03107 cms->update(flood);
03108
03109 }
03110
03111
03112
03113
03114
03115
03116
03117 void EMC_TRAJ_SET_TELEOP_ENABLE::update(CMS *cms)
03118 {
03119
03120 EMC_TRAJ_CMD_MSG::update(cms);
03121 cms->update(enable);
03122
03123 }
03124
03125
03126
03127
03128
03129
03130
03131 void CANON_POSITION_update(CMS *cms,CANON_POSITION *x)
03132 {
03133 cms->update(x->x);
03134 cms->update(x->y);
03135 cms->update(x->z);
03136 cms->update(x->a);
03137 cms->update(x->b);
03138 cms->update(x->c);
03139
03140 }
03141
03142
03143
03144
03145
03146
03147
03148 void EMC_AXIS_HALT::update(CMS *cms)
03149 {
03150
03151 EMC_AXIS_CMD_MSG::update(cms);
03152
03153 }
03154
03155
03156
03157
03158
03159
03160
03161 void EMC_TASK_PLAN_PAUSE::update(CMS *cms)
03162 {
03163
03164 EMC_TASK_CMD_MSG::update(cms);
03165
03166 }
03167
03168
03169
03170
03171
03172
03173
03174 void EMC_MOTION_STAT_MSG::update(CMS *cms)
03175 {
03176 cms->update(heartbeat);
03177
03178 }
03179
03180
03181
03182
03183
03184
03185
03186 void EMC_TASK_HALT::update(CMS *cms)
03187 {
03188
03189 EMC_TASK_CMD_MSG::update(cms);
03190
03191 }
03192
03193
03194
03195
03196
03197
03198
03199 void EMC_TRAJ_PROBE::update(CMS *cms)
03200 {
03201
03202 EMC_TRAJ_CMD_MSG::update(cms);
03203 EmcPose_update(cms,&pos);
03204
03205 }
03206
03207
03208
03209
03210
03211
03212
03213 void EMC_LUBE_OFF::update(CMS *cms)
03214 {
03215
03216 EMC_LUBE_CMD_MSG::update(cms);
03217
03218 }
03219
03220
03221
03222
03223
03224
03225
03226 void EMC_LUBE_ON::update(CMS *cms)
03227 {
03228
03229 EMC_LUBE_CMD_MSG::update(cms);
03230
03231 }
03232
03233
03234
03235
03236
03237
03238
03239 void EMC_COOLANT_ABORT::update(CMS *cms)
03240 {
03241
03242 EMC_COOLANT_CMD_MSG::update(cms);
03243
03244 }
03245
03246
03247
03248
03249
03250
03251
03252 void EMC_LUBE_ABORT::update(CMS *cms)
03253 {
03254
03255 EMC_LUBE_CMD_MSG::update(cms);
03256
03257 }
03258
03259
03260
03261
03262
03263
03264
03265 void EMC_TRAJ_INIT::update(CMS *cms)
03266 {
03267
03268 EMC_TRAJ_CMD_MSG::update(cms);
03269
03270 }
03271
03272
03273
03274
03275
03276
03277
03278 void EMC_SPINDLE_FORWARD::update(CMS *cms)
03279 {
03280
03281 EMC_SPINDLE_CMD_MSG::update(cms);
03282
03283 }
03284
03285
03286
03287
03288
03289
03290
03291 void EMC_TRAJ_DISABLE::update(CMS *cms)
03292 {
03293
03294 EMC_TRAJ_CMD_MSG::update(cms);
03295
03296 }
03297
03298
03299
03300
03301
03302
03303
03304 void EMC_TOOL_UNLOAD::update(CMS *cms)
03305 {
03306
03307 EMC_TOOL_CMD_MSG::update(cms);
03308
03309 }
03310
03311
03312
03313
03314
03315
03316
03317 void EMC_MOTION_SET_DOUT::update(CMS *cms)
03318 {
03319
03320 EMC_MOTION_CMD_MSG::update(cms);
03321 cms->update(index);
03322 cms->update(start);
03323 cms->update(end);
03324
03325 }
03326
03327
03328
03329
03330
03331
03332
03333 void EMC_MOTION_CMD_MSG::update(CMS *cms)
03334 {
03335
03336 }
03337
03338
03339
03340
03341
03342
03343
03344 void EMC_TRAJ_SET_PROBE_POLARITY::update(CMS *cms)
03345 {
03346
03347 EMC_TRAJ_CMD_MSG::update(cms);
03348 cms->update(polarity);
03349
03350 }
03351
03352
03353
03354
03355
03356
03357
03358 void EMC_IO_SET_CYCLE_TIME::update(CMS *cms)
03359 {
03360
03361 EMC_IO_CMD_MSG::update(cms);
03362 cms->update(cycleTime);
03363
03364 }
03365
03366
03367
03368
03369
03370
03371
03372 void EMC_AXIS_SET_MIN_OUTPUT_LIMIT::update(CMS *cms)
03373 {
03374
03375 EMC_AXIS_CMD_MSG::update(cms);
03376 cms->update(limit);
03377
03378 }
03379