I have modified the code and now you can easily put start and stop hour and min both. You don't need to search for that to put now in the code. There is a calculation box in the beginning of the code..I put a comment where to put different period hour and min.
Please let me how you are getting!!
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
Q1 Lit up at 21.35 (first on period) and then stayed on ie the rest of the on off programs did not work.
Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
Hi Stuart,
If start hour and stop hour is same..in that case stop min must be higher than start min. Clock can't run reverse. I have corrected part of the issue. It will work now for period 1, 2 and 3 if they are like different slots of different hour..if they are in the same hour only period 1 will work..you can test that meanwhile I am modifying rest bit..
Here is the code in which you should be able to set three periods in same hour to test the system. But please remember to put start min smaller than stop min for all three periods. Like
Period 1:
HOUR1_START=23
MIN1_STRAT = 34
HOUR1_STOP =23
MIN1_STOP = 36
Period 2:
HOUR2_START=23
MIN2_START = 37
HOUR2_STOP=23
MIN2_STOP = 39
Period 3:
HOUR3_START = 23
MIN3_START = 40
HOUR3_STOP=23
MIN3_STOP=42
first period comes on and then off, then stays off ie other 2 periods do not work.
The reason I set the last period to same on /off time was to cancel that time period so it only comes on 2 periods (I thought I could Cancel a period like this)
Ok I will try last code you posted now
Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
The first period came on then went off, the second period came on and went off straight away before off time, and period 3 did not come on at all.
Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
Hi Stuart,
Thanks for the postings. It would not be possible to find out problem without Flowcode's strong simulation feature. I have made simple clock and test code in simulation. Now it's working fine.
That's great I will have a go at that now, I will let you know in a bit...
thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
But as soon as I programmed it the Q1 light lit up at 17.52 which it shouldn't of done.
Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
However on every one even this one as soon as you program the miac the Q1 light is on, then it goes off at the first off time and carries on normally.
EDIT: just gone off at 18.22 (first off time)
Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
And the same as soon as you program the code Q1 relay comes on and goes off at first off time.
thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
I have just been looking at the flowchart for the code, does this mean anything in my pic ?
flowchart_DST.jpg (115.92 KiB) Viewed 18117 times
Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
Ohh..I thought I put off there but it seems I put ON which is wrong.
Actually I am still at university..Can't look at the simulation file. It's good that you have noticed the issue.
I tried disabling that miac relay on box, but it did not work.
thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
I changed the MIAC command to relay off, but that did not work.
thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
What are the variables rem1, rem2 and rem3 in the code please ?
thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.
I was just trying to read the flowchart that's all, to see if I could figure out why the relay comes on straight away.
thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.