PLCnext / CSharpExamples

Collection of various C# sample code for PLCnext Technology controllers.
MIT License
13 stars 11 forks source link

Index Out of Range #13

Closed martinboers closed 2 years ago

martinboers commented 2 years ago

The User Arrays example causes an Index Out of Range error.

In this for/next statement: https://github.com/PLCnext/CSharpExamples/blob/e61401b857c506ef1f4e5c68bed573418f32f9b5/PLCnext_CSharpExamples/04_UserArray/FBWithUserArray.cs#L147

... the comparison operator should be <, not <=.