Sensoray 417 Bedienungsanleitung Seite 26

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 37
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 25
25 Sensoray Model 417
Chapter 4 Programming
Read Identifier
This command returns a product identifier specific to the Model 417 board. The command
response consists of the decimal value 417.
COMMAND: (224), (4), (0)
RESPONSE: (1), (161)
This command is useful both as a diagnostic and as a mechanism for automating the determination
of the product type residing at a particular port address.
VB Code Example:
‘**********************************************************************
‘ This function returns the coprocessor product identifier.
‘**********************************************************************
Function GetProductID%(BasePort As Integer)
Call SendByte(BasePort, 224)
Call SendByte(BasePort, 4)
Call SendByte(BasePort, 0)
GetProductID = ReadWord(BasePort)
End Function
‘******************************************************************
‘ Fetch the coprocessor product identifier. In the case of Model
‘ 417, the returned ProductID value should be decimal 417.
‘******************************************************************
Dim ProductID As Integer
ProductID = GetProductID(BaseAdrs)
Seitenansicht 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 36 37

Kommentare zu diesen Handbüchern

Keine Kommentare