Mastacheata wrote:
This script is obviously doing the opposite of what you want to achieve.
It also runs only once and at exact times. It does not repeat.
Code:
PAL.Loop := True;
PAL.WaitForTime('XX:59:59'); // Waiting for XX:00:00 will inevitably trigger the action the moment you start the script
Encoders[0].Start;
PAL.WaitForTime('+00:05:00');
Encoders[0].Stop;
Adjust the encoder number to suit your needs or copy and adjust the line if you need more encoders to start/stop.
I wrote this script based on your
Code:
PAL.Loop := True;
PAL.WaitForTime('05:59:59');
Encoders[5].Start;
PAL.WaitForTime('23:59:59');
Encoders[5].Stop;
But it loops without stopping at all
I had to modify it in the following way, to be able to use it as I wanted
Code:
PAL.Loop := True;
PAL.WaitForTime('05:59:59');
Encoders[5].Start;
PAL.WaitForTime('+18:00:00');
Encoders[5].Stop;