I am trying to use “Controller.Symmetric.Balancing” with a variable setpoint.
I defined a Channel ‘SETPOINT’ which I set via the REST api.
The log shows a partial success:
[re.Cycle] INFO [ontroller.api.common.ApiWorker] [ctrlApiRest0] Set Channel [ctrlBalancing0/Setpoint] to Value [1000]
However I can’t access this Channel-Value in the run() method of the Controller.
This code produces ‘UNDEFINED’ when I set the Channelvalue via REST
this.logWarn(this.log, "DBG: " .concat(this.channel(ChannelId.SETPOINT).getNextValue().asString()));
but shows the expected value when I call
this.channel(ChannelId.SETPOINT).setNextValue(100);
I also can’t find a similar example anywhere in existing code.
Any help would be appreciated.
I am not sure if I shoulds ask questions in german or english.