Rockwell-automation 1771-DB BASIC MODULE Uživatelský manuál Strana 248

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 394
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 247
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
Zobrazit stránku 247
1 2 ... 243 244 245 246 247 248 249 250 251 252 253 ... 393 394

Komentáře k této Příručce

Žádné komentáře