MCC MIIC-203 Guia do Utilizador Página 70

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 77
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 69
61
Example Code
The following examples are written in MS Visual Basic V3 for Windows using the
serial communications control (MSCOMM.VBX). It can be used as a guide in
implementing iPort/USB interface programs in other programming languages and
operating environments.
Note: Sample code is also available online at: www.mcc-us.com
iPort/USB Reset
Comm1.Output = Chr$(18) 'Ctrl/R
Comm1.Output = Chr$(18) 'Ctrl/R
Comm1.Output = Chr$(18) 'Ctrl/R
iPort/USB Initialization
Comm1.Output = "/f0" 'Set iPort/USB XON/XOFF Flow Control
Comm1.Output = Chr$(13)
Comm1.Output = "/i70" 'Set iPort/USB’s Own Slave Address
Comm1.Output = Chr$(13)
Comm1.Output = "/d4e" 'Set Destination Slave Address
Comm1.Output = Chr$(13)
Comm1.Output = "/o" 'Open I
2
C Connection
Comm1.Output = Chr$(13)
Master Transmit Message
Comm1.Output = "/T~00~01" 'Send Master Tx Command
Comm1.Output = Chr$(13) 'Terminate Command
Master Receive Message
Comm1.Output = "/R10" 'Send Master Rx Command
Comm1.Output = Chr$(13) 'Terminate Command
Vista de página 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 76 77

Comentários a estes Manuais

Sem comentários