Call 51, Call 52: retrieve date string, Call 53 – 59 – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 248
![background image](/manuals/579953/248/background.png)
Chapter
Call Routines 0–68
12
12 -58
Undefined. If you execute an undefined call, you receive the error
message, “
ERROR–UNSUPPORTED CALL
.”
Use CALL 52 to retrieve the current date in a string (dd/mm/yy).
Input and Output Arguments
This routine has one input argument and no output arguments. The input
argument is the number of the string to receive the date. You must use the
STRING statement (see page 11 -37) to allocate a minimum of 9 characters
for the string.
Syntax
PUSH
number of string to receive the date
CALL 52
Example
>10 STRING 100,9
>20 PUSH 1: CALL 52: REM PUT DATE IN STRING 1
>30 PRINT $(1)
>40 END
>RUN
30–JAN–94
Undefined. If you execute an undefined call, you receive the error
message, “
ERROR–UNSUPPORTED CALL
.”
CALL 51
CALL 52: Retrieve Date
String
CALL 53 – 59