Skip to content

Address mismatch between READ and WRITE #2

@locodust6

Description

@locodust6

Now, READ and WRITE have to change the address specification.

For example, to control W20, you need to do the following:

//READ
PLCData<short> devices = new(PlcDeviceType.W, 0x20, 1);

//WRITE
PLCData<short> devices2 = new(PlcDeviceType.W, 20, 1);

This seems to be because READ uses the specified address itself, and WRITE regards the specified address as a hexadecimal number and converts it to a decimal number.

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