Call 41: set wall clock date (day, month, year), Call 42: set wall clock day of week – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 230

Chapter
Call Routines 0–68
12
12 -40
Use this routine to set the wall clock date functions.
Input and Output Arguments
This routine has three input arguments and no output arguments. The input
arguments are the wall clock date functions:
D
=
day
M = month
Y = year
Syntax
PUSH
date 1–31
PUSH
month 1–12
PUSH
year 0–99
CALL 41
Example
Program the wall clock for the 16th day of June 1994.
>10 D=16: M=06: Y=94 :REM DAY OF MONTH=16, MONTH=6, YEAR=94
>20 PUSH D,M,Y :REM PUSH DAY OF MONTH, MONTH, YEAR
>30 CALL 41 :REM CALL THE ROUTINE TO SET THE WALL CLOCK DATE
Use CALL 42 to set the day of the week.
Input and Output Arguments
This routine has one input argument and no output arguments. The input
argument is the day of the week:
1 = Sunday
2 = Monday
3 = Tuesday
4 = Wednesday
5 = Thursday
6 = Friday
7 = Saturday
Syntax
PUSH
day of week 1–7
CALL 42
Example
>10 PUSH 3:REM DAY OF WEEK.
>20 CALL 42:REM DAY IS TUESDAY.
CALL 41: Set Wall Clock
Date (Day, Month, Year)
CALL 42: Set Wall Clock
Day of Week