deye-controller icon indicating copy to clipboard operation
deye-controller copied to clipboard

work mode

Open cnu80 opened this issue 1 year ago • 1 comments

Hi, thanks for your project. I can set the prog table successfully.

Is it also possible to set the work mode ?

I checked the WritableRegisters but cannot find it. I want to switch between "Selling First" and "Zero Export to CT"

thanks

cnu80 avatar May 26 '24 17:05 cnu80

Hi, I have a similar requirement. I did some tests and found the register for setting the work mode (on a SUN-12K-SG04LP3) . It's address 142 and value is 0 for selling first, 1 for Zero export to Load and (I presume/haven't confirmed) 3 for Zero export to CT.

For now you can instantiate a register yourself like this WorkMode = IntWritable(address=142, low_limit=0, high_limit=2) and use it like usual.

augonis avatar Jun 20 '24 06:06 augonis