Skip to content

112B AdjustClock

Stub   MON 112B (74 decimal) · Mnemonic CLADJ · Group: Not grouped in manual

Available from: RT programs (manual compatibility box)

Emulation source: src/handlers/mon_112B_AdjustClock.c

Description

Sets the computer's clock (i.e. the current system time) forward or back. If the operator panel has a clock, it is also adjusted.

  • The startup time for RT programs can be set by StartupTime. When the current system time is modified, the next startup times of periodic programs started by StartupTime are also affected. Other scheduling times are not affected.

Parameters

Name Type Direction Description
TimeUnits INTEGER2 In Number of time units to adjust the clock by. Negative values make the clock halt for that time.
UnitType INTEGER2 In Time unit type. 1=basic units (1/50s), 2=seconds, 3=minutes, 4=hours.

Direction: In = the program supplies the value, Out = the call returns it, In/Out = both.

See also

SetClock, GetCurrentTime, StartupTime, GetBasicTime

Compatibility

Machines Users Programs
ND-100 and ND-500 User RT and user SYSTEM RT programs

The manual's compatibility box for this call, word for word.

Yes/no fields from the YAML extraction (not in the manual's words):

ND-100 ND-500 User programs RT programs System programs
Yes Yes Yes Yes No

Examples

From the manual (OCR text, not corrected).

INTEGER : TimeUnits, UnitType
...
Monitor_Call('AdjustClock', TimeUnits, UnitType)
INTEGER TimeUnits, UnitType
...
Monitor_Call('AdjustClock', TimeUnits, UnitType)
TimeUnits, UnitType : INTEGER2;
...
AdjustClock(TimeUnits, UnitType);
01 TimeUnits COMP.
01 UnitType COMP.
...
MONITOR-CALL "AdjustClock" USING TimeUnits, UnitType.
TimeUnits : W BLOCK 1
UnitType : W BLOCK 1
ErrCode : W BLOCK 1
AdjustClock : EQU 3789 + 112B
...
CALLG AdjustClock, 2, TimeUnits, UnitType
IF K GO ERROR
...
Error : W1 =: ErrCode
LDA (PAR %Load register A with address of parameter list.
MON 112 %Monitor call AdjustClock.
...
PAR,  TIME  %Number of time units the clock is adjusted by.
BASE        %Time units.
...
TIME, ...
BASE, ...

ndmonlib implementation

Stub Registered MON_STATUS_NOT_IMPLEMENTED: the handler is a stub. mon_dispatch() in src/core/mon_dispatch.c reports the call as unimplemented without calling it.

Handler mon_112B_AdjustClock
Code lines 7 (non-blank, non-comment lines in the file)

Source

SINTRAN III Monitor Calls (ND-860228.2 EN), page 75.