我用WINCC V6.0 SP2创建了一个多用户项目,在该项目下编写了一个项目函数(有4个返回值),如下:
#include "apdefap.h"
long int FUNC(long int a,long int b,long int c,long int d)
{
.....
....
return (a,b,c,d);
}
在该项目函数编译后没有报警和错误,保存后,再在接下来的全局脚本调用该项目函数,
#include "apdefap.h"
int gscAction( void )
{
FUNC("aa","bb","cc","dd")
.......
return 0;
}
在编译该全局脚本,出现:
compiling.....
error(0069):type mismatch in argument1
error(0069):type mismatch in argument2
error(0069):type mismatch in argument3
error(0069):type mismatch in argument4
4 error(s),0 warring(s)
这是为什么呢?