rusty
rusty copied to clipboard
Action block output CFC error on VAR connection same TYPE
we have the the following CFC code programm
PROGRAM program_0
VAR_INPUT
in1,in2,in3,in4 : INT;
END_VAR
VAR_OUTPUT
out1,out2,out3 : INT;
END_VAR
VAR
x1, x2 : INT;
END_VAR
in the diagram if we connect x1 to the action block output "out1" (w/ or w/o input connection), we have the follwoing compile error
: error: Invalid assignment: cannot assign 'program_0.action1' to 'INT'
same error for FB->output