A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 104
7.7.3 How to send command to I-7000
The RS-485 (COM2) is designed to directly drive I-7000 series
modules. The commands for I-7000 series modules are very different
from those of iVIEW-100, but we can send the command from iVIEW-
100 to I-7000 by using “ToCom”.
The example code for sending command to COM2 (RS-485) is listed
below.
int port=2;
/* for use COM2 */
int i;
char data[5]=”$01M\r”;
/* command for read module name */
InstallCom(port,9600,8,0,1);
/* install COM driver */
for(i=0;i<5;i++)
ToCom(port,data[i]);
/* send command to I-7000 */
…………
/* here is for user’s program code*/
RestoreCom(port);
/* un-install COM driver */
The SendCmdTo7000 can send command to I-7000 series
modules also. For more and detail user functions and demo
programs information, please see Chapter 6 and Appendix A.
For more I-7000 commands please refer to the “user’s manual for
7000 DIO”.
After all COM using processes, please use RestoreCom(port) to un-install COM
driver. That will let COM back to the initial setting.