I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
59
4.6.2 To Use COM1/COM2 for an RS-485 Application
COM1/COM2 is a 2-wire RS-485 COM Port, and includes the following
2 pins:
D+: connect to the Data+ of the RS-485 network
D-: connect to the Data- of the RS-485 network
COM1/COM2 is a half-duplex 2-wire RS-485 network and cannot be
used in a full-duplex 4-wire application. It is designed to directly drive
I-7000 series modules.
Send/receive directional control in a 2-wire RS-485 network is very
important. Therefore, the I-7188XA(D) is equipped with a Self-Tuner
ASIC controller for all RS-485 ports, which will automatically detect and
control the send/receive direction of the RS-485 network. In this manner,
the application programmer does not have to worry about the
send/receive direction control for the RS-485 network.
4.6.3 To Send a Command to an I-7000 module
The commands used for I-7000 series modules are very different from
those of the I-7188XA(D), but commands can be sent from the
I-7188XA(D) to a I-7000 module using the
ToCom()
function.
int port=2; /*to use COM2*/
int i;
InitLib(); /* Initiate the 7188xa library */
InstallCom(port, 115200L, 8, 0, 1); /*install the COM2 driver*/
for(i=0; i<10; i++){
printCom(port, “Test %d\r\n”, i); /*print data from COM2*/
}
RestoreCom(port); /*uninstall the COM driver*/
Summary of Contents for I-7188XA
Page 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Page 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Page 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Page 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Page 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Page 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Page 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Page 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...