// My Function block to Point Another "FB_byRef02"
FUNCTION_BLOCK FB_byRef
VAR_INPUT
IN_refFB : REFERENCE TO FB_byRef02; (* Pass FB by reference *)
END_VAR
VAR
_ptrVarAdr : POINTER TO INT; (* Get the ADR of the input var *)
_Test : BOOL;
END_VAR
IF NOT (__ISVALIDREF(IN_refFB)) THEN
RETURN; // Checking the adress of Input valid
END_IF
(* Get the adr of the input fb*)
_ptrVarAdr := ADR(IN_refFB);
IF _Test THEN // Im Changing input of the "FB_byRef02", this i want to do
_Test := FALSE;
IN_refFB.inChangeVal := TRUE;
END_IF
// End My Function BLock to Point Another "FB_byRef02"