Skip to content

add limits to stop you accidently writing out of bounds value to variables #476

@chrisbeardy

Description

@chrisbeardy

ADS lets you write values outside of bounds to variables and it just automatically rolls in round. E.g. you can write 50000 to an INT and the value in the PLC will be -15536. By default I think we should have safeguards to stop you doing this, i.e. check bounds of datatype. However this will technically be a breaking change, one mans bug is another feature so we may need to keep this an an optional to allow it. I am also not sure how this will effect writes where you don't specify type at this stage.

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