ProSoft Technology MVI56-BAS User Manual
Page 146
Advertising
BASIC CALLs Syntax
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 146 of 234
ProSoft Technology, Inc.
December 13, 2011
CALL 52: Retrieve Date String
Use CALL 52 to return the current date in a string format.
Syntax:
PUSH [A]
CALL 52
Where:
A = string number. The string will have the following format: DD-MMM-YY
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 Jan. 23, 2003
50 PUSH 23, 1, 3: CALL 41
60 REM Set Day of Week to Saturday
80 REM Print Date
90 PUSH 1: CALL 52
100 PRINT $ ( 1)
Ready
>run
23-JAN-03
Ready
>
Advertising