Call 41 – set clock/ calendar date, Call 41 – set clock/calendar date -2, Example – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 124: Purpose, Syntax

Advertising
background image

Publication 1746-RM001A-US-P

10-2 Clock/Calendar Functions

Example

Program the wall clock for 1:35 P.M. (programmed as 13:35; only a 24-hour clock
is available)

>1

REM EXAMPLE PROGRAM

>10 H = 13 : M = 35 : S = 00

>20 REM HOURS = 13, MINUTES = 35, SECONDS = 00

>30 PUSH H,M,S

>40 CALL 40

READY

>RUN

READY

>

CALL 41 – Set Clock/
Calendar Date

Purpose

Use CALL 41 to set the following clock/calendar functions:

D - day

M - month

Y - year

Three values are PUSHed and none are POPped.

Syntax

PUSH [day]
PUSH [month]
PUSH [year]
CALL 41

Advertising