毕设外文翻译(6)

发布时间:2021-06-07

cell transported from NC server to NC core

{

Bit32 Flag;//transfer content type

Bit32 dword0; //control flag, file new or old, or first data

Bit32 dword1; //file flag, command type, or second data

Bit32 dword2; //file name size, cell number, or third data

Bit32 dword3; //file data size, size of a cell, or fourth

data

union DataBuffer{

struct CharData

{

char dataBuf1[40]; //file name, or first buffer unit

char dataBuf2[1024]; //file content, or second buffer

unit

}String;

struct LongData

{

Bit32 databuf[300];

}Data;

}buf;

};//1220Bytes

从数控子系统发送到数控服务器的状态数据结构如下:

#define AxisNumMax 9

struct nc_status_data{

Bit32 command_pos[AxisNumMax];

Bit32 actual_pos[AxisNumMax];

double command_vel[AxisNumMax]; // Velocity

double actual_vel[AxisNumMax];

float feed_speed;

char message_buf[1024];

struct NC_EVENT event_buf;

struct ERROR_MSG err_buf;

int mode,status;

int free_buf;

int current_feature;//thread,line,dot line,color

Bit32 current_gcode_row,current_o_num;

};//1303 bytes

struct NC_EVENT{

long msgtype;

unsigned char sentry;

int used;

};

struct ERROR_MSG

{

毕设外文翻译(6).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219