Getting Started for I-7000 Series Modules Getting Started For I-7000 Series Modules Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser. Warning ICP DAS assumes no liability for damage consequent to the use of this product. ICP DAS reserves the right to change this manual at any time without notice. The information furnished by ICP DAS is believed to be accurate and reliable.
Getting Started for I-7000 Series Modules Table of Contents 1 Connecting Modules ......................................................................................................3 1.1 Connecting the first module .....................................................................................3 1.2 Connecting the second module................................................................................6 2 7000 Utility User’s Manual ................................................................
Getting Started for I-7000 Series Modules 1 Connecting Modules 1.1 Connecting the first module Figure 1-1-1. Connecting the first module Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules Connect the first module as in Figure 1-1-1. (If needed, replace the I-7012 module with your own and follow the diagram.) Please do not connect more than one module at a time. Install the 7000 Utility software from the included CD. Please refer to chapter 2 of “The 7000 Utility User’s Manual”. Run the 7000 Utility software to search for the user’s modules. It will automatically start searching when users run the 7000 Utility. Please click the icon to stop it.
Getting Started for I-7000 Series Modules After reconfiguring, please click the icon Figure 1-1-4. to search again. See Figure 1-1-4. Search the modules. Every module has the following default factory settings: • Address = 0x01 • Baud rate = 9600 • Checksum = disabled See Figure 1-1-5. If the 7000 Utility lists the module-ID “xxxx” in the information window, congratulations! You have successfully connected the first module and communicated with it. (Please do not connect more than one module at a time.
Getting Started for I-7000 Series Modules 1.2 Connecting the second module If you have two modules in the same RS-485 network and each module has the same address and baud rate; they will conflict with each other. Due to the factory settings, each module has the same address and baud rate (address=0x01, baud rate=9600). Thus, users have to change the configuration settings for each module to prevent further conflict.
Getting Started for I-7000 Series Modules Figure 1-2-2. Connecting a second module Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules Search for the connected module(s) again. Note the two modules at address 0x01 and 0x02 that will be found. See Figure 1-2-3. Figure 1-2-3. Found two modules at 0x01 and 0x02. To connect more modules in the same RS-485 network, change the address to prevent further conflict between modules. For example: change the address 0x01 of the second module to address 0x03.
Getting Started for I-7000 Series Modules Figure 1-2-4. Connecting multiple modules. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules 2 7000 Utility User’s Manual 1.Introduction to the 7000 Utility 2.Installating the 7000 Utility 3.Uninstalling the 7000 Utility 4.Starting the 7000 Utility 5.Operating the 7000 Utility 6.Changing baud rate and checksum 7.Exiting the 7000 Utility 2.1 Introduction to the 7000 Utility The 7000 Utility is a software utility for the I-7000 series modules.
Getting Started for I-7000 Series Modules 2.2 Installing the 7000 Utility Before installing, please note and confirm the following requirements: Microsoft Windows 95/98/ME/NT4.0/2000/XP Operating System. 32 MB RAM Memory. 20 MB hard disk available space. To start the Installation: Insert the enclosed CD into the CD-ROM drive. Click the “Run” item from the "Start" menu. Enter the "[drive]:\NAPDOS\7000\7000Util\Setup.exe" as in Figure 22-1. Click the “OK” button to start the installation procedures.
Getting Started for I-7000 Series Modules 2.3 Uninstalling the 7000 Utility To uninstall the 7000 Utility software, please follow the following steps: Open the “Control Panel” shown in Figure 2-3-1. Figure 2-3-1 Click the “Add/Remove Programs” icon from the “Control Panel”, as shown in Figure 2-3-2. Select the “7000UTIL” item and click the “Add/Remove…” button to uninstall it, as shown in Figure 2-3-3. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules Figure 2-3-2. Double click on the “Add/Remove Programs” icon. Figure 2-3-3. To uninstall the software, select “7000Util” and click on the “Add/Remove” button. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules 2.4 Starting the 7000 Utility To start the 7000 Utility, click on “Start / Programs / 7000Util” from the task bar as shown in Figure 2-4-1. Figure 2-4-1. Click on “7000UTIL” to start. When the 7000UTIL.EXE is loading, a window will pop up to show the startup picture (Figure 2-4-2). By default, the startup window will stay onscreen for about 3 seconds. Figure 2-4-2. Startup picture. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules During startup, the 7000 Utility reads the “ICPCON.CFG” file to get the COM port, baud rate and checksum information. After startup, the main window of the 7000 Utility comes on and uses this information to automatically start the searching process. The 7000 Utility tests for a range of COM ports and baud rates in order to search for the connected I-7000 series modules. If it fails to read the “ICPCON.
Getting Started for I-7000 Series Modules 2.5 2.5.1 Operating the 7000 Utility Main Window of the 7000 Utility The main window of the 7000 Utility is shown in Figure 2-5-1. All operations of the 7000 Utility are based on this main window. Figure 2-5-1. The main window of the 7000 Utility 2.5.2 Stopping Search This section describes how to stop running the program. When starting the 7000Util.EXE, it will be in the searching process.
Getting Started for I-7000 Series Modules 2.5.3 Assigning COM Port, baud rate and checksum setting for Searching This section describes how to change the search conditions for COM port, baud rate and checksum status. Click on the “COM Port” menu item, and a window with the title “Select the COM port and Baud Rate…” appears as in Fig 2-5-3. This window prompts the user to assign the COM port, baud rate and checksum status.
Getting Started for I-7000 Series Modules 2.5.4 Invoking the Module Configuration Settings In order to see the configuration settings of a module, please follow these steps: • Move the mouse cursor onto the desired module in the information window. • Double click the left mouse button to reveal the module configuration setting. • After double clicking, a configuration setting window pops up. Adjust the configuration settings according to the user’s demand.
Getting Started for I-7000 Series Modules Figure 2-5-5. The “Setting Configuration for 7012D” window pops up. To set the High/Low alarm, click the “Alarm Setting” tab as shown in Figure 2-5-6. Figure 2-5-6 The “Alarm Setting” tabbed page. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules 2.5.5 Testing for all found modules In order to test if all of the found modules are working properly, please click on the menu item “Run”. Next, the “7000 Module Running” window pops up as shown in Figure 2-5-7. Figure 2-5-7 The “7000 Module Running” window. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules 2.5.6 Command Testing for a Module To send and receive commands, please click the “Terminal / Single Line” menu item. Refer to Figure 2-5-8. If no module is selected, the default baud rate is 9600 and checksum is disabled as in Figure 2-5-9. If a module is selected, then the baud rate and checksum status will be identical to the selected module as in Figure 2-5-10. The screen in Figure 2-5-11 shows sending a command to a specified module.
Getting Started for I-7000 Series Modules Figure 2-5-10. A module is selected. Figure 2-5-11. Sending a command to the 7012 Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules 2.5.7 .MAP File Operation The configuration information can be stored into a file with the .map extension file name (*.map). This file can be opened or printed out on demand. The menu item “Open/Save/Print” is shown as Figure 2-5-12. The save operation is used to save the information for discovered modules into a file (for example: “test.map”). Refer to Figure 2-5-13. The screen in Figure 25-14 shows opening a stored map file. Figure 2-5-12.
Getting Started for I-7000 Series Modules 2.6 Changing Baud Rate and Checksum Before clicking the “Setting” button on the “Setting Configuration for XXXX” window to change either the baud rate or checksum, please refer to Figure 2-5-5. Users have to short the “INIT*” and “GND” pins of this module. Please refer to Figure 2-6-1 ~ 2-6-3. Change the baud rate or checksum for the specified module. Turn the "INIT*" and "GND" screws counter-clockwise. Use a wire to connect the “INIT*” and “GND” of this module.
Getting Started for I-7000 Series Modules 2.7 Exiting the 7000 Utility Please refer to Figure 2-7-1 to quit the 7000 Utility. Figure 2-8-1. Exiting the 7000 Utility. When exiting the 7000 Utility, a window prompt verifies your command as in Figure 2-7-2. Figure 2-7-2. Verifying your exit command. Please click the “Yes” button to exit the 7000 Utility. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules 3 NAP7000P The NAP7000P is a set of standard Win32 DLLs. It is designed for Microsoft Windows 95/98/ME/NT/2000/XP users. VC++, BC++, VB, Delphi and BC++ Builder users can also utilize it with ease. The features of the NAP7000P are as follows: 1. Provides general-purpose send/receive function for the I-7000 series modules. 2. Provides high performance application functions for the I-7000 series modules. 3. Multi-speed (baud rates) demo programs. 4.
Getting Started for I-7000 Series Modules 3.1 Writing your first NAP7000P program Please follow these steps to write your first program : Create a new folder for user’s project files, for example: E:\Test\Start1 Copy the declaration files into user’s project folder. Refer to Figure 3-1-1. Open Visual Basic 5.0, and select the “Standard EXE” option. Then click the “OK” button. Refer to Figure 3-1-2. Figure 3-1-1. Declaration files for Visual Basic. Figure 3-1-2.
Getting Started for I-7000 Series Modules Save the project into the folder that you previously created. Refer to Figure 3-1-3 to 3-1-5. Figure 3-1-3. Saving Project Figure 3-1-4. Saving "form1" Figure 3-1-5. Saving "Project1". Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules Right mouse button click on the Project manager, and select “Add”/”Module”. Refer to Figure 3-1-6. After the “Add Module” window pops up, select the tab page “Existing” and change to the folder that contains the user’s project files. Then add these declaration files. Refer to Figure 3-1-7. Figure 3-1-6. Adding Module Figure 3-1-7. Adding the declaration files Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules Figure 3-1-8. Declaration files have been added into this project. Put a “CommandButton” control on “Form1” of this program. Add the following codes in the sub routine “Command1_Click() “ : Private Sub Command1_Click() Dim wt As Integer Port = 2 Open_Com Port, 9600, 8, 0, 0 SendTo7000 = "$01M" ReceiveFrom7000 = Space(100) Send_Receive_Cmd Port, SendTo7000, ReceiveFrom7000, 100, 0, wt Command1.
Getting Started for I-7000 Series Modules These codes are described as follows : ‘Declare a variable which has the Integer data type.
Getting Started for I-7000 Series Modules Put the second “CommandButton” control on the “Form1” of this program.
Getting Started for I-7000 Series Modules 4 NAP7000X The NAP7000X is an ActiveX Control (OCX) for the I-7000 series module. It enables you to develop programs quickly and easily. Before using the NAP7000X, users must install it. Please refer to the NAP7000X user’s manual. This chapter will teach you to write your first NAP7000X program by using Microsoft Visual Basic 5.0. After installation, the “I7000.DLL”, “UART.DLL”, “I7000.TLB” and “I7000.
Getting Started for I-7000 Series Modules 4.1 Writing your first NAP7000X program Please follow these steps : Open Visual Basic 5.0. Select the “Standard EXE” option, and then click the “OK” button. Refer to Figure 4-1-1. Figure 4-1-1. Select the “Standard EXE" Adding the “7000OCX” into user’s project file. Refer to Figure 4-1-2 to 4-13. Figure 4-1-2. Select “Project” / “Components”. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules Figure 4-1-3. Select the “OCX_For_7000” option. Click on the “7000OCX“ and "CommandButton" from on “Form1”. Refer to Figure 4-1-4 to 4-1-5. Figure 4-1-4. The “7000 OCX” icon. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules Figure 4-1-5. The “7000 OCX” and "CommandButton" on Form1. Add these codes in the sub routine “Command1_Click()” Private Sub Command1_Click() 'Use COM2 NAP7000X1.ComPort = COM2 'module address: 1 NAP7000X1.Address = 1 'setting the baudrate NAP7000X1.BaudRate = 9600 'checksum disable NAP7000X1.CheckSum = False 'Open the ComPort NAP7000X1.PortOpen = True NAP7000X1.ModuleType = I_7013 'Module ID Command1.Caption = NAP7000X1.
Getting Started for I-7000 Series Modules 5 Dual Watchdog 5.1 Operating Principle All I-7000 series modules equip both a hardware module watchdog and a software host watchdog. The I-7000 series modules are specially designed for industry applications, and can work under any conditions. Harsh environments may contain excessive noise or energy transient. In this case, the modules will be adversely affected.
Getting Started for I-7000 Series Modules 5.2 Host Watchdog The host may be down for the following reasons: 1. 2. 3. 4. excessive noise ! host hardware goes into error software problem ! host changes to dead lock mode hardware problem ! host hardware is damaged the RS485 network is open ! cannot send out commands to modules The host-watchdog (software) is designed to monitor the host computer.
Getting Started for I-7000 Series Modules Figure 5-2-3. After Host-Watchdog sets module to safe state, all output commands will be ignored. To clear, the host PC must send the “~AA0” command to read the module status, and the “~AA1” command to clear the module status. Note the flow chart for the host computer in Figure 5-2-4. Figure 5-2-4. Flow chart of Host-Watchdog. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules Demo: The host-watchdog and safe values for the I-7060 module. Please refer to hardware manual for more detailed information. 01. Power on and run test.exe 02. Press 2 03. Press $012 [Enter] ! Receive=!01400601 04. Press 2 05. Press #01000F [Enter] ! Receive => 06. Press 2 07. Press $016 [Enter] ! Receive=!0F0F00 08. Press 2 09. Press ~014S [Enter]! Receive=!0F0F00 10. Press 2 11. Press ~01311E [Enter]! Receive=!01 12. Wait 3 seconds.
Getting Started for I-7000 Series Modules 5.3 Module Watchdog The I-7000 series modules are designed for industry applications. They can be used under any conditions. Sometimes industry environments will contain excessive noise or energy transient. The module might be affected if these noises are excessive. If the working environment is not noisy, the well-designed firmware will enable the I-7000 modules to run for years. The $AA5 command is designed to detect module-watchdog failures.
Getting Started for I-7000 Series Modules The flow chart for module-watchdog (hardware) failure detection is given in Figure 5-3-2. Figure 5-3-2. Flow chart of Module Watchdog. Frequently checking module status if the module is working in harsh environments is highly recommended. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules 5.3.1 Does the module reset very frequently? If the module resets frequently, it may occur due to the following reasons. Excessive noise The I-7000 series modules are designed for industry applications and difficult environments. Often, these environments contain excessive noise or energy transient which can disable your module. Reducing your environment's excess noise level improves both the stability and reliability of your application.
Getting Started for I-7000 Series Modules 5.
Getting Started for I-7000 Series Modules 5.5 Functions and Demo Programs There are several functions designed for the Watchdog. For detailed information about these functions, please refer to the NAP7000P user’s manual. These functions are listed as follows: HostIsOK : Tells all modules "Host is OK" by sending the "~**" command. ReadModuleResetStatus : Reads the module reset status. ToSetupHostWatchdog : Sets up the module's Host Watchdog.
Getting Started for I-7000 Series Modules 5.5.1 Descriptions of Watchdog Demo Platform : Windows 95/98/NT Software : NAP7000P v3.30 (or above) Demo Program : NAP7000P\Demo\Delphi\Watchdog\Project1.dpr NAP7000P\Demo\BCB\Watchdog\Project1.bpr NAP7000P\Demo\VB\Watchdog\Project1.vbp Modules : 7520 x 1 (RS-232 / RS-485) 70xx x 1 (recommend for use with an output module) Module Configuration : Baud rate : 9600 Checksum : disable Address : 0x01 This program demonstrates the following features: 1.
Getting Started for I-7000 Series Modules 5.5.1.1 Host Watchdog Figure 5-5-2. Type in time-interval value and click on the “Setup Host Watchdog” button. Figure 5-5-3. After setting up the Host-Watchdog, read the status and all preset values. In example 5-5-3, the user has these values: 0:Host is OK. 1:Host Watchdog is enabled. Host Watchdog time interval is 5 seconds. Date: Jan-08, 2002 Version 1.
Getting Started for I-7000 Series Modules Figure 5-5-4. Host-Watchdog Demo. After 5 seconds, the "host is down" message pops up. Click on the “OK” button to close this message box. Since the Host-Watchdog is enabled, if the Host PC does not send the command “~**” to the module, the module supposes that the Host PC may break down. All output commands will be ignored when the module is in safe state. Figure 5-5-5. Host is down. Module goes into safe state.
Getting Started for I-7000 Series Modules Figure 5-5-6. Host Watchdog has been disabled after module reverts to safe state. Thus, users have to reset the Host Watchdog. The module’s status will go back to “0:Host is OK!”(Refer to Figure 5-5-3). Figure 5-5-7. Send the “[Host is OK]” command to the module every second. When the module’s status is “0:OK”, the Host Watchdog is enabled. Click on the “Send [Host is OK]” button every second. After 5 seconds, the message box “Host is down” won’t pop up.
Getting Started for I-7000 Series Modules Figure 5-5-8. Type 0 in the Host-Watchdog’s time interval edit box. Click the “Setup Host Watchdog” button to disable it. 5.5.1.2 Broken communication line detection Figure 5-5-9. Normally, the Module Reset Status is 0. Now, please disconnect the RS-232 cable from the I-7520 module. This is used to simulate a broken communication line.
Getting Started for I-7000 Series Modules Figure 5-5-10. Communication line is broken. Click on the “OK” button to close it. (This feature doesn’t involve the Dual Watchdog.) 5.5.1.3 Module Watchdog Please connect the RS-232 cable to the I-7520 module again. Unplug the user’s I-70xx module, then plug it in again. The "Reset" message box will pop up as in Figure 5-5-11. Figure 5-5-11. Module-Watchdog Demo. Module has been reset. Output goes to Power-On values. Click on the “OK” button to close it.
Getting Started for I-7000 Series Modules 6 FAQ 6.
Getting Started for I-7000 Series Modules Q: What is the maximum scan-rate in the RS-485 network? A: The scan-rate depends on the baud rate of the RS-232 COM port, checksum status, module numbers, channels, commands to send, result string received and system performance.
Getting Started for I-7000 Series Modules 6.2 MISC FAQ Q: Why doesn't the ComboBox's CHANGE event work with VB? A: In Delphi and Borland C++ Builder, the "CHANGE" event works correctly when users choose the item from "ComboBox". But, Visual Basic, this event only occurs when users code in the “CLICK” event to do the same work. This “CLICK” event also works correctly in Delphi and Borland C++ Builder.
Getting Started for I-7000 Series Modules bProcessing = true; ........................ ........................ // if (something wrong ) { //bProcessing = false; // enable next timer event to enter //return; //} ........................ ........................ bProcessing = false; // enable next timer event to enter } Q: What if I receive the "Unable to create process" error message with Borland C++ Builder and Delphi? A: This error message could have occurred if a .
Getting Started for I-7000 Series Modules 7 Reporting Problems Technical support is available at no charge. The best way to report problems is sending e-mail to Service@icpdas.com on the Internet. When reporting problems, please include the following information: 1) Is the problem reproducible? If so, how? 2) What operation system is being used? For example, DOS, Windows 3.1, Windows 95/98/ME, Windows NT 4.0 and Windows 2000/XP, etc.