Dear community members, I am trying to write to modbus register to control a vsd via ModBus serial using raspberry pi and node red , i can read values from vsd but I do not know how to write to register containing multiple bits in one register i am using node-red-contrib-modbus flow
this is the info i have .
ADD= Modbus address 1 thru 127
Tbr= network speed baud rate 19.2
tFO= Format 8E1
trO= Timeout 10 seconds
Writing speed in RPM’s
CMD word is 8601 is the start and stop
CMD word is 8501 is the start and stop
To start the drive you write a Dec 6, then 7 then 15 to 8601 or 8501 ( Check for offset values)
CMD | bit 0: | = 1 : Switch on | |
---|---|---|---|
bit 1: | = 0 : Disable voltage | ||
bit 2: | = 0 : Quick stop/Emergency stop | ||
bit 3: | = 1 : Enable operation/Run command | ||
bit 4: | Reserved (set to 0). | ||
bit 5: | Reserved (set to 0). | ||
bit 6: | Reserved (set to 0). | ||
bit 7: | Fault reset/Fault acknowledgment active on 0 V 1 rising edge | ||
bit 8: | = 0 : RUN asked, 1 : STOP asked | ||
bit 9: | Reserved (set to 0). | ||
bit 10: | Reserved (set to 0). | ||
bit 11: | Direction of rotation command = | ||
0: Forward rotation | |||
1: Reverse rotation. Default value, this bit can be assigned to another command. | |||
bit 12: | Reserved (set to 0). | ||
bit 13: | Reserved (set to 0). | ||
bit 14: | Reserved (set to 0). | ||
bit 15: | Reserved (set to 0). |
please guys any help would be appreciated thank you