rusty icon indicating copy to clipboard operation
rusty copied to clipboard

Action block output CFC error on VAR connection same TYPE

Open rarris opened this issue 2 years ago • 1 comments

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'

rarris avatar Oct 19 '23 09:10 rarris

same error for FB->output

rarris avatar Nov 22 '23 06:11 rarris