robinson / gos7

Implementation of Siemens S7 protocol in golang
BSD 3-Clause "New" or "Revised" License
315 stars 124 forks source link

Best practice: Should change 'dbIndex' in 'DBX' format #58

Closed jiekechoo closed 6 months ago

jiekechoo commented 1 year ago

@robinson , Thanks for your project 'gos7', it is very useful in my project. I found some use tips for develpers in MultiItems write:

robinson commented 1 year ago

@jiekechoo thanks for you tip as well. Regarding S7DataItem.Amount, it is the amount of address that you want to read from or write to. For example, from AGWriteMulti depend on the Amount it should be converted to to calculate the data_size, whether that is a bit, a timer... Hope that helps. //R