I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
61
In addition to using the
ToCom()
function, the
SendCmdTo7000()
function can also be used to send commands to an I-7000 series
module. The
ReceiveResponseFrom7000()
function can be used to
receive the response from an I-7000 series module.
Functions used to connect to an I-7000 module:
SendCmdTo7000(int iPort, unsigned char *cCmd, int
iChksum);)
This function sends a command to an I-7000 series module. If the
checksum is enabled, the function will add 2 bytes checksum to
the end of the command.
ReceiveResponseFrom7000_ms(int iPort, unsigned char
*cCmd, long lTimeout, int iChksum);)
After calling the
SendCmdTo7000()
function the
ReceiveResponseFrom7000_ms()
function can be called to
retrieve a response from an I-7000 series module.
Refer to the demo programs in the
CD:\Napdos\7188XABC\7188XA\Demo\BC_TC\7K87K_Module
directory for more detailed information.
Note:
For more I-7000 commands, please refer to the “
user’s manual
for 7000 DIO
”. When using COM1 as an RS-485 COM port, the settings
for JP6 on the I-7188XA(D) is as follows.
int port=2; /*to use COM2*/
int i;
char data[ ]=”$01M\r”; /*command to read a module’s name*/
InitLib(); /* Initiate the 7188xa library */
InstallCom(port); /*install the COM2 driver*/
for(i=0; i<5; i++)
ToCom(port, data[i]); /*send a command to the I-7000 module*/
……… /*program code*/
RestoreCom(port); /*uninstall the COM driver*/
Содержание I-7188XA
Страница 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Страница 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Страница 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Страница 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Страница 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Страница 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Страница 161: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 161 Below snap shots are steps for install TC 3 0...
Страница 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Страница 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...