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

Advertising
background image

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

10-1

Set the clock/calendar date (day, month, year).

CALL 41

10-2

Set the clock/calendar - day of week.

CALL 42

10-3

Retrieve a date/time string.

CALL 43

10-4

Retrieve the date numeric (day, month, year).

CALL 44

10-4

Retrieve a time string.

CALL 45

10-5

Retrieve a time numeric.

CALL 46

10-6

Retrieve the day of week string.

CALL 47

10-6

Retrieve the day of week numeri

c.

CALL 48

10-7

Retrieve a date string.

CALL 52

10-7

Advertising