ProSoft Technology MVI56-BAS User Manual
Page 141
Advertising

MVI56-BAS ♦ ControlLogix Platform
BASIC CALLs Syntax
BASIC Module (DB/BAS Compatible)
User Manual
ProSoft Technology, Inc.
Page 141 of 234
December 13, 2011
CALL 44: Retrieve Date Numeric
Use CALL 44 to return the current date on the argument stack as three numeric
values.
Syntax:
CALL 44
POP [A]
POP [B]
POP [C]
Where:
A = day
B = month
C = year
Example:
Ready
>list
10 STRING 100, 30
20 REM Set time to 10:30:00
30 PUSH 10, 30, 0: CALL 40
40 REM Set date to Aug. 31, 1954
50 PUSH 31, 8, 54: CALL 41
60 REM Print Time and Date
70 PUSH 1: CALL 43
80 PRINT $ ( 1)
90 CALL 44: POP D, M, Y
100 PRINT D, M, Y
Ready
>run
31-AUG-54 10:30:00
31 8 54
Ready
>
Advertising