Skip to content

Unable to write negative value into DINT array. #73

@cernym85

Description

@cernym85

I found out that it's impossible to write negative value into DINT array, when writing whole array.

Current Behavior

Write fails on range check.

Possible Solution

Assuming that in function generateWriteMessageRequestForAtomic in /src/tag/index.ts on line 714 should be

valBuf.writeInt32LE(value[i], i * 4);

instead of

valBuf.writeUInt32LE(value[i], i * 4);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions