I attempted to compile and run your SCL code but it failed to compile as variables vhod1,2,3,4 are not declared anywhere (as previously reported by Ken M).
In the simbol table i wrote simbol name : Exercise FB1 FB1 and the ExerciseBD DB1 FB1.
var_input:
Dis_input01:bool:=false; // inputs set through the OP
........................
........................
Dis_input04:bool:=false;
End_var
var_output
vhod1:bool:=false; // inputs on the PLC
.
.
vhod2:bool:=false;
end_var
with the goto statement i was only trying to compare somehow the inputs of the plc and of op.
What variables did you enter as the passed parameters when you called the block ? (or did you not enter any but set the OP to write to the instance data block addresses that contain the function block's parameters ?)