Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

EMC_TASK_STAT Class Reference

#include <emc.hh>

Inheritance diagram for EMC_TASK_STAT:

Inheritance graph
[legend]
Collaboration diagram for EMC_TASK_STAT:

Collaboration graph
[legend]

Public Methods

 EMC_TASK_STAT ()
void update (CMS *cms)

Data Fields

int mode
int state
int execState
int interpState
int motionLine
int currentLine
int readLine
char file [EMC_TASK_FILENAME_LEN]
char command [EMC_TASK_COMMAND_LEN]
EmcPose origin
EmcPose toolOffset
int activeGCodes [EMC_TASK_ACTIVE_G_CODES]
int activeMCodes [EMC_TASK_ACTIVE_M_CODES]
double activeSettings [EMC_TASK_ACTIVE_SETTINGS]
CANON_UNITS programUnits
int interpreter_errcode

Constructor & Destructor Documentation

EMC_TASK_STAT::EMC_TASK_STAT  
 

Definition at line 103 of file emcops.cc.

00103                              :
00104   EMC_TASK_STAT_MSG(EMC_TASK_STAT_TYPE, sizeof(EMC_TASK_STAT))
00105 {
00106   int t;
00107 
00108   mode = EMC_TASK_MODE_MANUAL;
00109   state = EMC_TASK_STATE_ESTOP;
00110   execState = EMC_TASK_EXEC_DONE;
00111   interpState = EMC_TASK_INTERP_IDLE;
00112   motionLine = 0;
00113   currentLine = 0;
00114   readLine = 0;
00115   file[0] = 0;
00116   command[0] = 0;
00117 
00118   origin.tran.x = 0.0;
00119   origin.tran.y = 0.0;
00120   origin.tran.z = 0.0;
00121   origin.a = 0.0;
00122   origin.b = 0.0;
00123   origin.c = 0.0;
00124 
00125   toolOffset.tran.x = 0.0;
00126   toolOffset.tran.y = 0.0;
00127   toolOffset.tran.z = 0.0;
00128   toolOffset.a = 0.0;
00129   toolOffset.b = 0.0;
00130   toolOffset.c = 0.0;
00131 
00132   for (t = 0; t < EMC_TASK_ACTIVE_G_CODES; t++)
00133     activeGCodes[t] = -1;
00134   for (t = 0; t < EMC_TASK_ACTIVE_M_CODES; t++)
00135     activeMCodes[t] = -1;
00136   for (t = 0; t < EMC_TASK_ACTIVE_SETTINGS; t++)
00137     activeSettings[t] = 0.0;
00138 }


Member Function Documentation

void EMC_TASK_STAT::update CMS *    cms
 

Reimplemented from EMC_TASK_STAT_MSG.

Definition at line 2167 of file emc.cc.

Referenced by EMC_STAT::update().

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 }


Field Documentation

int EMC_TASK_STAT::activeGCodes[EMC_TASK_ACTIVE_G_CODES]
 

Definition at line 1994 of file emc.hh.

Referenced by emcTaskUpdate().

int EMC_TASK_STAT::activeMCodes[EMC_TASK_ACTIVE_M_CODES]
 

Definition at line 1995 of file emc.hh.

Referenced by emcTaskUpdate().

double EMC_TASK_STAT::activeSettings[EMC_TASK_ACTIVE_SETTINGS]
 

Definition at line 1996 of file emc.hh.

Referenced by emcTaskUpdate().

char EMC_TASK_STAT::command[EMC_TASK_COMMAND_LEN]
 

Definition at line 1991 of file emc.hh.

int EMC_TASK_STAT::currentLine
 

Definition at line 1988 of file emc.hh.

int EMC_TASK_STAT::execState
 

Definition at line 1985 of file emc.hh.

char EMC_TASK_STAT::file[EMC_TASK_FILENAME_LEN]
 

Definition at line 1990 of file emc.hh.

Referenced by emcTaskUpdate().

int EMC_TASK_STAT::interpState
 

Definition at line 1986 of file emc.hh.

int EMC_TASK_STAT::interpreter_errcode
 

Definition at line 1999 of file emc.hh.

int EMC_TASK_STAT::mode
 

Definition at line 1982 of file emc.hh.

Referenced by emcTaskUpdate().

int EMC_TASK_STAT::motionLine
 

Definition at line 1987 of file emc.hh.

Referenced by emcTaskUpdate().

EmcPose EMC_TASK_STAT::origin
 

Definition at line 1992 of file emc.hh.

CANON_UNITS EMC_TASK_STAT::programUnits
 

Definition at line 1997 of file emc.hh.

int EMC_TASK_STAT::readLine
 

Definition at line 1989 of file emc.hh.

int EMC_TASK_STAT::state
 

Definition at line 1983 of file emc.hh.

Referenced by emcTaskUpdate().

EmcPose EMC_TASK_STAT::toolOffset
 

Definition at line 1993 of file emc.hh.


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 15:29:01 2001 for EMC by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001