mathiask88 / node-snap7

node.js wrapper for snap7
MIT License
163 stars 59 forks source link

Do you support reading and writing of DB blocks for s7-1200? #44

Closed SherryHolmes closed 5 years ago

SherryHolmes commented 5 years ago

Do you support reading and writing of DB blocks for s7-1200?Test finds read and write DB block failed

36700160 - CLI : function refused by CPU (Unknown error)

mathiask88 commented 5 years ago

@SherryHolmes Reading and writing blocks is possible for the 1200/1500 CPUs but it comes with some limitations. Just read the compatibility link here. For your problem these are the relevant information:

  1. Only global DBs can be accessed.
  2. The optimized block access must be turned off.
  3. The access level must be “full” and the “connection mechanism” must allow GET/PUT.