beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 144

background image

BASIC CALLs Syntax

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 144 of 234

ProSoft Technology, Inc.

December 13, 2011

CALL 47: Retrieve Day of Week String

Use CALL 47 to return the current day of the week as a 3 character string.

Syntax:

PUSH [A]
CALL 47

Where:
A = string number

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 Monday
70 PUSH 2: CALL 42
80 REM Print Day of Week
90 PUSH 1: CALL 47
100 PRINT $ ( 1)
Ready
>run
THU
Ready
>