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

Duplicate type definitions #12

Open
martinboers opened this issue May 18, 2022 · 0 comments
Open

Duplicate type definitions #12

martinboers opened this issue May 18, 2022 · 0 comments

Comments

@martinboers
Copy link
Member

Using toolchain version 2022.0, this C++ code in a Program .hpp file:

    //#port
    //#attributes(Output)
    boolean	outarrayBoolean[10] = { false };

    //#port
    //#attributes(Input)
    boolean	inarrayBoolean[10] = { false };

... leads to these two Data Type definitions in PLCnext Engineer:

image

The two data types in PLCnext Engineer both define identical types, i.e. an array of 10 BOOL values. Can you explain why you decided to do this, rather than simply create a single data type definition, called (for example) ARRAY_0_9_BOOL ?

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

1 participant