Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move code from codesys to hassio? #48

Open
cagger59 opened this issue May 31, 2022 · 0 comments
Open

Move code from codesys to hassio? #48

cagger59 opened this issue May 31, 2022 · 0 comments

Comments

@cagger59
Copy link

cagger59 commented May 31, 2022

Hi.
I wrote a code in codesys that I want to transfer to hassio. Can someone helpme?
It's for decrease current by disconnect some loads.
This code runs once/sek. Example: 26.5Amp, 3600/(10^2.25)= around 13sek before action
Example: 17.5Amp, 3600/(1^2.25)= 3600sek before action

IF strom1.rPayload >= 16.5 THEN
rMem1:=ABS(EXPT((strom1.rPayload - 16.5),2.25));
rMem2:=rMem1 + rMem2;
ELSE
rMem1:=0;
rMem2:=0;
END_IF
bMinne:= (rMem2>3600 OR bMinne) AND NOT memTon.Q;
memTon(IN:= bMinne, PT:=T#60S , Q=> , ET=> );
bVakt:=bMinne;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant