帮我看下 子程序的错误
我编了一个CONSUB的子程序源程序如下:
VOID_FUNCTION CONSUB(REAL *par, int *nPar)
{
BOOL errflg;
char COMMND,a;
intSTATUS;
int IPAR;
double IM,JM;
intdecimal, sign;
double DIS2;
char* WEI;
IM=par;
JM=par;
IPAR=(int)IM;
IPAR=(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 : '[]/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.
请问这个错在哪里啊 ERROR: No MARKER/1239880 in call to SYSFNC/SYSARY/SYSPAR表示MARKER/1239880不存在
Errors found parsing command. Command ignored.表示命令错误,上面那一条也可以引起命令错误:L
页:
[1]