45
Programmer’s
Quick Start
The following section provides a complete description of iPort/LAN 2 ASCII-text
commands and responses. Although the information presented can be useful, MCC
recommends using our MS.NET Class Library or LabVIEW VI Library for custom
application development.
Creating a custom iPort/LAN 2 program is easier if you know what to expect.
Follow these steps to manually control the iPort/LAN 2 from your computer’s
keyboard and screen using a terminal emulation application.
1 Install the iPort/LAN 2 as directed in the “Hardware Set-Up” section of this
User’s Guide.
2 Use a terminal emulator program, like Windows’ Hyperterminal, to start
communicating with the I
2
C adapter. Remember to select the correct Com Port
(COM1, COM2,…) and set the communication parameters to 19200 Baud, 8 Data
Bits, No Parity, and 1 Stop Bit.
3 Enter
//[CR]
to get an iPort/LAN 2 Status Report. Note: All iPort/LAN 2
commands are terminated with a Carriage Return ([CR]) character. On most
terminal emulators, press the Enter key.
4 Enter
/F0[CR]
(XON/XOFF) or
/F1[CR]
(RTS/CTS) to set iPort/LAN’s
communications Flow Control to match your terminal.
5 Enter
/Ixx[CR]
(xx = 02…FE even) to set iPort/LAN’s Own I
2
C Slave Address.
6 Enter
/O[CR]
to Open the iPort/LAN Connection. The iPort/LAN 2 does not
need to be connected to an I
2
C Bus to open a connection.
7 Enter
/Dxx[CR]
(xx = 00…FE even) to select a Destination I
2
C Slave Address
8 Enter
/Ttext[CR]
(text = ASCII or Hex-Equivalent ~00…~FF) to Master
Transmit a message to the current Destination I
2
C Slave device
9 Enter
/Rn[CR]
(n = 0…32767) to Master Read a message from the current
Destination I
2
C Slave device.
Содержание iPort/LAN 2
Страница 1: ...User s Guide Ethernet to I2 C Host Adapter ASCII Fast Mode with Circuit Sense www mcc us com ...
Страница 26: ...18 Part 2 iPort Utility Pack for Windows Part 2 iPort Utility Pack for Windows ...
Страница 52: ...44 Part 3 iPort LAN 2 Programmer s Reference Part 3 Programmer s Reference ASCII Command Interface Definitions ...