You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Aliazzzz,
I think there is a little mistake in OPP examples. When I try to compile the examples I get this error:
Start [FB_NewEngine]: C0094: Interface of overridden method 'START' of base 'FB_ENGINE' doesn't match declaration
Probably, the problem is because the declaration of variable inputs in method START should be the same in the base and child class. Now the declarations are different:
BASE CLASS: VAR_INPUT
rVelocity : REAL;
iGear : INT;
END_VAR
Hi Aliazzzz,
I think there is a little mistake in OPP examples. When I try to compile the examples I get this error:
Start [FB_NewEngine]: C0094: Interface of overridden method 'START' of base 'FB_ENGINE' doesn't match declaration
Probably, the problem is because the declaration of variable inputs in method START should be the same in the base and child class. Now the declarations are different:
BASE CLASS:
VAR_INPUT
rVelocity : REAL;
iGear : INT;
END_VAR
CHILD CLASS:
VAR_INPUT
fVelocity : REAL;
nGear : INT;
END_VAR
Thanks for your job.
The text was updated successfully, but these errors were encountered: