我在FB中编写的程序
FUNCTION_BLOCK FB2
//测试
VAR_INPUT
SampInEx:ARRAY[1..3,1..50] OF REAL;
expectedOut:ARRAY[1..1,1..50] OF REAL;
eta:REAL;
mc:REAL;
netw1:ARRAY[1..3,1..3] OF REAL;
netw2:ARRAY[1..1,1..4] OF REAL
;
// Input Parameters
END_VAR
VAR_TEMP
i:INT;
j:INT;
hidinput:ARRAY[1..3,1..50] OF REAL
;hidout:ARRAY[1..3,1..50] OF REAL;
END_VAR
VAR_OUTPUT
netw1z:ARRAY[1..3,1..3] OF REAL;
netw2z:ARRAY[1..1,1..4] OF REAL
;
output1:ARRAY[1..4,1..50] OF REAL
;
END_VAR
BEGIN
FOR i:= 1 TO 20 BY 1 DO
FC12(a:=netw1, b:=SampInEx, t:=hidinput);
FC13(a:=hidinput,x:=hidout)
// Statement Section
;
FC14(a:=hidout,x:=output1);
END_FOR;
END_FUNCTION_BLOCK
调用了两个模块,可是我在调用一个模块,编译是通过了,可是运行时CPU开始报错,说未装载或无法装载OB。我怀疑是我调用了太多模块还是定义了太多数据?有没有大神帮我看一下,谢谢大家!!!