Sensoray 7429 Instrukcja Użytkownika Strona 39

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 48
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 38
This QuickBasic code segment invokes the define channel sensor command for this re-
sistive linear displacement transducer:
CALL SendByte (16 + 5)'DEFINE CHANNEL SENSOR opcode + channel
CALL SendByte (&HC)'sensor definition code
CALL SendWord (1)'A coefficient
CALL SendWord (17)'B coefficient
CALL SendWord (-3105)'C coefficient
After defining the sensor, invoking the READ SENSOR DATA command for channel
5 will return the displacement value scaled to 1 mm/bit. This code segment reads and
displays the displacement:
CALL SendByte (5)
PRINT "Channel 5 displacement (mm) = "; ReadWord%
Przeglądanie stron 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 47 48

Komentarze do niniejszej Instrukcji

Brak uwag