Rockwell-automation 2708-NBD VBASIC Language Development Kit Bedienungsanleitung Seite 37

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 84
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 36
Chapter 4
Special Devices in A-B VBASIC
416
Reserved device name: EGG
Description:
The egg timer is a word of memory which, when non-zero, is decremented
by one every 1/100 second.
These statements, when used with the file number associated with an OPEN
EGG, control this timing device:
SEEK statement: sets the timer to an integer or long
For example:
OPEN EGG FOR INPUT AS #4
SEEK #4, 1000
sets the timer to reach 0 in ten seconds.
SEEK function: returns the current value of the timer as a LONG value.
(LONG is used to avoid sign confusion for values over 32767 with an
INTEGER).
LOF and LOC also return the timers current value.
EOF returns TRUE (-1) when the timer goes off by reaching zero. This
device is an easy way to implement delays and timeouts without the midnight
rollover problem associated with TIME$ and TIMER.
Device: The Egg Timer
Seitenansicht 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 83 84

Kommentare zu diesen Handbüchern

Keine Kommentare