图片:
FUNCTION FC1:INT
VAR_INPUT
a:INT;
b:INT;
END_VAR
IF a>b THEN FC1:=1;
END_IF;
IF a<b THEN FC1:=10;
ELSE FC1:=11;
END_IF;
END_FUNCTION
FUNCTION FC2:VOID
VAR
c:INT;
END_VAR
BEGIN
c:=FC1(a=1,b=2); // 这一步报错,不知错在哪里?报错信息如下:
END_FUNCTION
======================