- 积分
- 0
- 注册时间
- 2007-5-12
- 仿真币
-
- 最后登录
- 1970-1-1
|
我编了一个CONSUB的子程序
源程序如下:
VOID_FUNCTION CONSUB(REAL *par, int *nPar)
{
BOOL errflg;
char COMMND[80],a[10];
int STATUS;
int IPAR[2];
double IM,JM;
int decimal, sign;
double DIS2;
char* WEI;
IM=par[1];
JM=par[2];
IPAR[1]=(int)IM;
IPAR[2]=(int)JM;
strcpy(a,"AZ");
c_sysfnc(a,IPAR,2,&DIS2,&errflg);
WEI=_fcvt(DIS2,7,&decimal,&sign);
strcpy(COMMND,"MOTION/1,VELOCITY,ICDISP=&WEI,FUN=90D");
c_modify(COMMND,&STATUS);
}
结果提示错误
ERROR: No MARKER/1239880 in call to SYSFNC/SYSARY/SYSPAR
ERROR:
ERROR: Found an unexpected token while looking for an initial real argument value.
ERROR: Statement : MOTION
ERROR: Argument : ICDISP
ERROR: Error line text : '[[SIMULATE]]/TRANSIENT, END=4.0, DTOUT=2.0E-002'
ERROR: Error token text : 'SIMULATE'
ERROR: Error token type : identifier
ERROR: Errors found parsing command. Command ignored.
请问这个错在哪里啊 |
|