Clock/calendar functions, Call 40 – set clock/ calendar time, Chapter 10 – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 123: Call 40 – set clock/calendar time -1, Chapter, Purpose, Syntax

1
Publication 1746-RM001A-US-P
Chapter
10
Clock/Calendar Functions
This chapter describes and illustrates commands that set and display the real time
clock/calendar within the BASIC program or from the command line. Table 10.1
lists the corresponding mnemonics.
CALL 40 – Set Clock/
Calendar Time
Purpose
Use CALL 40 to set the following clock/calendar time functions:
•
H - hours (0 to 23; only a 24-hour clock is available)
•
M - minutes (0 to 59)
•
S - seconds (0 to 59)
Syntax
PUSH [hours]
PUSH [minutes]
PUSH [seconds]
CALL 40
Table 10.1 Chapter Reference Guide
If you need (to)
Use this mnemonic Page
Set the clock/calendar time (hour, minute, second).
CALL 40
Set the clock/calendar date (day, month, year).
CALL 41
Set the clock/calendar - day of week.
CALL 42
Retrieve a date/time string.
CALL 43
Retrieve the date numeric (day, month, year).
CALL 44
Retrieve a time string.
CALL 45
Retrieve a time numeric.
CALL 46
Retrieve the day of week string.
CALL 47
Retrieve the day of week numeri
c.
CALL 48
Retrieve a date string.
CALL 52