SPECIAL APPLICATION
400-0384-003 16
25. [RDDATE]
This command reads the date from the internal
clock.
Command Format: [RDDATECi]
Ci = Unit ID (i = # from 1 to 99)
Example:
The date is June 13, 2005. Read back the
current date setting by sending the command
[RDDATE] and receive the following feedback:
DATE: 06-13-05
ALARM #1 COMMANDS
The PE1005 has two programmable alarms, which
may be programmed to execute functions stored in
subroutines. The first alarm has five modes to
choose from, but only one mode may be active at a
time. The following Alarm #1 modes allow the alarm
to be executed at one of the following rates:
Mode 1 =Every Minute
Mode 2 =Every Hour
Mode 3 =Every Day
Mode 4 =Every Month
Mode 5 =Every Week
The following is required for the alarm to function:
1. Set the Time, Day and Date on the PE1005.
2. Program functions into a subroutine.
3. Associate the subroutine with an alarm.
4. Set the alarm number and mode.
5. Enable the alarm.
The alarm functions that follow are used to setup
the alarms and enable/disable the alarms. The
examples used in the next commands reference
subroutine 10 and assume the time and date are
already set. Subroutine 10 is programmed to close
internal relay number one, wait a half-second and
then open the relay.
[WRS10=WRRL1=1,WAIT5, WRRL1=0;1]
This is an example only. These or other functions
may be programmed into the subroutine in order to
control external equipment, set indicator lights,or
trigger external events as desired.
26. [SET1ALRM1] MODE 1 -Every Minute
This command is used to set Alarm #1 into
Mode 1.
Command Format: [SET1ALRM1ssCi]
ss = Time in seconds (ss =00 to 59)
Ci = Unit ID (i = # from 1 to 99)
Example:
Associate Alarm #1 with subroutine 10 and set
Alarm #1 to trigger 30 seconds into each minute
by sending the following commands:
[ALRM1=SUB10]
[SET1ALRM130]
[ALRMON1]
Alarm #1 is now enabled and running. Every
minute when the second count matches “30”,
the functions stored in subroutine 10 will be
executed. If the time is 10:00:00AM, the alarm
will trigger at the following times:
10:00:30
10:01:30
10:01:30 etc.
27. [SET1ALRM2] MODE 2 -Every Hour
This command is used to set Alarm #1 into
Mode 2.
Command Format: [SET1ALRM2mmssCi]
mm= Time in Minutes (mm =00 to 59)
ss = Time in Seconds (ss =00 to 59)
Ci = Unit ID (i = # from 1 to 99)