Hi, after a successful Modbus query (read) I wanted to venture into the next chapter, to write Modbus.. but I need some help:
Modbus register 40016 defines Power value of inverter in W to provide (set-point):
positive discharge, negative charge
40016 Power Value for Charge (-) or Discharge (+)Activate has to be send before sending ‘Power Value for Charge (-) or Discharge (+)’
40151 "Activate Power Setpoint 802 active/ 803 inactiveWith register 41187 could be select the mapping of power measurement to Devcie or Metering
(3053: MsSrcMtr -> use Meter data; 3547: MsSrcDev -> use inverter data).
And which meaning the ‘Power Value for Charge (-) or Discharge (+)’ has!!
this is from SMA
this is from a guy who uses Siemes SPS.
and this is my first step:
[{"id":"95b6b7ed.d22d38","type":"modbus-write","z":"9f6752b0.b55988","name":"40151","showStatusActivities":true,"showErrors":true,"unitid":"3","dataType":"HoldingRegister","adr":"40151","quantity":"1","server":"b6c6500c.41cc1","emptyMsgOnFail":false,"keepMsgProperties":false,"x":790,"y":4320,"wires":[[],[]]},{"id":"d3f2c1e.3905f4","type":"ui_dropdown","z":"9f6752b0.b55988","name":"SBS manuelle Steuerung","label":"SBS manuell","tooltip":"","place":"Select option","group":"cafe7086.9845e8","order":13,"width":0,"height":0,"passthru":false,"multiple":false,"options":[{"label":"aktiv","value":802,"type":"num"},{"label":"aus","value":803,"type":"num"}],"payload":"","topic":"topic","topicType":"msg","x":270,"y":4320,"wires":[["d8369c1c.1bf58"]]},{"id":"86b1def.36c442","type":"debug","z":"9f6752b0.b55988","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":4380,"wires":[]},{"id":"d8369c1c.1bf58","type":"buffer-maker","z":"9f6752b0.b55988","name":"","specification":"spec","specificationType":"ui","items":[{"name":"item1","type":"uint32be","length":1,"dataType":"msg","data":"payload"}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","x":510,"y":4320,"wires":[["86b1def.36c442","95b6b7ed.d22d38"]]},{"id":"b6c6500c.41cc1","type":"modbus-client","name":"SBS2.5","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"192.168.168.55","tcpPort":"502","tcpType":"TPC-RTU-BUFFERED","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":3,"commandDelay":200,"clientTimeout":1000,"reconnectOnTimeout":true,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true},{"id":"cafe7086.9845e8","type":"ui_group","name":"manuelle Steuerung","tab":"69ee5cda.ec1a2c","order":3,"disp":true,"width":"6","collapse":false},{"id":"69ee5cda.ec1a2c","type":"ui_tab","name":"Speicher","icon":"fa-battery-half","order":4,"disabled":false,"hidden":false}]
which is unsuccessful
(I just wanted to switch the inverter in manuell mode)
this comes out of the buffer maker to write modbus
here some information from SMA:
SMA-Modbus-general-TI-en-10.pdf (286.3 KB)