ProSoft Technology MVI56-BAS User Manual
Page 140
Advertising

BASIC CALLs Syntax
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 140 of 234
ProSoft Technology, Inc.
December 13, 2011
CALL 43: Retrieve Date and Time String
Use CALL 43 to copy the current date and time to a string format.
Syntax:
PUSH [A]
CALL 43
Where:
A = the string number where the date and time is stored. The format is:
DD-MMM-YY HH:MM:SS
(at least 18 characters should be allocated)
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)
Ready
>run
31-AUG-54 10:30:00
Ready
>
Advertising