Używam bloków BLIND_INPUT oraz BLIND_CONTROL_S. Po zrobieniu prostego przykładu i odpaleniu PLC (albo po zaniku zasilania) zgodnie z dokumentacją odpala się kalibracja rolet:
BLIND_CONTROL_S
The module supports automatic calibration, which can cause, after a
power failure, to move up all blinds, which is undesired some times in your
absence. Therefore, in case of your absence the desired position of the
blinds should be given to the input PI. The blinds move to up position for
calibration, and then automatically move into the desired position. The automatic
calibration however can be prevented if both inputs UP and DN
are FALSE.
Teoretycznie można ustawić PI i roleta po kalibracji powinna wrócić do tej pozycji ale chciałbym to całkowicie wyłaczyć. Komuś udało się to zrobić? Chciałbym aby po zaniku i powrocie napięcia rolety zostały w tym miejscu w którym były przez zanikiem napięcia.
VAR
GarageBlindInput: OSCAT_BUILDING.BLIND_INPUT := (SINGLE_SWITCH := FALSE, PI := 10, MAX_RUNTIME := T#25S, MANUAL_TIMEOUT := T#60M, MASTER_MODE := TRUE);
GarageBlindControl: OSCAT_BUILDING.BLIND_CONTROL_S := (T_UP:=T#20S, T_DN:=T#18S);
END_VAR
GarageBlindInput(
POS:= GarageBlindControl.POS,
S1:= xBlindUp,
S2:= xBlindDown,
);
GarageBlindControl(
UP := GarageBlindInput.QU,
DN := GarageBlindInput.QD,
S_IN := GarageBlindInput.STATUS,
PI := GarageBlindInput.PO
);
xBlindControlDown := GarageBlindControl.MD;
xBlindControlUp := GarageBlindControl.MU;