ProSoft Technology MVI56-BAS User Manual
Page 139
MVI56-BAS ♦ ControlLogix Platform
BASIC CALLs Syntax
BASIC Module (DB/BAS Compatible)
User Manual
ProSoft Technology, Inc.
Page 139 of 234
December 13, 2011
CALL 42: Set Day of the Week
In the 1746-BAS and 1771-DB, the internal calendar had no intelligence. CALL
42 would actually set the calendar day of week to any day the programmer
suggested. However, the MVI56-BAS uses the DOS calendar. The DOS
calendar has enough intelligence to calculate the proper day of week from the
date. So, CALL 42 actually does nothing.
Syntax:
PUSH [A]
CALL 42
Where:
A = day of the week (1 = Sunday, 2 = Monday, 3 = Tuesday, 4 = Wednesday, 5 =
Thursday, 6 = Friday, 7 = Saturday)
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
>
- ILX69-PBS (102 pages)
- MVI69E-LDM (130 pages)
- ILX69-PBM (124 pages)
- MVI69L-MBTCP (152 pages)
- PS69-DPS (108 pages)
- MVI69E-MBTCP (150 pages)
- MVI69L-MBS (154 pages)
- MVI69E-MBS (162 pages)
- PS69-DPM (130 pages)
- MVI69-FLN (137 pages)
- MVI69-DFNT (167 pages)
- MVI69-GEC (86 pages)
- MVI69-PDPS (96 pages)
- MVI46-S3964R (80 pages)
- MVI46-S3964R (78 pages)
- MVI46-DNPSNET (119 pages)
- MVI69-ADMNET (122 pages)
- MVI56-104S (188 pages)
- MVI69-ADM (342 pages)
- MVI69-MCM (167 pages)
- 5307-MBP-HART (169 pages)
- MVI69-PDPMV1 (225 pages)
- MVI69-GSC (102 pages)
- MVI69-DNP (129 pages)
- MVI69-DFCM (117 pages)
- MVI69-103M (131 pages)
- PC56-OPC (34 pages)
- MVI46-MBP (101 pages)
- MVI69-101S (149 pages)
- MVI56-103M (152 pages)
- MVI56-DFCMR (113 pages)
- MVI56-DNP (193 pages)
- MVI56-LTQ (98 pages)
- ILX56-MM (112 pages)
- MVI56-DFCM (106 pages)
- MVI46-PDPS (88 pages)
- MVI56E-MNETCR (159 pages)
- MVI46-AFC (316 pages)
- MVI56E-MNETC (183 pages)
- MVI56E-GSC/ GSCXT (140 pages)
- MVI56-PDPMV1 (255 pages)
- MVI46-MNETC (153 pages)
- CLX-APACS (53 pages)
- MVI56E-MNET/MNETXT (181 pages)