DCON v2.02
DCON v2.02
02 –2009/10/15
INDEX
1. INTRODUCTION ......................................................................................................................... 2
2. GENERAL INFORMATION........................................................................................................ 3
2.1 Device Specifications ......................................................................................................................... 3
2.2 Network Specifications ....................................................................................................................... 3
2.3 Network Specifications ....................................................................................................................... 3
3. Driver Installation ...................................................................................................................... 5
3.1 Installing and Selecting Driver ........................................................................................................... 5
3.2 Other Software Requirements ........................................................................................................... 6
4. CONFIGURING THE DRIVER .................................................................................................. 7
4.1 Configuring the Communication Settings .......................................................................................... 7
4.2 Configuring the Driver Worksheets .................................................................................................... 8
4.2.1 Insert a Standard Worksheet ................................................................................................... 8
4.2.2 Configuring the Station and Header fields............................................................................. 10
4.2.3 Configuring the Tag and Address fields for General Modules ................................................ 11
4.2.4 Configuring the Tag and Address fields for FRnet Module .................................................... 13
4.2.5 Configuring the Tag and Address fields for I-8084W ............................................................. 14
4.2.6 Configuring the Tag and Address fields for I-8088W ............................................................. 15
4.5 Device Configuration ................................................................................................................ 17
5. Executing the Driver ............................................................................................................... 18
6. Improve DI/AI scan time ......................................................................................................... 19
7. Using Multi-DCON Driver ....................................................................................................... 20
8. Troubleshooting ....................................................................................................................... 21
9. ICP DAS InduSoft Resource ................................................................................................. 24
10. History of Versions ............................................................................................................... 25
Page 1
DCON-Version 2.02 –2009/10/15
1. INTRODUCTION
The DCON driver enables communication between Studio system and most of ICP DAS modules from
DCON families (I-7000, I-8000 and I-87K), in accordance with the characteristics covered in this
document.
This document will help you to select, configure and execute the MODBU driver, and it is organized
as follows:
Note:
This document assumes that you have read the “Development Environment” chapter in Studio’s
Technical Reference Manual.
This document also assumes that you are familiar with the Microsoft Windows NT/2000/XP/Vista
environment. If you are not familiar with Windows, then we suggest using the Help feature
(available3 from the windows desktop Start menu) as you work through this guide.
Page 2
DCON-Version 2.02 –2009/10/15
2. GENERAL INFORMATION
Note:
All analog modules must be configured to engineering units.
This Driver version does not implement the CRC. The equipment must be configured not to use
CRC check.
Operation System:
- Microsoft Windows NT / 2000 / XP / Vista
- Microsoft Windows Embedded Standard 2009 (ICP DAS XP-8000 embedded controller)
- Microsoft Windows CE 6.0 (ICP DAS XP-8000-CE6 embedded controller)
- Microsoft Windows CE 5.0 (ICP DAS WinPAC-8000 / ViewPAC-2xWx embedded controller)
Page 3
DCON-Version 2.02 –2009/10/15
Note:
All the files above must be in the subdirectory /DRV of the Studio’s installation direction.
Default Configuration:
COM Port: 1
Baud Rate: 9600
Data Bits: 8
Parity: None
Stop Bits: 1
Timeout: 200
Checksum: 0 (No Checksum)
Page 4
DCON-Version 2.02 –2009/10/15
3. Driver Installation
After install InduSoft Web Studio in XPAC-8000 or PC, the DCON driver of ICPDAS is not installed
automatically. Therefore, users need to install the DCON driver first before using the DCON driver in
IWS. The DCON driver setup file can be downloaded from the
site: http://www.icpdas.com/products/software/indusoft/download_PC.htm .
For WinPAC-8000, ViewPAC-2xWx, and XPAC-8000-CE6 users, there is no need to install the DCON
driver. The DCON driver is included inside the runtime folder. Simply download the InduSoft runtime
folder from the site: http://www.icpdas.com/products/software/indusoft/download_PAC.htm . When
the DCON communication driver is installed in IWS, users just need to select the driver in the application
and the steps are described as follows:
4. When the DCON driver is displayed in the Selected Drivers list, click the OK button to close the dialog.
The driver is added to the Drivers folder, in the Comm tab of the Workspace.
Page 5
DCON-Version 2.02 –2009/10/15
It is not necessary to install any other software in the PC / XP-8000 / XP-8000-CE / WinPAC-8000 /
ViewPAC-2xWx to enable the communication between the host and the Device.
Note:
Special cautions must be taken when installing the physical hardware. Refer to the hardware manufacture
documentation for specific instructions in this area.
Page 6
DCON-Version 2.02 –2009/10/15
Once you have selected the DCON driver in Studio, you must properly configure it to communicate with your
target devices. First, you must set the driver’s communication settings to match the parameters set on the
device. Then, you must build driver worksheets to associate database tags in your Studio application with the
appropriate addresses for the devices.
The communication settings are described in detail in the “Communication” chapter of the Studio Technical
Reference Manual, and the same general procedures are used for all drivers. Please review those
procedures before continuing.
For the purposes of this document, only DCON driver-specific settings and procedures will be discussed
here. To configure the communication settings for the DCON driver:
1. In the Workspace pane, select the Comm tab and then expand the Drivers folder. The DCON driver is
listed here as a subfolder.
2. Right-click on the DCON subfolder and then select the Settings option from the pop-up menu. The
DCON: Communication Parameters dialog is displayed:
Page 7
DCON-Version 2.02 –2009/10/15
0: No checksum
Checksum 0 0 or 1
1: Checksum
Table 4.1.1
Note: These Parameters must be just the same as the configured on the ICP DAS device.
The configuration of these worksheets is described in detail in the “Communication” chapter of the Studio
Technical Reference Manual, and the same general procedures are used for all drivers. Please review
those procedures before continuing.
1. In the Comm tab, open the Drivers folder and locate the DCON subfolder.
2. Right-click on the DCON subfolder, and then select Insert from the pop-up menu:
Page 8
DCON-Version 2.02 –2009/10/15
A new DCON driver worksheet is inserted into the DCON subfolder, and the worksheet is opened for
configuration:
NOTE:
Most of the field on this sheet are standard for all drivers; see the “Communication” chapter for the
Technical Reference Manual for more information on configuring these fields. However, the Station
and I/O Address field use syntax that is specific to the DCON driver.
Users can only apply the tag name up to 100 items in the same worksheet.
Page 9
DCON-Version 2.02 –2009/10/15
Table 4.2.2.1
Page 10
DCON-Version 2.02 –2009/10/15
Communicate with
FRNET Any
FRnet modules
PWM modules PWM Any
Table 4.2.2.2
Note:
1. For header type AI or AO
The x symbol is used to configure a module’s input/output range in the XP-8000’s slot. The
following description lists all the x values. The value 0 ~ 3 will be configured as +/- 10V and the
value 4 is +/- 20mA. If users just use AI or AO head type without x value, the default x value is 0.
0: +/- 10V
1: +/- 5V
2: +/- 2.5V
3: +/- 1.25V
4: +/- 20mA
2. For header type SendCmd
For Slot Module, x means slot number of module. For COM Port Module, use without x in header
field.
Note:
Always creates two different driver worksheets for Input and Output modules.
4.2.3 Configuring the Tag and Address fields for General Modules
The body of the driver worksheet allows you to associate each tag to its respective address in the device.
In the column Tag Name, you must type the tag from your application database. This tag will receive or
send values from or to the device.
Address Field
Page 11
DCON-Version 2.02 –2009/10/15
Please fill in module setting value into address field with the following sequence:
Address : Module’s Address in the network (Range from -1 to 255). -1 for I-8K and 0 for
I-87K modules in slot.
Slot : The slot number where the Module is plugged in the backplane. -1 for I-7000
modules or I-87K modules on I-87K expansion unit.
Total_In Channel : The total number of input channel for a module.
Total_Out Channel : The total number of output channel for a module.
Channel Number : Channel’s Number to be read/written from/to the module.
Table 4.2.3.1
Page 12
DCON-Version 2.02 –2009/10/15
Read AI (I-87017W)
AI 0:4:8:0:4
Slot:4 / Ch:4
Write AO (I-87024W)
AO 0:7:0:4:0
Slot: 7 / Ch: 0
Send/Recv Cmd to DO I-87041W
SendCmd:6 Command String ( like $00M )
Slot:6
ComPort Modules Header Field Address Field
Read DI (I-7041)
DI 1:-1:14:0:5
Addr:1 / Ch:5
Read/ Write DO (I-7042)
DO 2-1:0:13:6
Addr:2 / Ch:6
Read AI (I-7012)
AI 4:-1:1:0:0
Addr: 4 / Ch: 0
Write AO (I-7021)
AO 3:-1:0:1:0
Addr: 3 / Ch: 0
Send/Recv Cmd to DO (I-7041)
SendCmd Command String ( like $06M )
Addr:1
Table 4.2.3.1
4.2.4 Configuring the Tag and Address fields for FRnet Module
The body of the driver worksheet allows you to associate each tag to its respective address in the device.
In the column Tag Name, you must type the tag from your application database. This tag will receive or
send values from or to the device.
Address Field
Please fill in module setting value into address field with the following sequence:
Address : Module’s Address in the network (Range from -1 to 255). -1 for I-8K and 0 for
Page 13
DCON-Version 2.02 –2009/10/15
Table 4.2.4.1
The body of the driver worksheet allows you to associate each tag to its respective address in the device.
In the column Tag Name, you must type the tag from your application database. This tag will receive the
counter values from the device.
Address Field
Please fill in module setting value into address field with the following sequence:
Page 14
DCON-Version 2.02 –2009/10/15
Mode 2: Frequency
Mode 3: Up Counter
Mode 4: A/B Phase Counter
Table 4.2.4.2
Variable 1 : The slot number where the Module is plugged in the backplane (Range: 0 to 7).
Variable 2 : The number of channel the function will be called.
Variable 3 : The value needed to be filled in the third parameter of the respective function. If there is no
parameter needed, please fill 0 instead.
Variable 4 : The value needed to be filled in the forth parameter of the respective function. If there is no
parameter needed, please fill 0 instead.
Page 15
DCON-Version 2.02 –2009/10/15
Table 4.2.4.3
Address Field
1 pac_i8088W_SetPWMDutyDeci( );
2 pac_i8088W_SetPWMDutyCoutn( );
3 pac_i8088W_SetPWMCountMode( );
4 pac_i8088W_BurstCount( );
5 pac_i8088W_PWMStart( );
6 pac_i8088W_PWMStop( );
7 pac_i8088W_SetSyncChannel( );
8 pac_i8088W_SyncStart( );
9 pac_i8088W_SyncStop( );
10 pac_i8088W_SetHardwareTrigChannel( );
Table 4.2.4.4
Page 16
DCON-Version 2.02 –2009/10/15
Table 4.2.4.5
The device parameter (baud rate, stop bits, etc) must be matched with the settings configured in the
Communication Parameters of the DCON driver.
Page 17
DCON-Version 2.02 –2009/10/15
By default, Studio will automatically execute your selected communication driver(s) during application
runtime. However, you may verify your application’s runtime execution settings by checking the Project
Status dialog.
1. From the main menu bar, select Project → Status. The Project Status dialog displays:
Page 18
DCON-Version 2.02 –2009/10/15
The DCON driver provides a simple method to improve multi-channel scan time for a DI/AI module. If a
module has many channels, this method can decrease the communication times to obtain all channels
values from this module. Users only need to configure the address for the first channel of this module, and
give the others null address as figure below.
Page 19
DCON-Version 2.02 –2009/10/15
When users want to use two or more DCON drivers in InduSoft, please follow the steps list below.
1. Duplicate DCON.dll, DCON.ini, and DCON.msg which located in the Bin folder under the installation
path. Ex: C:\Program Files\Indusoft Web Studio v6.1\Drv
2. After these three files duplicated, modify the filename. Please follow rules below for naming the
filename of a new driver.
i. The filename cannot exceed five characters.
ii. The last character of the filename must be alphabet.
For Example:
DCONA, DCONB…=> OK
DCONABC, DCON1, DCON2…=>NG
Page 20
DCON-Version 2.02 –2009/10/15
8. Troubleshooting
After each attempt to communicate using this driver, the tag configured in the field Read Status or Write
Status will receive the error code regarding the kind of failure that occurred. The error messages are:
Page 21
DCON-Version 2.02 –2009/10/15
0 NoError
-1 ID ERROR
-2 SLOT OUT RANGE
-3 CHANNEL OUT RANGE
-4 SELECT CHANNEL ERROR
-5 ADDRESS ERROR
-10 DATA ERROR
-15 Timeout
0 NoError
-1 ID ERROR
-2 SLOT OUT RANGE
-3 CHANNEL OUT RANGE
-4 SELECT CHANNEL ERROR
-5 HI DUTY OUT RANGE
-6 LO DUTY OUT RANGE
Note:
1. The results of the communication may be verified in the output Window of the Studio’s environment.
To set a log of events for Field Read Commands, Field Write Commands and Serial
Communication click with the right button of the mouse on the output window and choose the option
setting to select these log events.
2. When testing under a Windows CE target, you can enable the log at the unit (Tools/Logwin) and verify
the celog.txt created at the target unit.
Page 22
DCON-Version 2.02 –2009/10/15
When you are not able to establish the communication with the PLC, you should first of all establish the
communication between the PLC Programming Tool and the PLC. Very frequently the communication it is not
possible due to a hardware or cable problem, or due an error or lack of configuration at the PLC. Only after
the communication between the PLC Programming Software and the PLC is working fine, you can test again
the supervisory. When testing the communication with the Studio, you should first use the application sample
described at item 7, instead of the new application that you are creating.
If is required to contact technical support, please have the following information available:
- Operating System (type and version): To find this information use the Tools/System Information option
- Project information: It is displayed using the option Project/Status from the Studio menu
- Driver version and communication log: Available from Studio Output when running the driver
- Device model and boards: please refer to hardware manufacture’s documentation
Page 23
DCON-Version 2.02 –2009/10/15
ICPDAS has work with InduSoft for many years and we provide more InduSoft solutions to help users
solve InduSoft problems quickly and develop InduSoft project easily. The following InduSoft resources
provided by ICPDAS are free, please refer to the ICPDAS InduSoft Web Site:
Page 24
DCON-Version 2.02 –2009/10/15
2.02 Eugene Chen 15-September-2009 Add module I-8172W, I-8084W, and I-8088W
Page 25