Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface of overridden method 'START' of base 'FB_ENGINE' doesn't match declaration #1

Open
loraul opened this issue Jul 6, 2020 · 1 comment

Comments

@loraul
Copy link

loraul commented Jul 6, 2020

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.

@jclavier44
Copy link

Yep found the same issue, child class must have at least "rVelocity" and "iGear" like parent method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants