I've problems with BLIND_NIGHT from OSCAT BUILDING. This function block seems not to be working in my case. I've been connected to the PLC when the sunset comes and nothing happened
My code looks like this:
I also had a problem with the fact that after the power failure the blinds are going automatically up - I didn't want that is why I introduced the xInit global variable which is false by default and is set to true after the first PLC cycle. Thanks to this restart of the PLC is not moving the blinds up.
I was testing the whole code with IN := FALSE for BLIND_INPUT but it also didn't help, the BLIND_NIGHT was not working.
Do you see any obvious problems here? Can somebody share their code if he is successful with using BLIND_NIGHT?
Last edit: dawidr 2021-04-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've problems with BLIND_NIGHT from OSCAT BUILDING. This function block seems not to be working in my case. I've been connected to the PLC when the sunset comes and nothing happened
My code looks like this:
and:
I also had a problem with the fact that after the power failure the blinds are going automatically up - I didn't want that is why I introduced the xInit global variable which is false by default and is set to true after the first PLC cycle. Thanks to this restart of the PLC is not moving the blinds up.
I was testing the whole code with IN := FALSE for BLIND_INPUT but it also didn't help, the BLIND_NIGHT was not working.
Do you see any obvious problems here? Can somebody share their code if he is successful with using BLIND_NIGHT?
Last edit: dawidr 2021-04-12