Config clock – Remote Processing CAMBASIC User Manual

Page 178

Advertising
background image

CON FIG C ommands - 5

CONFIG CLOCK

Statement

SYNTAX:

CONF IG CLOC K mode,run
CONF IG CLOC K run (RPC-2350 ser ies only)

PURPOSE:

Configures real time clock for 12 or 24 hour modes and starts or stops the clock.

REMARK S:

The T IME $ function r eturns the tim e in 12 or 2 4 hour fo rma ts. Set mode = 0 for 12 hour time and
1 for 24 ho ur time form at.

run turns the clock on and off. 0 = off or stopped, 1 = on or run.

RELATED:

TIME$, DATE$

EXAMPLE:

CONFIG CLOCK 1,1

Sets to clock to 24 hour mode and starts it running.

CONFIG CLOCK 1

Starts clock (2350 series only)

ERROR:

< Data out of range> - if data other than 0 or 1 are used.

Advertising