24.12.2019, 18:50
(This post was last modified: 24.12.2019, 18:50 by josdegroot.)
Thanks Erwin,
I'm already a step further and it lookalike the scripts is working.
If I run the diagnostics inside ETS I see that the Logic machine sends an ON and OFF message to the group that has to turn the electrical radiator on... but nothing will happen....
The scripts that I'm using?
Do you have any idea why the group doesn't respond to the On and Off command? Do I have to set a datatype (switch?) somewhere?
I'm already a step further and it lookalike the scripts is working.
If I run the diagnostics inside ETS I see that the Logic machine sends an ON and OFF message to the group that has to turn the electrical radiator on... but nothing will happen....
The scripts that I'm using?
Do you have any idea why the group doesn't respond to the On and Off command? Do I have to set a datatype (switch?) somewhere?
Code:
-- init pid algorithm
if not p then
p = PID:init({
current = '12/2/1',
setpoint = '32/1/1',
output = '12/0/7'
})
end
-- run algorithm
p:run()