Skip to content

Conversation

Joshpolansky
Copy link
Member

What

Change the default local value to empty instead of undefined. Also convert numbers to numbers before processing..

Why

It is better..

Comment on lines 1500 to +1501
if ( this.value.call(this, variableName) === undefined) {
this.writeVariable(variableName, 'undefined');
this.writeVariable(variableName, '');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we doing this at all?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for local data, not data written to the plc. We implicitly create read variables for local data

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

Successfully merging this pull request may close these issues.

2 participants