Rockwell-automation 1771-DB BASIC MODULE Instrukcja Użytkownika Strona 230

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 229
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, Y
ear)
CALL 42: Set W
all Clock
Day of W
eek
Przeglądanie stron 229
1 2 ... 225 226 227 228 229 230 231 232 233 234 235 ... 393 394

Komentarze do niniejszej Instrukcji

Brak uwag