DUEMMEGI
MCP 4 – User's manual
Contatto
2.3- Time triggered Equations
2.3.1- Scheduler Equations
Scheduler equation controls a digital output as function of specified ON/OFF time or date. MCP 4 includes a
timekeeper with back-up battery to avoid the date and time loss when disconnecting the main power supply.
The transition from standard to daylight saving time is made automatically by MCP 4, therefore no
intervention of the user is required.
The times specified in the scheduler equations can be daily or weekly times; the scheduled dates can be
yearly or absolute dates.
Keyword:
CLOCK
controls the output as function of current time
DATE
controls the output as function of the current date
Options:
Variable daily scheduling times
specified in a register (Rx) or in a Word (@WORD x)
containing a number in the range 0 to 1439, corresponding to the number of minutes of the day
starting from 0:00 (1439 = 23:59); the formula giving the number related to time hh:mm is the
following:
(hh x 60) + mm
Variable weekly scheduling times
specified in a register (Rx) or in a Word (@WORD x)
containing a number in the range 0 to 10079, corresponding to the number of minutes of the
week starting from 0:00 of Monday (10079 = 23:59 of Sunday); the formula giving the number
related to time DW:hh:mm, assuming for the days of the week (DW) MON=0…SUN=6, is the
following:
(DW x 1440) + (hh x 60) + mm
Variable yearly dates
specified in a register (Rx) or in a Word (@WORD x) containing a number
in the range 1 to 372 corresponding to the day of the year starting from January 1 (372 =
December 31); the formula giving the number related to the day DD (1
31) of month MM (1
12)
is the following:
(MM –1) x 31 + DD
Variable absolute dates
specified in a register (Rx) or in a Word (@WORD x) containing a
number in the range 1 to 37200 corresponding to the day of the century starting from January 1
00 (37200 = December 31, 99); the formula giving the number related to the day DD (1
31) of
month MM (1
12) of year YY (0
99) is the following:
(372 x YY) + (MM –1) x 31 + DD
Notes:
the argument x of the notation @WORD x may be in the range 0 to 65535; this is true, unless otherwise
specified, for the CLOCK and DATE equations only
the timing
24:00
is not allowed; use instead the timing
00:00
, taking attention that it is the morning of
the specified day.
O1.1
=
CLOCK
(8:15, 17:30)
Out is ON everyday from 8:15 to 17:30 (daily
scheduling).
V3
=
CLOCK
(MON:8:00, FRI:20:00)
Out is on from Monday 8:00 to Friday 20:00 (weekly
scheduling).
O3.2
=
DATE
(31/07, 02/09)
Out is ON from July 31 to September 9 (yearly
scheduling).
O3.2
=
DATE
(31/07/05, 02/09/05)
Out is ON from July 31,2005 to September 9, 2005
(absolute scheduling).
V4
=
CLOCK
(TUE:8:00, TUE:12:00) | \
Out is ON the Tuesday 8:00 to 12:00 and it is also
CLOCK
(THU:14:30, SAT:00:00)
ON from Thursday 14:30 to Saturday 0:00.
DUEMMEGI
s.r.l. - Via Longhena, 4 – 20139 MILANO
Tel. 02/57300377 - Fax 02/55213686 –
www.duemmegi.it
Rel.: 1.2 October 2018
Page 27 of 87