Skip to content

WriteArea() function #559

@gustaf71

Description

@gustaf71

Hi.

I had a chat with the actor of Snap7 and the function WriteArea()
When he was looking at the source code of the function for python-snap7 he couldn't understand why the WordLen was not handled in correct way.

In other words WordLen.Byte is not the only way to use WriteArea().

If you like to do

byte_index*8+bit_index with size of 1, that is not possible if word_len is not WordLen.Bit

For a better understanding what I'm talking about is to compare the orginal source code of Snap7 with the implementation of the same function in python-snap7

Or

Get the library Settimino for Arduino and check the source code.

If I was a good programmer I maybe will do it myself. But I like to hear from the people who made python-snap7 why the WriteArea() is different ??

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