kura icon indicating copy to clipboard operation
kura copied to clipboard

Enhancement: added Areas to S7 PLC Driver implementation

Open LucaDazi opened this issue 5 years ago • 1 comments

Added a new parameter to the S7 Channel Descriptor, so that information on S7 Area Code can be forwarded to Moka7.

Channel configuration is backward compatible with previous versions.

LucaDazi avatar May 19 '20 14:05 LucaDazi

It looks like the Counters and Timers areas require special treatment, in this case the value of the Amount argument of ReadArea/WriteArea needs to be adjusted (see Moka7 manual). In this case the library will transfer Amount * 2 bytes, the length of the supplied array must be at least Amount * 2. For the other areas the current implementation should be correct, the library will transfer Amount bytes. I can work on a fix.

nicolatimeus avatar May 22 '20 14:05 nicolatimeus