ICP VP-2111 User manual

Type
User manual

This manual is also suitable for

VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 1
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
VP-2000/VH-2000 Series
(C Language Based, MiniOS7 Inside)
User Manual
Version 1.0.3, July 2011
Service and usage information for
VP-2111
VH-2110
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 2
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Warranty
All products manufactured by ICP DAS are under warranty
regarding defective materials for a period of one year,
beginning from the date of delivery to the original purchaser.
Warning
ICP DAS assumes no liability for any damage resulting from 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. However, no
responsibility is assumed by ICP DAS for its use, not for any
infringements of patents or other rights of third parties
resulting from its use.
Copyright
Copyright @ 2011 by ICP DAS Co., Ltd. All rights are reserved.
Trademark
The names used for identification only may be registered
trademarks of their respective companies.
Contact US
If you have any problem, please feel free to contact us.
You can count on us for quick response.
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 3
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Table of Contents
1. Introduction --------------------------------------------------------------------- 6
ViewPAC Family (MiniOS7 Inside) ----------------------------------------- 7 1.1.
Features -------------------------------------------------------------------------- 8 1.2.
Specification -------------------------------------------------------------------- 9 1.3.
Overview ---------------------------------------------------------------------- 11 1.4.
Dimension --------------------------------------------------------------------- 13 1.5.
Companion CD --------------------------------------------------------------- 16 1.6.
2. Getting Started --------------------------------------------------------------- 17
Hardware Installation ------------------------------------------------------ 18 2.1.
Mounting the Hardware ------------------------------------------------------------- 19 2.1.1.
Mounting the IP-65 Waterproof connector ------------------------------------- 25 2.1.2.
Software Installation ------------------------------------------------------- 27 2.2.
Boot Configuration ---------------------------------------------------------- 29 2.3.
Uploading ViewPAC Programs ------------------------------------------- 30 2.4.
Establishing a connection between PC and ViewPAC ------------------------- 31
2.4.1.
2.4.1.1. RS-232 connection --------------------------------------------------------------- 32
2.4.1.2. Ethernet Connection ------------------------------------------------------------ 35
Uploading and executing ViewPAC programs ----------------------------------- 40 2.4.2.
Making programs start automatically --------------------------------------------- 41 2.4.3.
Updating the ViewPAC OS image ---------------------------------------- 43 2.5.
3. “Hello World” – Your First Program ------------------------------------- 46
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 4
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
C Compiler Installation ----------------------------------------------------- 47 3.1.
Installing the Compiler --------------------------------------------------------------- 48 3.1.1.
Setting up the Environment Variables -------------------------------------------- 52 3.1.2.
ViewPAC APIs ----------------------------------------------------------------- 55 3.2.
First Program in ViewPAC ------------------------------------------------- 56 3.3.
4. APIs and Demo References ------------------------------------------------ 68
API for COM Port ------------------------------------------------------------ 77 4.1.
Types of COM port functions ------------------------------------------------------- 79 4.1.1.
API for MiniOS7 COM port ---------------------------------------------------------- 80 4.1.2.
API for standard COM port ---------------------------------------------------------- 83 4.1.3.
COM Port functions Comparison--------------------------------------------------- 86 4.1.4.
Request/Response protocol define on COM port ------------------------------ 88 4.1.5.
API for I/O Modules -------------------------------------------------------- 89 4.2.
Steps to use I-8K series I/O modules in slots (for VP-2111 module only) - 91 4.2.1.
Steps to use I-87K series I/O modules in slots (for VP-2111 module only)92 4.2.2.
Steps to use I-7K and I-87K series I/O modules that are connected with 4.2.3.
COM ports --------------------------------------------------------------------------------------- 94
API for EEPROM -------------------------------------------------------------- 96 4.3.
API for Flash Memory ------------------------------------------------------ 98 4.4.
API for NVRAM ------------------------------------------------------------- 101 4.5.
API for Timer --------------------------------------------------------------- 103 4.6.
API for WatchDog Timer (WDT) ---------------------------------------- 105 4.7.
API for MFS (For VP-2111 module only) ----------------------------- 107 4.8.
Appendix A. What is MiniOS7 --------------------------------------------- 113
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 5
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Appendix B. What is MiniOS7 Utility ------------------------------------- 114
Appendix C. What is MiniOS7 File System (MFS) (For VP-2111
module only) ------------------------------------------------------------------- 115
Appendix D. I-8K and I-87K serial Modules (For VP-2111
module only) ------------------------------------------------------------------- 119
Appendix E. Application of RS-485 Network --------------------------- 120
E.1. Basic RS-485 Network ---------------------------------------------------- 121
E.2. Daisy Chain RS-485 Network ------------------------------------------- 122
E.3. Star Type RS-485 Network ---------------------------------------------- 123
E.4. Random RS-485 Network ------------------------------------------------ 125
E.5. Master/Slaves Settings--------------------------------------------------- 126
E.5.1. ViewPAC as a Master (default) ---------------------------------------------------- 126
E.5.2. ViewPAC as a Slave ------------------------------------------------------------------ 128
Appendix F. Revision History ----------------------------------------------- 130
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 6
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
1. Introduction
ViewPAC combines iPAC, graphic display and keypad in one unit. It equips an 80186
CPU (16-bit and 80MHz) running a MiniOS7 operating system, several
communication interface (Ethernet, RS-232/485), 3 slots to expand I/O modules, STN
LCD and a rubber keypad.
Its operating system, MiniOS7, can boot up in a very short time (0.4~0.8 seconds). It
has a built-in hardware diagnostic function, and supports the full range of functions
required to access all high profile I-8K and I-87K series I/O modules, such as DI, DO,
DIO, AI, AO, Counter/Frequency, motion control modules, etc.
Compared with traditional HMI + PLC solutions, ViewPAC reduces overall system cost,
space and gives you all the best features of HMIs and PLCs.
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 7
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
ViewPAC Family (MiniOS7 Inside) 1.1.
ViewPAC can be divided into two types, according to their features.
VP-2111
VH-2110
ViewPAC Comparison
The following table provides a specification comparison of ViewPAC model.
VP-2111
VH-2110
OS
MiniOS7
CPU
80 MHz
Flash
512 KB
RAM
768 KB
512 KB
Dual Battery Backup SRAM
512 KB
-
Flash Disk
64 MB
-
STN LCD Resolution
128 x 64
Ethernet
1
RS-232/RS-485
3
I/O Slot
3
-
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 8
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Features 1.2.
Main features of hardware and software.
Software Features
MiniOS7 Embedded Operating System (DOS-like)
C language Based Software Development Toolkit
Modbus Library Provided
Hardware Diagnostic Functions
Load Files via RS-232 or Ethernet
Hardware Features
80186, 80 MHz CPU (16-bit)
IP65 Compliant Front Panel
STN LCD with Chinese Font
Rubber Keypad with 24 Keys
One 10/100M Ethernet Port
64-bit Hardware Serial Number for Software Protection
Operating Temperature: -15 ~ +55 °C
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 9
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Specification 1.3.
VP-2111
VH-2110
OS
MiniOS7 (DOS-like embedded operating system)
Program Download Interface
RS-232 (COM1) or Ethernet
Programming Language
C language
Compilers to create.exe Files
TC++1.01 (Freeware); TC 2.01 (Freeware); BC++3.1 ~ 5.2x;
MSC 6.0;MSC++ (before version 1.5.2)
CPU
80186 or compatible (16-bit and 80 MHz)
SRAM
768 KB
512 KB
Dual Battery Backup SRAM
512 KB (for 5 years
retention)
-
Flash
512 KB (100,000 erase/write cycles)
Flash Disk
64 MB NAND Flash
(100,000 erase/write cycles)
-
EEPROM
16 KB; Data Retention: 40 years; 1,000,000 erase/write
cycles
NVRAM
31 bytes (battery backup, data valid up to 5 year)
RTC (Real Time Clock)
Provide second, minute, hour, date, day of week, month,
year
64-bit Hardware Serial
Number
Yes
Watchdog Timers
Yes (0.8 second)
Ethernet
RJ-45 x 1, 10/100 Base-TX (Auto-negotiating, Auto
MDI/MDI-X, LED indicators)
COM0
Internal communication with the high profile I-87K series
modules in slots
COM1
RS-232 (to update firmware) (RXD, TXD and GND);
non-isolated
COM2
RS-485
D2+, D2-; self-tuner ASIC inside
Isolation
2500 V
DC
-
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 10
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
COM3
RS-232/RS-485 (RxD, TxD,
CTS, RTS and GND for
RS-232, Data+ and Data- for
RS-485); non-isolated
RS-232 (RxD, TxD, CTS, RTS
and GND for RS-232);
non-isolated
LCD
STN, 128 x 64 Dot Matrix LCD
Display Mode
Text + Graphics
Text Font
English + Simplified Chinese/Traditional Chinese
Rubber Keypad
24 keys
Buzzer
Yes
LED Indicators
3 Dual-Color LEDs (PWR,
RUN, LAN1, L1, L2, L3; L1 ~
L3 for user programmable)
2 Dual-Color LEDs (RUN,
LAN1, L1, L2; L1 ~ L2 for
user programmable)
Slot Number
3 (For High Profile I-8K and
I-87K Modules Only)
-
Hot Swap * will be available
For High Profile I-87K
Modules Only
-
Data Bus
8/16 bits
-
Address Bus Range
2 K for each slot
-
Dimensions (W x H x D)
182 mm x 158 mm x 125 mm
Installation
Panel mounting
Ingress Protection
Front panel: IP 65
Operating Temperature
-15 ~ +55 °C
Storage Temperature
-30 ~ +80 °C
Ambient Relative Humidity
10 ~ 90 % RH (non-condensing)
Input
Range
PoE
-
Terminator Block
+10 ~ +30 V
DC
+12 ~ +48 V
DC
Isolation
1 kV
-
Capacity
3 A, 5 V supply to I/O
expansion slots
-
Consumption
6 W (0.25 A @ 24 V)
3.6 W (0.15 A @ 24 V)
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 11
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Overview 1.4.
Here is a brief overview of the components.
VP-2000/VH-2000 Series
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 12
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
VP-2111
VH-2110
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 13
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Dimension 1.5.
All dimensions are in millimeters.
VP-2000/VH-2000 Series
Recommended Panel Cut-Out Front View
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 14
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
VP-2000
Back View Left Side View Right Side View
Top View Bottom View
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 15
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
VH-2000
Back View Left Side View Right Side View
Top View Bottom View
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 16
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Companion CD 1.6.
This package comes with a CD that provides drivers, software utility, all of the
required documentations…, etc. All of them are listed below.
CD:\Napdos
vp-2000
demo
vh-2110
Demos related to VH-2110
vp-2111
Demos related to VP-2111
Readme.txt
document
data_sheet
VP-2000_VH-2000.pdf
Documents related to ViewPAC
os_Image
vh-2110
OS images related VH-2110
vp-2111
OS images related to VP-2111
PC_Tools
MiniOS7_Utility
Files related to MiniOS7 Utility
PC Test Program
Tools related to ViewPAC
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 17
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
2. Getting Started
If you are a new user, begin with this chapter, it includes a guided tour that provides
a basic overview of installation and configuration.
In addition to Quick Start Guide, the package includes the following items, if any
items are damaged or missing, please contact us.
VP-2111/VP-2111-TC
VH-2110/VH-2110-TC
CA-0915
RS-232 Cable
Screw Driver
RJ-45 Waterproofing Kit
Software Utility CD
Panel Clips *5
Screw *5
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 18
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Hardware Installation 2.1.
Before installing the hardware, you should have a basic understanding of hardware
specification, such as the size of hard drive, the usable input-voltage range of the
power supply, and the type of communication interfaces.
For complete hardware details, please refer to section “1.3. Specifications”
You also need to know the expansion capacities in order to choose the best
expansion module for achieving maximal efficiency.
For more information about expansion module that are compatible with the unit,
please refer to
http://www.icpdas.com/products/PAC/viewpac/IO_Expansion.htm
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 19
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Mounting the Hardware 2.1.1.
ViewPAC can be mounted in a panel of maximum thickness 12mm.
Adequate access space can be available at the rear of the instrument panel for wiring
and servicing purposes.
VP-2000/VH-2000 Series (C Language Based) User Manual, Version 1,0,3 Page: 20
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Below are step-by-step instructions for mounting the ViewPAC hardware.
Step 1: Prepare the panel cut-out to the size as below shown
Take care not to cover ventilation holes in the top, bottom and sides of the
instrument.
Step 2: Insert the ViewPAC through the panel cut-out
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130

ICP VP-2111 User manual

Type
User manual
This manual is also suitable for

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI