Home
TouchPAD - ICP DAS
Contents
1. Download Information T ouchPAD IP address 192 168 255 1 eq 10 1 2 3 MAC address 00 0D E0 82 01 06 eq 00 00 E0 11 22 33 Cone TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 25 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com description Search TouchPAD Search for the TouchPAD devices on the network Make sure that the TouchPAD devices and the local computer are in the same subnet Device Nickname The nickname used to identify the TouchPAD device which is selected in the list on the Search TouchPAD window This nickname is part of the program image and it takes effect after the new program runs downloading successful Type of IP Static IP or DHCP Device IP Address in The IP address of the TouchPAD device which the Runtime Information group is used in the runtime of the program The IP address in the runtime is part of the program and it takes effect after the new program runs downloading successful Mask The subnet mask for the TouchPAD Gateway The gateway address for the TouchPAD The gateway address is the IP address for a network interface on a router that leads to a larger network Device IP Address in The IP address of the TouchPAD which is used the Download Information group only when downloading programs This IP address information is NOT part of the p
2. VAR_SET AI7 v_ail7 VAR_SET AI8 v_ai 8 VAR_SET SAI9 v_ai 9 ae Inspector Libraries fig HMIWorks Ladder Designer ZA Labetwideet Be ZA Labelidget Label idget 0x000000 LabelWidget9 Representing decimals in the C language In the frame of Standard C representing decimals may be difficult since sprintf function is not supported in HMIWorks We use usprintf or usnprintf to replace sprintf but usprintf does not support the argument f In order to display a floating point value we provide a new API function for this purpose the FloatToStr function as shown in the example below void TextPushButton4OnClick tWidget pWidget float ret_sin float angle 1 57 static char str_sin 16 sin ret_sin sin angle int FloatToStr char buf float fVal int precision the precision determine the number of the digits after the decimal point TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 103 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com FloatToSitr str_sin ret_sin 3 LabelTextSet amp Label5 str_sin The result is 1 000 5 4 14 RadioButton RadioButton Qs What is a RadioButton The RadioButtons is used for a one of many selection That is only one of the RadioButtons in a particular group we call it Radio
3. LZA Dev_1_ADDR_BASE 5 3 6 User Defined I O Modules To know how to add a user defined I O module we first explain how HMIWorks uses these I O modules There are several kinds of I O modules DCON I O modules l 7000 series I O modules by ICP DAS http Awww icpdas com products Remote_ 1IO i 7000 i 7000 introduction htm Modbus TCP I O modules ICP DAS provides ET PET 7000 series http Awww icpdas com products Remote_ lO et 7000 et 7000 introduction htm Modbus RTU I O modules M 7000 series I O modules by ICP DAS http Awww icpdas com products Remote 1O m 7000 m 7000 introduction htm Where HMIWorks Put I O Module Information HM Works puts I O module information in the following locations TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 70 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com CAICPDAS HMTWorks_Standardibin Modules l 7000 A l 7011 7 M 7000 Mia 1O hsf l 7067 Modules ini P l 7000 ini Some explanations for above figure C ICPDAS HMI Works_ Standard is the installation path Users may have different installation paths Modules ini is the I O series configuration file l 7000 ini is the configuration file for the l 7000 series I O modules M 7000 ini and PET 7000 ini are configuration file for the M 7000 and the PET 7000 series I O modules respectively Each I O
4. TPD 280 M1 Front View TPD 283 M2 Front View TPD 283U M3 Front View 2 8 TFT LCD with Touch Panel 2 8 TFT LCD with Touch Panel 2 8 TFT LCD with Touch Panel gt HMI TPD 280 Mi Rear View TPD 283 M2 Rear View TPD 283U M3 Rear View RS 485 Ethernet Rotary Switch Rotary Switch Rotary Switch Eron vion USB Rotary Switch Rotary Switch 2 8 TFT LCD with Touch Panel RS 485 Rotary Switch RS 485 Rotary Switch Ethernet RS 485 Ethernet l k das i es 70 ey ance nas OUP en ye i a F y Era Sivan oe i a or Ae TPD 430 EU TPD 433 EU E TPD 430 EU Rear View TPD 433 Rear View TPD 432F Rear View TPD 433F Rear View Front View Rotary Switch LED Speaker i s Rotary Swan Rotary Switch Rotary Switch 4 3 TFT LCD n ype RS 232 RS 485 RS 232 RS 485 with Touch Panel Ethernet USB Ethernet USB s s rm ty x a4 s z e 2 e lt lt _ d Iroa t 3 e ae trossa mi N TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 16 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com TPD 703 TPD 703 64 Front View TPD 703 TPD 703 64 Front View TPD 703 TPD 703 64 Rear View Reset Button RS 232 RS 485 Ethernet Rotary Switch 7 TFT LCD with Touch Panel HMIWERE aN Important Notice The reset button does not behave as a reboot to the whole system only resets the microcontroller and this is not enough to make
5. 5 4 1 Commons of Components and Frames This section describes the common characteristics of frames and components from the Toolbox Putting a component on the frame Two ways to put a component on the frame 1 drag a suitable sized rectangle 2 simply click on the frame to decide the location after selecting a component To drag a suitable sized rectangle take a Rectangle for example to describe how to put a component such as a Rectangle a Slider etc on the frame Click the Rectangle icon from the Drawing panel of the Toolbox tab Il Move your mouse to the frame design area and click and drag a suitable sized rectangle TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 81 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com P S 2 To draw a square What to do if want to draw a square Step II with the Ctrl key pressed at the same time when drawing a Rectangle Qa To draw a circle What to do if want to draw a circle Step Il with the Ctrl key pressed at the same time when drawing an Ellipse Common Properties ixj Inspector Libraries Where can we access properties of a E Box y 9 BrushStyle Clear COMPONEN FilColor OxFFFFFF T N Don ouuueie Click on the component or the frame and rile sikini oe saikin then the properties of the component can be Dutinetolo whens Seon aeea accessed in the Inspector II ANTEN D
6. Frame Test7066 hwd GFA File Edit View HMI Layou Workspace Toolbox m nge Run Window Help Device eee 17066 1_000 o 1_7066_1_005 22 1_7066_1_D06 22 1_7066_1_ACTION A Virtual rm cannot lstat t o No such file or directory make exe clean Error 1 ignored rm cannot lstat d No such file or directory make exe clean Error 1 ignored CC in e HM Works does the followings to build the relationships between the TouchPAD device and I O modules TouchPAD l 7066 RefObiect ObjectListi5 iy S oleamted n bln TagName__ _7066_1_D00 f Lheckb J W joe 7 Associated with the tag by TagName TagName 1_7066_1_000 BEGIN_FUNCTION_BLOCK mite BYTE v_do 0 i 10 hsf DO1 25 1_70661_D01 if VAR_VALUE W_ACTION 002 ZA _7066_1_D02 i DO3 BB Cro 12003 VAR _VALUEBDOO v_ do 1 lt lt 0 DO4 4 ZA _7066_1_D04 if VAR_VALUE D0T v_do 1 lt lt 1 17000 ini DOS 23 _7066_1_D05 if VAR_VALUE DO2 v_do 1 lt lt 2 UU IE DOG ZA _7086_1_DO6 if VAR_VALUE D0O3 v_do 1 lt lt 3 R_ACTION 1 ZA _7066_1_R_ACTION if VAR_VALUE D04 v_do 1 lt lt 4 W_ACTION 1 A _7066_1_W_ACTION if VAR_VALUE DO5 v_do 1 lt lt 5 if VAR A SLOG do lt lt DO0 DO0 0 gt END_FUNCTION_BLOCK Note The TagName property takes effect only in the programm
7. 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com 5 3 3 5 Inserting and Deleting a Contact Input To demonstrate how to insert or delete a contact input and other related issues go through the steps below 1 Associate a variable to a contact input Press F2 on your keyboard to insert a new rung with a contact input and a coil output HMI Works Ladder Designer File Edit F2 JE F3 F4 Lae Fs Os Fo e7 O Fe to a i ee In the new rung double click on the contact input to open the Select variable window to select a variable tag and assign it to the contact input Mo Select variable Browse Yarables Enter Constant Scope Global Clear Tag For example we double click on the variable v1 and set to the contact input v1 v2 and v3 are the variables set by New Virtual Tags Refer to the New Virtual Tags section TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 53 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Eg HMI Works Ladder Designer File Edit eet F4 tae Fs FeO F7 g F8 to F9 gt az 2 Insert a new contact input in the left of the cursor F2 Move the cursor to the v1 contact input and then press F2 And to make things clear associate variable v2 to the newly inserted contact input E HMI Works Ladder De
8. Ep VAIP Setting me Aliss Mask Recommend Settings E TCP BroadCast 10 1 120 50 PETL 7050 EthelO 255 2 F TCP Broadcast 10 1 121 1047 PET 7067 255 2 IP f10 1 121 105 E TCP BroadCast 10 1 121 14 PET 7026 255 2 Mask 25525500 PITCP BroadCast 10 1 121 1 PET 7060 255 2 TCP Broadcast 10 1 112 14 7188E2 255 2 Gateway 10 1 121 254 TCPBroadCast 10 1 0 117 ET 87PN 1 00 255 2 pee S Search done DHCP fe Disable C Enable Finally connect to the PET 7060 module and configure it by a browser gt ET7000 Web page Windows Internet Explorer pie 1 DAEMON Search ny By v FP yv gvr v gt gt ce ET7000 Web page ICP DAS http www icpdas com 3 Main Menu eae Welcome to the PET 7000 Web configuration page Cia H Authentication Model mame PEED oaa MAC A ress 0 d e0 64 9 70 Q Pair Connection ee V113 May 13 2009 gt CJ More Information OS Version V229 May 12 2009 ss SS DI channels 6 Do channels 6 Alchannels 0 ao channels 0 Bre FP peewee pts 2 Creating a New Project Click the New option from the File menu and then select the Model specify the Project name the Location the Orientation and the Programming Type Here we choose programming type as 2 Ladder TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 139 C
9. Go to the section Properties of a Frame for details A 2 How to have higher resolution Picture Go to the section Loading a Picture for details A 3 How does a TouchPAD control I O Go to the section Using an ObjectList for details A 4 How to change Font of Text Go to the section Drawing a lexi for details TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 152 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com A 5 How to represent decimals for Ladder Designer Go to the section Using a Label for details A 6 How to remove the startup beep of a TPD 283 device The TPD 283 devices sound a beep when startup Refer to the section The Options of ouchPAD for more details A 7 How to customize the generated code Every time when building a project HMIlWorks generates source codes to build Below is the procedure to customize the generated source codes 1 After finishing designing the project press F5 build on your keyboard instead of F9 run to generate codes 2 Inthe directory of the project open the source file c files 3 Edit the source files c files 4 Press F10 on your keyboard and a cmd exe window is displayed Enter make in the cmd exe window to re make the project 5 For the TPD 283U H TPD 283U Mx there are additional steps that need to be executed after entering make
10. Rotary Switch set to 9 After resetting the above screen can be seen TouchPAD 1 Run gt Run F9 Download the program lt Rotary Switch set to 0 F Rendering and Builg Rendering Only Ctrl F5 Download Only Ctrl F9 Setup Device Console F10 a Updating OS through USB some devices e g TPD 280 in the TouchPAD series do not have MiniOS8 on them but still some do have To update MiniOS8 go to the File menu and click the Update MiniOS8 option to open the dialog as shown below Update MiniOS8 x Update Cancel The Model drop down list shows the models in the TouchPAD series that have MiniOS8 Select the model of the TouchPAD to update Note each version of HMIlWorks corresponds to a version of MiniOS8 Though we try to achieve backward compability we still suggest update MiniOS8 every time HMIWorks is updated Application Image Checksum Using MiniOS8 bin of version 1 1 8 corresponding HMIWorks version 2 07 or above TouchPAD supports application image checksum when loading the application program from the flash at startup lf checksum error when loading the application program the below message is TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 32 Copyright 2015 ICP DAS Co Ltd All Rights Reserved x lt E mail service icodas com shown on the screen Application Checksum Error Application Checksum Error Try to download the a
11. eno 1 Else eno 0 GE Greater or Equal If en 1 and ini gt in2 l 7 default eno 1 Else eno 0 LE Less or Equal If en 1 and ini lt in2 l S default eno 1 Else eno 0 Assign If en 1 out Is assigned TEn 9 default with in and eno 1 Else eno 0 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 47 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt j E mail AND And If en 1 eno in1 amp in2 Else eno Q OnChange OnChange lf en 1 and in is changed default eno in Else eno 0 Add Addition If en 1 l math q in1 in2 and eno 1 Else eno 0 Sub Subtraction If en 1 math q in1 in2 and eno 1 Else eno 0 Mul Multiplication lf en 1 math q in1 in2 and eno 1 Else eno 0 Div Division If en 1 math q in1 in2 and eno 1 Else eno 0 Inc Increment lf en 1 increment in by 1 math Else eno 0 uee Dec decrement EF eng lf en 1 decrement in by 1 math in Else eno 0 Mod Modulo lf en 1 l l math q in1 in2 and eno 1 Else eno 0 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 48 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt j E mail CTU Count Up End count gt value If en 1 Count up until End During counting eno 0 When End eno 1 Else counter Reset co
12. add a Jump E HMI Works Ladder Designer Eile Edit F2 3E F3 JE Feige de OD z Ol F8 t gt 3 Double click on the starting point of the third rung to add a label TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 62 Copyright 2015 ICP DAS Co Ltd All Rights Reserved x lt E mail service icpdas com 4 s Test_Label to it Pa HMI Works Ladder Designer l0 x File Edit PRE p soled e a r Input Label ffetlael i SOSC C S ae re Double click on the Jump of the first rung to associate with the label of the third rung So Choice Label Form Pe HMI Works Ladder Designer File Edit F2 3E F3 F4 tae Fs Os FO e7 O F8 t Fo gt oo 2 M _O J Test_Label 2 4 F _O When running the ladder logic set the coil output of the first rung to high skip the second rung and jump to the third rung if the contact input of the TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 63 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com first rung is closed 5 3 4 User Defined Function Block Why should we use function block There may be cases that using only ladders is too complex At that time using a function block may be a good choice To Know how to add a user defined function block we first expl
13. ee eer 99 ONO BISON ecse E neces eee oe eceeeeezeees 100 E Ma D P bo 9 6 anne 100 9412 2 6 4 6 Gene ee ee eee 101 oes kG Pn 0 ee 101 5 4 14 RadioButton cece cccccseccceeeceeeceeeeceeeseesaueeeseeseeesaes 104 oo O Gee ne eee ee ee ee ee eee eee ey 106 Sa A S HIM ON E O T 107 5 4 17 ODJjectList cc ceccceecccsseeceeeceeeeceeseceeseseueeseusessueesseeeeas 108 NTS saree cederctee seta cctenctect acest E 113 5 5 1 Cascading and Grouping Arrange Menu 0ccee 113 5 5 2 Rotating and Flipping Edit Menu cceeeeeseeeeeeeees 116 5 5 3 Frame Managing and Aligning Layout Menu 118 5 5 4 Build and Download to Run Run Menu 00 121 5 5 5 Library Management Popup Menu cccseceeseeeeseeeees 122 6 Making a Simple Project ccccccccecceseeeeseeeeeeeeeeeeeeseeeeseeeeseesseeesaeeeeas 127 6 1 Your First Project Using Standard C ccccccseeceesseeeeeeeeeseeees 127 6 2 Your First Project Using Ladder cccccseceeneeeeeeeeeeeeeeneeeens 130 6 3 Integrating TPD 280 Series with I O modules cccceeee 135 6 4 Integrating TPD 283 Series with I O modules 0 cccceeee 138 7 Advanced Programming in C cccecceceeeeseeeeceeeeceeeeceueeseeeeseueesaueesaueeseaees 142 7 1 Adding a New File to Project cccccccccseeecseeeeseeeeseeeeeeeesaeeeeas 142 7 2 Upda
14. printer and your screen Using GoToFrame to switch to another frame The GoToFrame property is used as an event of go to specified frame It has higher priority than other events such as OnClick event Thus specifying an option of the GoToFrame property disables the OnClick event It s easy to specify a value to the GoToFrame property Simply click the GoToFrame field in the Inspector and then choose the frame to go Inspector Libraries Inspector Libraries 73 HotSpot 23 HotSpot v Enabled Enabled 3 GoToFrame GoToFrame am Height ID Let 45 Name HotSpot OnClick OnRelease a OnRelease Tag 0 139 gt Top 16 Top 16 Width 120 Width aca Using the RefObject property We use the RefObject properties to replace the display of TextPushButton Slider CheckBox and RadioButton with images of the assigned ObjectList The state or value of a component is used as an index to determine which image in the ObjectList is displayed if the ObjectList is assigned to the RefObject property The state can be changed by human touch API TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 87 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com functions e g CheckBoxValueSet and tags which are specified by the TagName property Supposed that an ObjectList called OL is assigned to the RefObject of a component e g CheckBox and it ha
15. 5 Compiling and Downloading to Run After connecting to the TouchPAD device press F9 to run or click the Run option from the Run menu As the shown in the figure below pressing the button makes TouchPAD sound a beep BtButton TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 129 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 6 2 Your First Project Using Ladder 1 Creating a new project Click the New option from the File menu and then select the Model specify the Project name the Location the Orientation and the Programming Type Here we choose programming type as 2 Ladder Project name Don t use space or special char Location Don t use space or special char C ICPDAS HMIWorks_Standard Projects Orientation Portrait C Portrait Flip f Landscape Landscape Filip Default Programming Type 1 Standard C C 2 Ladder cancel 2 Designing the Graphic User Interface For example place a CheckBox component and a Label component on the frame panel Here we plan to take the CheckBox component as an input and the Label component as an output TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 130 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com r rramel Lest nwd GA File Edit View HMI Layout A
16. 9 How to use soft reset cc cccccecccececeeeseeeeseeeseeeseeeeseeeseess 154 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 6 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 1 Introduction Our solution for HMI Human Machine Interface is composed of GUI Graphical User Interface based touch screens and an integrated software development package ICP DAS hears the voices of our customers and is dedicated to providing a series of solutions particularly for intelligent building equipment monitoring factory automation and automatic controls Its development software HMIWorks provides plenty of widgets and a variety of templates Combined with the high resolution color touch screen of the TouchPAD series a GUI can be realized with your own unique fashion and style Development is no longer difficult and project accomplishment is within reach ICP DAS provides two types of touch HMI devices the TPD series and the VPD series The TPD series is designed for home building automation applications and the VPD series is designed for factory machine automation applications Both have many common features such as a high resolution touch screen RTC and a variety of communication interfaces including RS 232 RS 485 Ethernet USB However each still has its own specific features for its respective target applications For the TPD series you can use an external wall box to he
17. Frame Test hwd b File Edit View HMI Layo workspace Toolbox i nE TesUART om Tags Device TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 142 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 7 2 Updating Properties in Run Time lt is a bit more complicated to change the properties of widgets in the run time In this section we demonstrate some commonly used cases including 1 The FillColor and Text properties of a TextPushButton component 2 The percentage of a Slider component 3 The Selected property of a CheckBox component 4 The Font the Text and the TextColor properties of a Label component Updating properties is implemented in the event handlers of the widgets Note The naming convention of the event handler of the widget here the widget is the TextPushButton component is shown as below Inspector Libraries ZA TextPushButton v Ox00FFO0 w es Name TextPushButton a extPushbutton 3 Widget Identifier PressFillColor 0x0000FF Reference es ee ee a3 TextPushButton13O0nClick 7 2 1 FillColor and Text of a TextPushButton This section shows how to change the FillColor and the Text properties of a TextPushButton component Simply follow the steps below 1 Click the TextPushButton icon in the Toolbox panel and m
18. HMIWorks automatically scale the TouchPAD Type size of every frame and every widget to maintain the relative amp Orientation positions between each other Note the Text component is not scaled Range 0 255 LCD Brightness 0 the darkest 255 the brightest If When Touching the Screen Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com a ee function becomes useless Calculate the checksum when loading the application program See the section Setup Other Devices in TouchPAD Series for more information Refresh Time The period of both I O scan and touch screen refresh Used for communications of Modbus TCP master polling remote slave devices the Connecting Blinking Cycle defines the blinking period of ERROR tag used in devices which can be found in the Workspace Reconnection The interval between two groups of Interval 7 consecutive connection tries HMIWorks can backup when a project is closed The backup files are compressed in the format z Besides English ASCIl Ox20 0x7E now we support Russian U 0410 U 044F Note when using Russian English Ox20 0x7E is also supported Application Image Checksum Connecting Blinking Cycle Backup when a project is closed Language support TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 42 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E
19. OnPaint OnShow ProgramStyle Standard RefObject As you can see above we select the Mask Color option as white to TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 94 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com mask the white color that is the area of white color becomes transparent Change the background color of the frame to black to illustrate the effect 2 Or you can just copy an image from the clipboard and paste it on the frame design area of HMIWorks HMIWorks create a Picture component and then load the image from clipboard automatically Unique Properties of Picture properties description True or False This property is used to indicate that whether the size of the Picture can be changed or not HiColor True or False This property decides whether the loaded picture is stored as 16 bit color True or 8 bit color False The default option is 8 bit color Picture The picture to be loaded Trade off between firmware size and resolution HiColor True HiColor False on TouchPAD 189KB on TouchPAD 69KB Above is the comparison between HiColor True and HiColor False The left picture is original one in HMIWorks The two right side pictures are real photos One is HiColor True and the other is HiColor False As you can see setting HiColor to False makes the photo have a TouchPAD User Manual
20. RS 232 RS 485 RS 485 Ethernet N No Rubber Keypad RS 232 RS 485 A l 12 48 VDC 3 5 TFT Yes Front Panel Resolution COM1 RS 485 IP65 320 x 240 or RS 232 COM2 RS 485 12 48 VDC or PoE COM1 RS 485 12 48 VDC or RS 232 Front Panel 4 3 TFT Resolution 480 x 272 COM2 RS 485 IP65 12 48 Voc or RS 232 or PoE Note1 Image Storage Capacity depends on the content of program and the size of images The number is counted by how many images in full screen size can be stored on the device Note2 PoE Power over Ethernet specification IEEE 802 3af Class 1 48 V Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Note Communication interface that is only for run time supports the following protocols For the case of RS 485 Modbus RTU Master and DCON Protocol Master for ICP DAS l 7000 series modules are supported We provide API functions to open com port for sending receiving strings through RS 485 ll For the case of Ethernet Modbus TCP Master is supported We provide API functions to sending receiving strings through TCP USB is used for firmware update only TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 15 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com 3 Hardware This chapter shows the overviews dimensions etc of the TouchPAD devices 3 1 Hardware Appearance
21. Register Devices I O option from the HMI menu or press the F3 on your keyboard and then the Devices window is displayed ehane oTe __ Stet deers Default Value Comm Fo Devices Device information pf alo TouchPAD is ER SG Ieee jan Al Tja Al Device Series M 7000 El AI3 Al Connection COM1_1 x fala Al als Al Model Name M 70182 _ Select fais Al Device Name Dev_ M_ 0182_1 Assign Fjar Al Net ID fi Timeout 200 Fag Al JENABLE_Al Virtual TYPECODE_AI Virtual JERROR Virtual JENABLE_DEVICE Virtual R_ACTION Virtual w_ACTION Virtual E oo E oooooowo owon A w N o Step by step specify or fill each field and click the OK button to import tags Finally check these imported tags in the Workspace The possible device series are as below Remote I O modules over Modbus M 7000 RTU protocol User Define Remote Modbus RTU I O modules TouchPAD is treated as a slave Profiles Modbus RTU Slave MRTUS device and wait for some master devices to control Remote I O modules over DCON DCON Master l 7000 protocol Remote I O modules over Modbus PET 7000 TCP protocol WISE Web Inside Smart Engine Modbus TCP Master WISE 7000 J devices User Define Remote Modbus TCP I O modules MTCPM of third parties TouchPAD is treated as a slave Modbus TCP Slave device and wait for some master Profiles MTCPS devices to control
22. TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 34 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com The explanations of items in the Devices window Register Device Connection Specify an existing connection approach TCPIP XVboard or UART or create a new one to connect to the I O module Note when TouchPAD is Modbus TCP slave check the As a Server option in the New Edit Connection dialog which is called by right click on the connection item in the Workspace Device Name specify the name of the I O module Users can assign a name they want Model Name Specify the model name of the I O module to connect Net ID When TouchPAD acts as a master device Net ID is the specified ID of the I O module in the network Possible range For Modbus RTU 1 247 For DCON 0 255 For PET 7000 1 255 When TouchPAD acts as a slave device Net ID is the Timeout The timeout value for the communications both RS 485 4 4 Connecting to I O Expansion Boards XVBoard Default value Baud Rate 115200 Communication interface Modbus RTU XVBoard as Slave TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 35 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Using C programming language to control XVBoard HANDLE h int NetID 1 int addr 1 int ch_count 8 char DO_ value 1 DO_value 0 3 tha
23. True AutoScaleFontSize Automatically scale the font size to fit the rectangle which encloses the Text Note This property is enabled only when AutoSize True True or False This property is used to indicate that whether the size of the rectangle which encloses Text can be automatically changed to cover the whole string BrushStyle The style used to fill the rectangle that peeve tteestetet TextAsimage True or False Whether the text is stored as A inp ere tetas rete a TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 93 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com image it will take more space to store and more time to download 5 4 6 Picture Loading a Picture 1 Click the Picture field in the Inspector the button to open the Select Picture dialog to load a picture There s a Mask Color option to achieve transparency as shown below For now only omp files are supported for the Mask Color option Select Picture Inspector Libraries E Picture4 AutoSize False Framelndex O Height 222 HiColor True ID 4 WMV Mask Color Left 105 white Name Picture Picture Picture OK Top 21 Width 266 Cancel Note Animation is not supported Only bmp supports mask color _ Ox000000 Solid Default True ID 2 Name Frame1 OnCreate OnDestroy OnHide
24. below TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 122 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com SS Inspector Libraries Pictures AB hrd Size 92w94 1 KE Using items from library For example as below 1 Click on the tab of Libraries to show the library panel 2 Pick the object you want You can preview the object in the preview box below 3 Click and not released on the item in the preview box or in the list and then drag the item and drop it on the frame design area Eg Frame3 Test hwd GA File Edit View HMI Layout Arrange Run Window Help Workspace Toolbox SS F Rectangle IES Text Ir Picture Eee Line Inspector Libraries defaut TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 123 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com Adding a new folder into library window select the folder of the libraries as shown in the picture below To add a new folder into the library window create a new folder in the following path HMIWorks_install_ path bin Lib where the HMIWorks_install_ path is the installation path of HMIWorks Supposed the installation path of HMIlWorks is C ICPDAS HMIWorks_ Standard And we want to add a new folder named Test into the library window Then all we have the d
25. finish the installation 4 1 1 Language Options You can change EN or ZH TW At View gt language optons HMI Layout Arrange Eun New Yirtual Tag Fe Reiter Devices AA FS Ladder Desioner F4 Refresh Time 10 Scan Project Configuration 4 2 Setup Devices The TouchPAD devices are divided into several groups Before downloading programs to the TouchPAD device the TouchPAD device must be set up We describe how to set up each kind of the TouchPAD devices in the following sections TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 20 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Click the Setup Device TouchPAD option from the Run menu of the HMIWorks software to setup TouchPAD Fun Run Build amp Download FY Build amp Rendering F5 Rendering Only Ctrl FS Download Only Ctrl Fo Setup Device TouchPAD Download File User bin Console FLO 4 2 1 Setup RS 485 Downloaded devices TPD 280 TPD 280 Mx TPD 280 H On the back panel of the TouchPAD RS 485 download device configuration modes can be found Use the rotary switch to set the configuration mode No Mode Description ooo Run Only This mode is used for running programs io Update Only This mode is used for updating programs The TouchPAD RS 485 download device use the RS 485 network as its communication method It is not able to connect through the Ethernet networ
26. in the rung Move the cursor to the contact input you want to delete Then press delete on your keyboard For example we move the cursor to the v3 contact input and then press the delete key E HMI Works Ladder Designer File Edit F2 JE F3 FE F4 toe Fs Os Fe e7 g F8 ko F3 gt E ji 7 Delete the rung Move the cursor to the starting point of the rung and then press Delete on your keyboard TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 56 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com 5 3 3 6 Inserting and Deleting a Coil Output To demonstrate how to insert or delete a coil output and other related issues see the figure below Eg HMI Works Ladder Designer File Edit E JE F4 ta rs O FED F7 G Fe w 5 3 3 7 Inserting and Deleting a Function Block To demonstrate how to insert or delete a function block and other related issues go through the following steps 1 Set the function type to a function block I Insert a new rung Press F6 to insert a new rung with a function block and a coil output TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 57 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com 3 HMI Works Ladder Designer Eile Edit PE E Hie soen a e I O J ii Choose function type In the n
27. kaaria FunctionName Assign D DisplayName Caption assign function VarCount 4 Rows 2 Pin0 en Pin1 out Pin2 eno Pin3 in gt Assign assign function 3 Double click on the Assign to use it in the Ladder Designer The Ladder Designer uses the logics defined in the file FB hsf in the sub directory Assign FB hsf is based on the C language The following figure explains what FB hsf of the Assign function does if len return 0 if VAR_VALUE out VAR_VALUE in return 1 VAR_VALUE out VAR_VALUE in VAR_SET_DIRTY out return 1 If en is set to low eno is set to low and return If v1 is equal to v2 eno is set to high and return v2 is assigned with v1 Show the value of v2 to the associated widget on TouchPAD eno is set to high and return Adding a User Defined Function Block Now we introduce how to add a user defined function block 1 Create a new group if necessary TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 65 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Go to the installation path of HMIWorks In the sub directory of bin FunctionBlock create a new directory TestGroup for example and open the file Category ini to add a new item to represent the new group Note The name of the new item in the Category ini must be exactly the same as the name of the newly created direc
28. version 1 0 26 Last Revised June 2015 Page 95 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com not smooth gradient part while setting HiColor to True does not Because 8 bit color does not have enough color 256 only to represent the picture similar colors are represented by the same color and this results in not smooth gradient However preventing pictures from not smooth gradient costs TouchPAD bigger size of memory Take above picture for example setting HiColor to True uses memory of 189KB but setting HiColor to False costs only 69KB 5 4 7 Line Unique Properties of Line properties description N A 5 4 8 TextPushButton What is a TextPushButton A TextPushButton is a button with a Text on it When a TextPushButton is pressed and not released the status is changed But the status is restored back to the original state after you release it TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 96 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Unique Properties of TextPushButton properties Description AutoRepeatPeriod The period to hold on to press the TextPushButton to trigger one OnClick event again when in the programming type Standard C unit ms AutoRepeatThreshold After pressing the TextPushButton to trigger the OnClick event and continuing pressing this property determines the threshold of t
29. 7066_1_000 _7066_1_D02 _7066_1_D03 Mji _7066_1_D04 _7066_1_D05 _7066_1_D06 _7066_1_R_ACTION _7066_1_W_ACTION Double click on the tag Name you want to associate with the widget Then you can see the tag is associated with the widget that is the Slider for example by setting the property TagName to the name of the tag TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 68 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com id Inspector Libraries 73 Sliderwidget v BackgroundFillColor OxFFFFFF BackgroundT ext OxFFFFFF FillColor 0x000000 Font Font Height 35 ID 10 Left 38 Max 100 Min 0 Name Sliderwidget OutlineColor 0x000000 Positior I Teena 1 7081 000 Vertical False Width 166 3 The third method is click the button from the TagName field in the Inspector to open the Select variable window Similar steps as above Special Note Refer to section Using an ObjectList Set the RefObject property of a CheckBox component to an ObjectList component which contains images and then associate a tag to the CheckBox component Then every time the tag changes its value the CheckBox component toggles the images This feature is especially useful when building switches Connecting Blinking Cycle Used for communications of Modbus TCP master polling remote slave devices ONLY the Connecting B
30. 80U Mi F4 File Edit Search OK Cancel Goto Line fi BitButton230nClick 1 void BitButton230nClick tWidget pWidget f fmake CheckBox status selected checked 2 3 4 5 CheckBoxSelectedSet amp CheckBoxWidget22 1 5 6 WidgetPaint tWidget amp CheckBoxWidget22 8 3 0 gt I 4 In order to make it clearer we copy the above codes below void BitButton23OnClick tWidget pWidget make CheckBox status selected checked CheckBoxSelectedSet amp CheckBoxWidget22 1 WidgetPaint tWidget amp CheckBoxWidget22 The effect of the OnClick function _ CheckBoxwidget22 x checkBoxwidget22 For more API functions of CheckBox refer to checkbox h in the following path C ICPDAS HMIWorks_ Standard include grlib where C ICPDAS HMIWorks_ Standard is the installation path TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 147 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 7 2 4 Font Text and TextColor of a Label Take the steps below for example to update properties of a Label component in the run time Click the Label icon in the Toolbox panel and move your mouse to the frame design area Click and drag a suitable sized Label 2 Repeat the same procedure as that of the Label component above for three BitButton components ee change Text change Font change Color 3 Double click
31. AD User Manual version 1 0 26 Last Revised June 2015 Page 144 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com ftp ftp icodas com pub cd touchpad document english api_reference For more API functions of the TextPushButton component refer to pushbutton h in the following path C ICPDAS HMIWorks_ Standard include grlib where C ICPDAS HMIWorks_ Standard is the installation path 7 2 2 Percentage of a Slider Simply follow the steps below to display the percentage of a Slider when it changes its position 1 Click the Slider icon in the Toolbox panel and move your mouse to the frame design area Click and drag a suitable sized Slider 2 Double click the Slider component to implement its OnSliderChange event handler in the displayed programming window Then press OK to save the file and leave f3 C ICPDAS HMIWorks_Standard Projects Test __ Frame1 h olx File Edit Search OK Cancel Goto Line fi Slider40nSliderChange 1 void Slider40nSliderChange tWidget pWidget long 1Value z 2 lt 3 static char strUalue 16 4 usnprintf str alue sizeof str alue d lValue 5 SliderTextSet tSliderWidget pWidget str alue 6 8 3 In order to make it clearer we copy the above codes below void SliderWidget6OnSliderChange tWidget pWidget long Value Static char strValue 1 0 TouchPAD User Manual version 1 0 26 Last Revised Jun
32. COM port U with extra Flash Nf 2 8 Resolution 240 x 320 LE 1x RS 485 10 30 Voc PoE EWB T28 1x RS 485 10 30 VDC 1x RS 485 10 30 VDC or PoE 1x RS 485 12 48 VDC Yes 0B120 EWB T28 PoE TPD 283U M1 M2 M3 16 MB Yes 1x RS 485 Yes 12 48 VDC or PoE Mi M2 M3 Nf 2 8 Resolution 240 x 320 TPD 280 M1 M2 M3 1x RS 485 12 48 VDC TPD 283 M1 M2 M3 Yes PoE TPD 283U M1 M2 M3 16 MB Yes 1x RS 485 12 48 VDC or PoE TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 13 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com I 4 3 Resolution 480 x 272 fs 1x RS 485 10 30 VDC OB120 EWB T43 Yes 1x RS 485 10 30 VDC or PoE 2x RS 485 m 0B140F Earn 10 30 VDC 1x RS 232 OB140FP i 1x RS 485 10 30 VDC or PoE 1x RS 485 10 30 VDC Yes 1x RS 485 10 30 VDC or PoE wy 7 Resolution 800 x 480 1x RS 232 ix RS 485 OB170 EWB T70 12 48 VOC or PoE Note1 Image Storage Capacity depends on the content of program and the size of images The number is counted by how many images in full screen size can be stored on the device Note2 PoE Power over Ethernet specification IEEE 802 3af Class 1 48 V 2 2 VPD Series Touch Screen Size Communication Interface 1 103 x 103 mm Panel Mount 3 3 5 inch 0 RS 485 4 4 3 inch 2 RS 232 RS 485 RS 485 3
33. ED and LCD are prevalently used and ICP DAS releases TouchPAD as a state of the art solution In addition to GUI and touch LCD the solution of ICP DAS provides development software tool HMlWorks Besides it has plenty of widgets and varieties of templates and so it s easy to present customers with professional interface with modern styles Moreover HMIWorks supports C language It makes easy timing control and logic design and in turns makes TouchPAD more powerful Through standard communication protocols and SCADA TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 8 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Supervisory Control and Data Acquisition software it is directly inoculated with background software and attains the best effect of completely integration Below are figures of the application fields of TouchPAD intelligent building and classroom automation In these examples TouchPADs are used to control lights curtains air conditioners stereos projectors projector screens and to monitor temperature humidity and weather conditions Application Fields of TouchPAD B lilding Au to mag OA Touch PAD 4 Y f Remote Monitor ine G Intelligent Building Example TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 9 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail servi
34. Enter make genbix 6 Click the Download Only Ctrl F9 option from the Run menu to download the bin or bix file TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 153 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com A 8 How to store data in the flash For users convenience there are two sets of API functions for data storage in the flash on the TouchPAD devices One is for the MCU micro controller unit internal flash and the other is the external serial flash To user these features install the HMIWorks software with version 2 03 or above ftp ftp icodas com pub cd touchpad setup No 1 2 Target Flash MCU internal flash External serial flash Possible Target Device All devices in the All devices in the TouchPAD series TouchPAD series except TPD 280 and TPD 283 for those having external flash API Functions hmi_UserParamsGet hmi UserFlashReadEx Provided hmi UserParamsSet hmi_ UserFlashWriteEx hmi_UserFlashConfig hmi_UserFlashErase Suggested Users Any TouchPAD users For advanced users only Any undetermined use will damage the application image Refer to the API reference for more details ftp ftp icodas com pub cd touchpad document english api_reference A 9 How to use soft reset There are two methods to reset a TouchPAD by software Method 1 Use the API function of hmi_SoftwareReset Method 2 Touch
35. Group can be selected Unique Properties of RadioButton properties description The size of the checking circle RadioGroup The group in which only one RadioButtons can be selected Each frame has at most 8 RadioGroups from Group0 to Group Selected True or false Whether the RadioButton is selected or not SerialNumber The unique number started from 0 which is used to identify a RadioButton in a particular RadioGroup The SerialNumber property is used only for users to know about which RadioButton is to use for example when using the RadioButtonGroupValueSet function Note1 this is a read only property and is assigned automatically Note2 when a RadioButton assigned a tag with the TagName property then all the other RadioButtons in the same RadioGroup are assigned the same tag to their TagName property at the same time Depending on the value of the tag usually the tag represent a I O from the remote side certain RadioButton is selected if its serialNumber property is equal to the value of tag TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 104 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com TagName property has different behavior Unlike other widgets several RadioButtons in the same RadioGroup have the same TagName property Since RadioButtons together provide a one of many selection the value of the TagName property is the same among all th
36. I1 v_di amp 1 lt lt 1 VAR_SET DI2 v_di amp 1 lt lt 2 VAR_SET DI8 v_di amp 1 lt lt 3 VAR_SET DO0 v_do amp 1 lt lt 0 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 75 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com VAR_SET DO1 v_do amp VAR_SET D02 v_do amp 1 lt lt 1 1 lt lt 2 VAR_SET DO8 v_do amp VAR_SET DO4 v_do amp else return HMI_ERROR 1 lt lt 3 J A A A 1 lt lt 4 J END FUNCTION BLOCK this line is necessary Creating a User Defined I O Module la CAICPDASIHMTWorks Standard bin Modules bin Modules eee LJ Category PET 7000 I 7000 M 7000 ModbusTCP They must be the SAME name Test Series Protocol MTCP erb Select Import Template R ACTION 1 ACTION 1 Modules ini 1 Inthe directory HMIWorks install path bin Modules create a new I O series directory whose name is Test_Series and be sure to update Modules ini to notify HMlWorks that there is a new I O series called Test_Series As the figure shows the series directory name and the name in the Modules ini must be the same 2 Inthe I O series directory Test_Series we create a new I O module directory whose name is Test_Module1 and be sure to create a I O modules configuration file Test_Series ini to depict the t
37. Menu r Layout j New Frame Ctrl M xX Delete Frame Rename Frame Align left Align horizontal center S Align right im Align top Align vertical center Align bottom Align center Frame Management New Frame F Select Programming Type Create a new frame select the programming type Programming Type 1 Standard C 2 Ladder Delete Frame Delete the current frame i Cancel Rename Frame Rename a frame Alignment To demonstrate the functions of alignment draw three shapes as followings TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 118 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Note all alignment functions refer to the last shape you draw In above example all alignment functions refer to the square Align left Align the leftmost edge of all the selected items to that of last drawn item For example select all the items and then click Align left in the menu Align horizontal center Align the horizontal center of all the selected items to that of last drawn item For example select all the items and then click Align horizontal center in the menu TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 119 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Align right Align the rightmost ed
38. O OO 2 Bl r 2 E TEE N n Then we associate the CheckBox component with the v1 tag and the Label component with the v2 tag by the TagName properties of themselves xl 5 Caslarct y i N Inspector Libraries Select variable Browse Variables Enter Constant z CheckBoxWidget Scope fi Global v After setting the TagName properties users can verify in the Inspector xj xi Inspector Libraries Inspector Libraries 23 CheckBoxWidget v 73 Labelwidget TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 134 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 4 Setup Device Refer to the section Setup Devices for details 5 Compiling and Downloading to Run After connecting to the TouchPAD device press F9 on your keyboard to run or click the Run option from the Run menu As shown in the figure below pressing the button switches the value of the Label from 0 gt 1 or 1 gt O 6 3 Integrating TPD 280 Series with I O modules In this example we use the TPD 280 device to control an l 7066 module the 7 channel photo MOS relay output module of ICP DAS First put the l 7066 module in the same RS 485 network of the TPD 280 device and configure the settings of the I 7066 module with the DCON Utility obaudrate data bit parity stop bit Net ID etc 1 Using DCON
39. O AO TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 82 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com FillColor W OutlineColor Property Description FillColor The color used to fill the rectangle which encloses the component The color is represented by a three byte value in the hexadecimal form From the highest byte to the lowest it is the blue the green and the red byte in sequence OutlineColor The outline color of the rectangle which encloses the component The length of the vertical side of the rectangle ON e Width The length of the horizontal side of the rectangle ee itchenietocrpmret Left The x coordinate of the left top vertex of the et Ee The y coordinate of the left top vertex of the rectangle which encloses the component The name of the component The serial numbers of the components in the Toolbox and of the frames These serial numbers are used to identify them The font of the Text property TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 83 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com The strings of the component to be displayed GoToFrame Go to the specified frame That is pressing on the owner of this property switches to the frame which is specified in this property Note the priority of the property Go ToFrame is higher than th
40. PAD User Manual version 1 0 26 Last Revised June 2015 Page 154 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Use the Watchdog Step 1 Enable watchdog Go to HMI gt Project Configuration and then enable the watchdog option step 2 Use infinite loop to start up watchdog For example while 1 If you need to use this function in ladder Refer to the section User Dtfined Function Block for more details TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 155 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com
41. Portrait C Portrait Flap f Landscape Landscape Flap Default Programming Type 1 Standard C C 2 Ladder cancel 3 Designing the Graphic User Interface We can skip this step TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 136 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Here we just demonstrate how to quickly complete a whole new project with I O modules of ICP DAS 4 Designing the Ladder Diagram Press F3 on your keyboard or click the Register Devices option from the HMI menu to open the Devices window to register the l 7066 module Refer to the section Connect to O Modules for details Click the Libraries tab to select a picture to represent the tag in the Libraries panel Drag and drop the tag that is corresponding to the DOO of l 7066 On the frame design area the picture you just select is now on the frame 3Framel Test7066 hwd WA File Edit View HMI Layd Arrange Run Window Help Device 1 7066 A e 4 Z 1_7068_1_000 ZA _7066_1_D05 25 _7066_1_D06 ZA _7066_1_R_ACTION 22 _7066_1_W_ACTION amp Vitual TPD 280 Serial COM4 Congratulation HMI Works of ICP DAS builds successfully 5 Setup Device Refer to the section Setup Devices for details 6 Compiling and Downloading to Run After connecting to the T
42. Reserved gt lt E mail service icpdas com 5 3 3 2 Assigning Variables and Constants Double click on the symbol of contact inputs coil outputs etc to open the Select variable window to select variables or enter constants as below MA Select variable a Select variable Enter Constant Browse Variables 0 3 3 3 Inserting and Deleting a Rung To insert a rung move the cursor the highlighted area to the empty place and then press F2 or F3 F4 on your keyboard Or press F6 F7 F8 to insert a rung with a function block E HMIWorks Ladder Designer File Edit 2E F3 Fsm F5 Os e r Fe o f gt m hmo TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 51 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com To delete a rung move the cursor to the starting point of the rung and then press Delete key E HMI Works Ladder Designer 0 00 5 3 3 4 Copying and Pasting a Rung Supposed that we have three rungs and we want to copy the third rung and insert it between the first and the second rungs E HMIWorks Ladder Design Po HMIWorks Ladder Designer k _o 1 O oo D _ BA HMIWWorke adder Designer co 2 Q F HMIWorks Ladder Designer TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 52 Copyright
43. T_7060_DI5 PET_7060_R_ACTION PET_7060_W_ACTION Light hwd LittleLiahtOoen0 hwd E meneame Framed Ethernet IP 10 1 0 72 MAC 00 0D E0 B2 01 05 Selected 0 5 Setup Device Refer to Setup Devices for details 6 Compiling and Downloading to Run After connecting to the TPD 283 device press F9 on your keyboard to run or click the Run option from the Run menu As shown in the figure below pressing the button switches the output of channel 0 of the PET 7060 module Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 7 Advanced Programming in C We have an API reference for TouchPAD ftp ftp icodas com pub cd touchpad document english api_reference Though you can refer to the generated codes to learn how to use these API functions all the API functions are defined in header files in the following path C ICPDAS HMI Works_ Standard include grlib and C ICPDAS HMIWorks_ Standard include where C ICPDAS HMIWorks_ Standard is the installation path We give some examples in this chapter 7 1 Adding a New File to Project Before introducing the details first we show how to add a new Tile c or h to the project 1 Goto Workspace 2 Right click on the File item and a pop up menu is displayed 3 On that pop up menu choose the type of the file you want to add As the following figure shows F
44. Utility to Set Up l 7066 Download the DCON Utility to install and refer to its user manual ftp ftp icodas com pub cd 8000cd napdos driver dcon_utility TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 135 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Then use the DCON Utility to set up the I 7066 module At least set the followings Address Net ID Baudrate Databit Parity and Stopbit Ej Configuration for 7066D Module Version B102 7066D Digital Output 0 z 0x00 LSB CH 0 MSB CH 6 Configuration Setting Command Response Delay Time Protocol DCON s Delay Time 0 0 30m Address Moo aaj Baudrate 115200 X Power On Value of DO Safe Value of DO0 Checksum Disable Set Value Set Value Parity Option None Parity N 31 saris Read Value SS Enable WDT First Host Watchdog Setting Timeout 255 0 1 25 5 sec l Send Host OK Enable WDT Setting Reset WDT 2 Creating a new project Click the New option from the File menu and then select the Model specify the Project name the Location the Orientation and the Programming Type Here we choose programming type as 2 Ladder Project name Don t use space or special char Location Don t use space or special char C ICPDAS HMI Works_Standard Projects Orientation C
45. VPD 143 ias y WI 7 7 FA OLGI RO OG y ToucnPAD TPD VPD Series HMI Device User Manual Version 1 0 26 ICP DAS Co Ltd TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 1 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com 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 or for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2015 by ICP DAS Co Ltd All rights are reserved Trademark The names used for identification only may be registered trademarks of their respective companies Support ICP DAS takes your problem as ours If you have any problem please feel free to contact us You can count on us for quick response Email service icpdas com Tel 886 3 5973336 Also the FTP site of ICP DAS has contents about TouchPAD which you may be interested in We believe that those contents may be helpful to your work FTP fto fto icodas com pub cd touchpad TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 2 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Preface Thank yo
46. ain how HMIWorks uses these function blocks Take Assign function block in the default group for example How HMIWorks Uses Function Blocks 1 Go to the installation path of the HMIlWorks software In the sub directory bin FunctionBlock of that installation path open the file Category ini to load the groups CAICPDAS HMIWorks_ Standard iconvert counter default math system E Function Block timer user_define H and exclusive or user_define not equal gt Lategory ini greater or equal less or equal assign function Category i default math convert counter timer system user_define O NODIRA ON 2 If we choose the default group then HMIWorks opens the matching name sub directory and then loads from the matching name ini file in that sub directory That is the default ini in the sub directory default TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 64 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com lS C ICPDAS HMIWorks_Standard bin FunctionBlock v Ciconvert SDD counter Assign Inthe directory default gt D3 Somat OLE system ONE timer OOR Gpuser_define AXOR 3 Category int M jf FunsionName Disney Name Capion F convert counter timer gt system Jne Ss user_define not equa GE gt greater or equal SS Assign alt ya
47. application on a TouchPAD device Unlike others series device Users need not Setup Device from the Run menu because USB downloading requires no user specified download information But still some Ethernet settings may be needed in the Setup Device form for any Ethernet versions of TouchPAD AN Notice Other means of downloading such as through the RS 485 network are not provided for the TouchPAD devices which have a USB port on themselves Setup Ethernet Information for TouchPAD Setting up the Ethernet parameters for Ethernet versions of TouchPAD is the same as TPD 283 whose program is downloaded by Ethernet Since all Ethernet versions of TouchPAD except TPD 283 use USB to download their programs refer to the previous section of TPD 283 about the Ethernet parameters but excludes the downloading information for more details TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 30 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com E Setup Ethernet Device Host Information PC Host IP Address Jaink WTS Runtime Information T ouchP4D Device Nickname CPDAS F Static IP DHCP C Runtime Setting Device IP address 1192 168 255 eg 10 1 2 3 Mask 1255 255 01 Gateway 1192 168 255 254 OK Cancel Installing the TouchPAD USB Driver on your PC 1 lf HMIlWorks version 2 03 or above has bee
48. ary objects in the ObjectList by double clicking the ObjectList icon Then the ObjectList window is displayed Double click on the list of the library objects to add them to the right side pane Note 1 To delete the library objects in the ObjectList window double click on the objects in the right side pane ObjectList x H Cancel Double click on the image from the left to append C insert Iv Fit to Widget IM High Color Force Compile AMPRednan hwr x Click and drag a CheckBox component on the frame panel for example Be sure to make the size of the CheckBox component TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 109 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com large enough to cover the whole image of the library object 5 Go to the Inspector to select an option from the RefObject field for the CheckBox component The selected ObjectList component is connected to the CheckBox component 2 Inspector Libraries fa CheckBoxwidget Box Size 16 Display T ype TopLett Filllolor UxFFFFFF Font Font Check B osw idget OnChange QuthneColar OO00000 Ret bject Selected OUbjectlist 6 Build and download the project You can see two images of the library objects toggle when the state the CheckBox component changes Options about images in ObjectList dialog Options DXT 0 tke a
49. at of OnClick RefObject The reference to the specified object list An ObjectList is a component that can be selected in the Toolbox to maintain a list of the images of the library Refer to ObjectList section for more information The variable used for programming purpose For example it can be assigned a unique number for each TextPushButton component in order to identify them Refer to the lt lt API Reference gt gt for functions to get set the Tag property Note This Tag property has nothing to do with the Tag which the TagName property refers to in the Ladder mode TagName Associate a variable tag in Ladder Designer Note The property is supported only in programming type Ladder Enabled Whether the component is activated or not Visible Whether the component is able to be seen or not Text into Image and Multi language Display There are three components TextPushButton CheckBox and RadioButton whose Text properties are not like other components and can be used to support multi language display by transforming strings into images 1 Check the TextAsImage option If checked the Text property can have multiple strings 2 Each string of the Text property is generated into one image and each image corresponds to one state of the components Refer to Using the RefObject property below for more information TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 84 Copyrig
50. ate functions of rotating and flipping first draw three shapes as followings Rotate CCW Rotate the selected item in the counter clockwise direction For example first put three items into one group select the group and then click the Rotate CCW option from the Edit menu You can see that this group of shapes is rotated counter clockwise TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 116 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Rotate CW Similar to the above step click the Rotate CW option from the Edit menu to rotate the selected item in the clockwise direction For example first put three items into one group select the group and then You can see that this group of shapes is rotated clockwise Flip horizontal Flip the selected item in the horizontal direction For example first put three items into one group select the group and then click the Flip horizontal option from the Edit menu You can see that this group of shapes is flipped horizontally Flip vertical Similar to the above step click the Flip vertical option from the Edit menu to flip the selected item in the vertical direction TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 117 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 5 3 Frame Managing and Aligning Layout
51. bles for HMIWorks Users can modify the generated codes and then re make the codes Use make exe TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 121 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 5 5 5 Library Management Popup Menu la Back One Ctrl PeDn Lh Forward Omne CtrlHPelp fa To back sbift PeDn Th To front Shiftt PeUp Fa Group Ctrlt tr T Ungroun Ctr T Add to library Import Images to library amp ut jee Cony Ctrl e f Paste Ctrl V Delete Ctr Del Duplicate Ctrl D Adding items to library All the items added have the file extension hwg For example as described below Group the selected items if necessary Right click on the object we want to add to open the popup menu Click on Add to library Specify the folder we want the added object locates in the drop down menu The default is Pictures 5 Specify the name of the added object and save it to the library a a a a Back One Ctrl PgDn Forward One Ctril PqgUp mS Group Object Em Xx a n ave Group to Library O x To front Shift PgUp Folder Pictures x s 1 Ungroup Ctrl U File Name X4 Add to library Import Images to library amp Cut Ctrl X Ra Copy Ctrl C Paste Ctrl V Cancel X Delete Ctrl Del T Duplicate Ctrl D Note you can preview the library object in the library window and the size information of that library object is shown
52. ce Toolbc New Virtual Tac F2 fO File mlb bni Ai hi 3 Program 43 Connection Tags Nevice Project Configuration Step2 Add more devices after you can see the workspace field and then add tag And then go to HMI gt Bind Tags Workspace Toolbox a View HMI Layout Arrange Ruy Space Toolbo New Virtual Tag 5 0 File 3 6 Connecti Tags Device ey 1 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 78 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Steps Drag the tag that make the relatedness and the instructions for use as below _ owe tO DING tags WZ Select Tag Browse Tags Enter Constant Bind Tags Binding Destination Scope Giobal Clear Binding Global gt ev 1 DOO Dev 2 DIO0 Drag from the right side to the left side to bind tags 4 001 Showed as above pic 1 Drag the tag from right to left 2 When the Dev_2 DIOO dragto Dev_1 DOO lf Dev_1 DOO changed then the Dev_2_DOO value will upade to Dev_1_ DIOO value Dev_2 DOO Dev_1 DIOO 3 For example when B drag to A C drag toB if A changed then B A C A TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 79 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 4 Frames and Components This section introduces properties and
53. ce icodas com Multi Display TouchPAD Anywhere TPD 280 W TPD 283 W Computex Taipei 201 ICP DAS New Produ Leading Through Inn TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 10 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpodas com Electrical Curtain Integration of Infrared appliances Lux Input T Ei LC 300 thermometer hygrometer TPD 430 HMI TPD 430 HMI Power Management r PM 3112 3114 Power Meter TPD 430 HMI TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 11 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 1 3 All Kinds of Situations 1 4 TouchPAD can be applied in all kinds of situations you even have imagined In these situations TouchPAD is used as a window for signal transmissions and arranges incoming messages In the hotel on the wall In the school in the classroom 16 2011 2 16 pg 10 53 8eanE In the farm in the front door of the greenhouse 11 10 13 10 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 12 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com 2 General Specifications 2 1 TPD Series LCD Communication Interface EU For European 28 2 8 0 1 x RS 485 86 x 86 mm Outlet Box 43 4 3 2 2 x COM ports 70 7 0 3 Ethernet and
54. cel Goto Line f Frame1 20nCreate 1 void Frame1 0nCreate 3 4 hmi_Beep TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 90 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com 3 Press OK to save the file and leave 5 4 2 Frame Unique Properties of a Frame Click on the frame and the properties of the frame are shown in the Inspector properties description BackgroundColor The background color of the frame The color is represented by a three byte value in the hexadecimal form From the highest byte to the lowest it is the blue byte the green byte the red byte in sequence BrushStyle Solid or Clear lf BrushStyle is set to Solid then the setting of the BackgroundColor property does take effect However this may make the screen flash if background color is quite different from the loaded picture Setting BrushStyle Clear disables the BackgroundColor property and prevents the screen from flashing Whether this frame is default frame or not The default frame is displayed first after the TouchPAD device turns on ProgramStyle Standard C or Ladder Event handlers of a frame For example we have a frame which is named frame1 and When entering the frame1 OnCreate TouchPAD executes this OnCreate event handler of frame first OnShow TouchPAD adds all the widgets used in the frame1 after OnCreate is executed Then executes
55. ck that if there is a device with the MAC address in the list after searching Note2 Be sure to put the TPD Ethernet device and your PC in the same subnet In short we draw the flow chart of setup the TPD Ethernet devices TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 27 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Search TouchPad Rendering and Builc Rendering Only Ctrl F5 Download Only Ctrl F9 Setup Device Console F10 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 28 Copyright 2015 ICP DAS Co Ltd All Rights Reserved D lt E mail service icodas com What to do if the download process hangs Anytime download process hangs users can follow the flow below to complete the download process Note that below is not just for the case after setup device TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 29 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 4 2 3 Setup USB downloaded devices TPD 28xU TPD 43x TPD 43xF VPD 13x VPD 14x VPD 133 H We use the rotary switch to set the configuration mode No Mode Description Run This mode is used to run the application There is only one application on a TouchPAD device DA E eee TouchPAD device Update AP This mode is used to download an application to the TouchPAD device There is only one
56. ctly read back the Al value from the I 7017Z module in the Ladder Designer 1 Setthe property DecimalDigits to the number of digits in the right of the decimal point For example we set DecimalDigits to 3 2 Modify the I O module s lO hsf Let the read back Al value multiplied by ten of the n th power where n is the value of DecimalDigits You can find out I O module s O hsf file in the following locations THMI Works_install_ path bin Modules For example lO hsf of I 7017Z is located in C ICPDAS HMIWorks_ Standard bin Modules l 7000 I 70172 where C ICPDAS HMIWorks_Standard is the installation path of HMIWorks And we modify the O hsf to make v_ai 6 v_ai 6 1000 Supposed we use channel 6 to read back Al value As shown in the figure below you can see that the tag AI6 in the Ladder Designer is 1000 times of the real value With DecimalDigits set to 3 the correct value 3 265 Is displayed on TouchPAD TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 102 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com BEGIN FUNCTION BLOCK float v ai 10 j AR VALUF R ACTION lO hsf dcon ReadAIA11 S DEVICE SNETID v ai VAR_SET AI1 v_ai 1 VAR _SET AI2 v_ai 2 VAR_SET AI3 v_ai 3 VAR_SET AI4 v_ai 4 VAR SET AI5 v aif 5 v_ai 6 v_ai 6 1000 VAR _SET SAI6 v_ai 6
57. e 2015 Page 145 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com usnprintf sirValue sizeof strValue d Value SliderTextSet tSliderWidget pWidget strValue The effect of the OnSliderChange function after selecting colors Inspector Libraries 7A Sliderwidget v BackgroundFillColor OxFFFF80 OxC08000 Name SliderWidget OnSliderChange Slider Widget150n OutlineColor 0 000000 Position 50 Top 135 Vertical False Width 193 For more API functions of Slider refer to slider h in the following path C ICPDAS HMIWorks_ Standard include grlib where C ICPDAS HMIWorks_ Standard is the installation path 7 2 3 Selected of a CheckBox Take the steps below for example to change the Selected property of a CheckBox component in the run time 1 Click the CheckBox icon in the Toolbox panel and move your mouse to the frame design area Click and drag a suitable sized CheckBox 2 Repeat the same procedure as that of the CheckBox component for a BitButton component 3 Double click the BitButton component to implement its OnClick event handler in the displayed programming window Then press OK to save the file and leave TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 146 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com fo C ICPDAS HMIWorks_Standard Projects T PD2
58. e RadioBuitons in a particular RadioGroup For example supposed we have 3 RadioButtons 0 1 2 where 0 1 2 are their SerialNumbers And they are all specified in a RadioGroup Groupo If we specified the TagName with an Al tag named Dev_Al0O then we have the following behaviors 1 When Dev_Al0 0 only RadioButton with SerialNumber 0 is selected while the other two are unselected 2 When Dev_Al0 1 only RadioButton with SerialNumber 1 is selected 3 When Dev_Al0 2 only RadioButton with SerialNumber 2 is selected OnRadioChange property Unlike the TagName property each RadioButton has its own OnRadioChange event handler An example as shown below void RadioButton6OnRadioChange tWidget pWidget unsigned char ucValue ucValue is the serial number of the selected RadioButton in the RadioGroup which contains this Radio Button The RadioButton which triggers this OnRadioChange event handler is not necessarily the same as the selected RadioButton TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 105 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com 5 4 15 Timer AN Note This component is supported only in programming type Standard C What is a Timer A Timer is a component that executes the OnExecute event handler every specified interval Using a Timer Note that you should not worry about the size or the locati
59. eeeeaeeeseeees 16 3 2 Installation and WINING ccccseccseeeceeeeeeeeceeeseeeeeeeeseeeseeesneeeseeens 17 4 Set up Devices and Connect to I O cccecccccecceceeeeecaeeeeaeeeeseeeeesaeeeeeaaeees 20 At Prepara ON esrrssrsesereerENssek nasr r E Sakap TaN E ESen KEKSE eE R ETER E RENEE 20 4 1 1 Language OPtions cccccceccccssececeeeeeeseeeeseeeeseeeesaeeeeseees 20 4 2 Setup Devices arcane aecwinsesucee sensu ceaeseeycvensnsaceouecosseaacvseseesesdeeuseseiaceens 20 4 2 1 Setup RS 485 Downloaded devices TPD 280 TPD 280 Mx TPD 280 F arrere ENE EEE 21 4 2 2 Setup Ethernet downloaded devices TPD 283 TPD 283 Mx TPD 283 H TPD 283U Mx TPD 283U H TPD 433 Mx TPD 433 H TPD 703 TP De 03 GS erren E EE 23 4 2 3 Setup USB downloaded devices TPD 28xU TPD 43x TPD 43xF VPD 13x VPD 14x VPD 138 H cc cecceeeeeeeeeeeees 30 4 2 4 Calibrations sisisrosnatessesusicnshveauiee suuraiaeenanctseuminaa se siteasenan secteur 33 4 3 Connecting to I O DEVICES cccccccccseeeecceeeeceseeeceaeeeseeeeseeeeees 33 4 4 Connecting to I O Expansion Boards XVBoard cccseeeeeeees 35 5 Development Software HMIWOTrkKS cceccceccceeeeeeeeceeseeeeeeeeseeeseeeeaeeees 38 5 1 The Construction of HMIWOMKS cccccecccseeeeeeeeeseeeeseeeeseeeeeees 39 5 2 The Options of TOUCHPAD cccccccceececseseeeeeeeseeeeesaeeeeaeeeeeas 41 5 2 1 Project CONFIQUIATIONS ccccccceeec
60. eeeeseeeceeeeeeeseeeseueeaeeeneess 41 5 2 2 Language ONPTIONS ccecccceccccseeeeeeeeeecseeeesaeeeesaeeeesaaeeesaees 43 5 3 Ladder Designer ccccccccseccceeecceeecceeeeceeecceeeeeseeeseueeseeesseeeesees 43 le Gewn ee fog 0 Renee ener E ee eee eee eee 44 5 3 2 Introduction to Ladder DeSIQNe l cccceeeeeeeeeeeeeeeeeees 44 5 3 3 Operations of Ladder Designer cccecccceeeeseeeeseeeeseeees 50 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 4 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 3 4 User Defined Function BIOCK c cccccccececececececeueneaeeees 64 5 3 0 Associate Tags with fools cccccccccseeeeeeeeeeeeeseeeeseeeeseaees 67 5 3 6 User Defined I O MOdules cccccccccseececseeeeeeeeeesaeeeseaees 70 Iole DAOINO eea 7 5 4 Frames and COMpone nts ccccccccccceeeeeeeseeseeeeeeseeeseeeeeeeeeeeens 80 5 4 1 Commons of Components and Frames 0cccseeeeeeeees 81 WANS oases cate sce ce gece er cnet ce case a vec de ceuecste cane eteee aed eee 91 IA o 2101 2 40 2 eee eee eee ee one eee een eee eee 92 gaa EDSO eee ee ee eee ee eee ee eee ere 92 A WO oaee tse sees paced heeded dentate teeta EEEE REEN 93 SAO FCU ee E 94 ae LINO e ner eer eee nee ee eer eee ere 96 948 WEXPUSIIS UNION sieges ce devenevedevenexedenesoueseusosssdensmesdeusoousdexene lt ex 96 oc a 0 2
61. emplate of the newly created I O module Test_Module1 As the figure shows the TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 76 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com module directory name and the name in the Test_Series ini must be the same 3 Implement the lO hsf which is created in I O module directory Test Module1 to describe the behaviors of the I O module Test Modulet Refer to the lO hsf of PET 7000 series if using the Modbus TCP protocol ll of M 7000 series if using the Modbus RTU protocol Ill of l 7000 series if using the DCON protocol All are similar to the example of the l 7065 above 5 3 1 Data exchange Uniform standards data format by the TouchPAD and served as the role of protocol conversion to the exchange of information between the different agreements and resolve master and slave exchange of information between the problem of data transfer between the device to automatically Agreement Handle and Respond and let live applications more flexible Use C code to convert is so complexity m e E M ih And use data exchange function after it s so easy p gt oi Eee m TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 77 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Step1 Add device in HMIWorks a View HMI Layout Arrange Run Spa
62. enu TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 125 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Click this option to select more than one image files transform them into the hwd file format which HMIWorks can recognize and finally put these files in the Pictures folder in the current project directory since the transformed hwd files are put in the Pictures folder of a project users should create or open a project to execute this option As shown below click the Select files button to execute Import Images to Library _ ol x Output Files in Pictures library Note i 1 Animation and transparence files are not supported il 2 The Pictures library is actually located in the project s folder Skip existent files C Overwrite Note Now we support JPG BMP WMF EMF image formats TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 126 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 6 Making a Simple Project There are two programming types in HMIWorks In this chapter we introduce how to build your first project for each programming type 6 1 Your First Project Using Standard C 1 Creating a new project Click the New option from the File menu and then select the Model specify the Project name the Location the Orientatio
63. er Device Series XVBoard Connection SER_1 Model Name Device Name Assign Net ID fi Timeout 200 Cancel TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 37 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 Development Software HMIWorks HM IWorks is the development tool for both TPD and VPD series It supports two programming types Standard C and Ladder Compared with traditional GUI development tools HMlWorks is easy to learn flexible to design GUIs and takes less time to raise productivity Features of HMIWorks include FREE of charge for ICP DAS TouchPAD devices gt Two programming types ladder diagram and Standard C Plenty of widgets Plenty of demos shorten development time Advanced search for I O modules Detail error messages Easy downloading after building Automatic generated codes for user designed frames Multi frame design Abstract graphics as simple APIs Easy learning IDE to raise productivity in short time Data exchange function TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 38 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 1 The Construction of HMIlWorks Before showing the construction of HMlWorks create a new project first Click File menu then click on New Project name Dont use space or special char Location Dont use space or s
64. er Constant scope Global k Double click on the variable in the list to assign the variable to out For example we double click on the variable v1 and set to out of Assign function TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 59 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 3 HMI Works Ladder Desi File Edit EA A el EE EZ l EEN 1 lgner Set v2 to in of Assign function in the same way Finally set v3 to the coil output EG HN AIWorks Ladder Desig File Edit F2 3E F E F IEK BD 7 g ie This function assigns v2 to v1 if en is set to high The coil output v3 is purely defined by eno where eno en 2 Insert a new function block in the left of the cursor F6 Move the cursor to the Assign function block and then press F6 And to make things clear set the newly inserted function block as NE not equal E HMI Works Ladder Designer Ele Edit F2 3E F E ue nod 62 7 tot F9 gt TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 60 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 3 Insert a new function block in the right of the cursor F7 Move the cursor to the NE function block and then press F7 Set the newly inserted function block as GE g
65. ernet Force While the application run on the TouchPAD device Update seriously crashes use this mode to update an new application to the TouchPAD device Run Simply run a TouchPAD device cannot be updated in this E i pe S DEO aaen TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 23 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Rotary Switch Set to 1 and then Reset Run calibrate bat Rotary Switch Set to 0 and then Reset Do Calibration Update OS Default IP settings of the TouchPAD Ethernet download device Item Value seein Static IP The IP settings of a TPD Ethernet device can be classified in one of three types Type Description The TPD Ethernet device has a static unchangeable IP address DHCP Runtime Setting The TPD Ethernet device is assigned an IP address from the DHCP server every time it is turned on reset The IP address for the TPD Ethernet device is left unassigned during the building process and is specified in the runtime We provide API functions for specifying IP settings as well as demos to do that Users can change the type of IP settings by downloading a new program into the TPD Ethernet device TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 24 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 1 Click the Setup Device o
66. ew rung double click on the function block to open the Function Block window Pe Function Block Caption and or exclusive or not equal greater or equal less or equal assign function Double click on the Function Name field in the list to set the type of the function For example we double click on the Function Assign in the default group and set to the function block E HMI Works Ladder Designer File Edit F2 3E F3 E Feah Fs O OD e O F gt l aaa ee ee TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 58 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com lil Assign the variables to the function Now we should assign the variable to the function Assign As you can see there are four variables en eno out In Both en and eno cannot associate variables by users We can associate out and in with the variables we define by New Virtual Tags For example we associate v1 to out and v2 to in v1 v2 and v3 are the variables defined in from the Edit Variable dialog box Refer to the New Virtual Tags section To associate v1 to out move the cursor just beside out but not in the function block 3 HMIWorks Ladder Designer File Edit F2 3E F3 JE F4 te Fs Os FO e7 O Fe t a m pe Browse Warables Ent
67. file has templates for all the I O modules in the I O series For example I 7000 ini is the configuration file for the l 7000 series I O modules Take l 7065 in the l 7000 series for example as shown in the following figure TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 73 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com P Devices 5NX Comment Device information TouchPAD is DCON Master v Device Series I 70 v Connection coM1_1 Model Name 1 7065 Select T Device Name Dev_ _7065_1 Assign NetID 1 _ __ Tin la Select I 70 E4 Seach ENABLE DI 1 R ACTION 1 W_ACTION 1 ERROR 0 _ ENABLE DEVICE 1 Clear All Tags As above ERROR is the tag for the communication status Defining I O Behaviors in lO hsf Take l 7065 for example l 7000 series I O module Open the lO hsf in the directory HMIWorks install path bin Modules I 7000 I 7065 The codes in IO hsf are of C language as below BEGIN FUNCTION BLOCK this line is necessary DWORD v_do 0 DWORD v_di 0 int gWriteCount 0 uart_SetTimeout 6DEVICE TIMEOUT W_ACTION a tag used in Ladder to enable disable writing actions SENABLE_DO a tag used in Ladder to enable disable the part of DOs if VAR_VALUE ENABLE_DO amp amp VAR_VALUE W_ACTION int Write 0 To decide if
68. first image for the next click OL O again OL O is the background image Note any more images in the ObjectList OL has no effect they simply waste memory OL O is the background image OL 1 is the selected image Note any more images in the ObjectList OL has no effect they simply waste memory Description 6 Images in the ObjectList OL From left to right they are OL 0 OL 1 OL 5 OL O is taken as a background image The Slider is divided into 5 segment 20 for each one and is drawn by its value 0 20 OL 1 20 40 OL 2 40 60 OL 3 60 80 OL 4 80 100 OL 5 As shown in the left column Implementing event handlers The event handler is supported only in the frame of C not Ladder By default double clicking on the component opens the programming window of the TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 89 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com OnClick event handler if more than one event handlers that a component has Component Frame Existing Event Handler OnCreate OnDesitroy OnHide OnShow OnPaint HotSpot Slider Take OnCreate event handler of a frame for example 1 Click on the OnCreate field in the Inspector Then click on the button to open the programming window xj Inspector Libraries f Frame w 2 File Edit Search DK Can
69. for the To back option from the Arrange menu to make the selected object go down to the lowest level of the stack To front TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 114 _ Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Repeat the similar procedure for the To front option from the Arrange menu to make the selected object go up to the highest level of the stack For example select the red square and click To front in the menu You can see that the red square goes up to the highest level in the stack Group Put components the Drawing the Widget and the System components together as a set that is a group For example first circle the items together by a mouse and then click Group in the menu You can see that they are grouped together Ungroup Break a group back into its original separate state For example select the group and then click the Ungroup option from the Arrange menu TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 115 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 5 2 Rotating and Flipping Edit Menu Edit lt Undo Ctrl Z Redo Shift Ctrl Z Cut Ctrl4 X Copy Ctrl C Paste Ctrl V X Delete Ctrl Del Duplicate Ctrl D 42 Rotate CCW 2h Rotate CW t Flip horizontal Flip vertical To demonstr
70. from RefObject property Selected True or false Whether the CheckBox is checked or not 5 4 13 Label a lt 2 What is a Label A Label is a Text put on TouchPAD to give information that may change at the run time Unique Properties of Label TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 101 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com properties description This property determines where to locate the string left right or center LeftJustify RightJustify or Center DecimalDigits The power to which ten must be raised to produce the value say divisor which is used to divide the value of the associated tag of this Label The value of the tag must be divided by the divisor to show on the screen to represent decimal digits Note The property is supported only in programming type Ladder Representing decimals for Ladder Designer The numbers used in the Ladder Desinger are all integers The decimals are not accepted in the Ladder Designer However in some cases users may need to calculate or display decimals So we provide a work around method to handle these cases Take the I 7017Z module for example Supposed that we use the l 7017Z module to read an analog value 3 265V back from the remote side and we want to display decimals on the TouchPAD devices But the Ladder Designer supports only integers So we must handle this drawback to dire
71. ge of all the selected items to that of last drawn item Align top Align the topmost edge of all the selected items to that of last drawn item Align vertical center Align the vertical center of all the selected items to that of last drawn item Align bottom Align the bottommost edge of all the selected items to that of last drawn item Align center Align the center point of all the selected items to that of last drawn item For example select all the items and then click Align center in the menu TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 120 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com 5 5 4 Build and Download to Run Run Menu hn Run Build amp Download F9 Build amp Rendering F Rendering Only Cor Fs Download Only Cor FS Setup Device TouchPAD Download File User bin Console F10 Refer to the chapter Setup Devices and Connect to O for Setup Device Other Items in the Run Menu Run F9 gt Rendering Build Download Rendering and build F5 Rendering Build Compile and Link Rendering Only Ctrl F5 gt Generate source codes for frames tools ladders etc Download Only Ctrl F9 gt Download the project s bin file to the TouchPAD devices Download File User bin Download a bin file to the TouchPAD devices Console F10 gt Open a console window cmd exe with environment varia
72. h Tools In order to use Ladder Designer to build HMI of TouchPAD we should associate tags with tools There are three methods to associate tools with tags Every change of the tag in the Ladder Designer is updated to the tool in the run time after association 1 The first method simply drag and drop the tags in the Workspace to the frame design area A CheckBox component is created with the tag associated Note this feature is only supported for the CheckBox components TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 67 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com lea e WF File Workspace Arrange Run Window Help _ x id Inspector Libraries File E Test hwd PE Program E Test ldx c i Connection E TestMTCP Tags ES Device NEE 1 fUbb_ TUL 3 _7066_1_D02 3 _7066_1_D03 Button hwed iO hwd LittleLightO pen hwd NewLight0 hwd v 25 _7066_1_R_ACTION 2 _7066_1_W_ACTION amp Virtual Output Erro spns y ce ce ce ce Pent od TPD 280U Selected 0 2 The second method double click the widget on the frame design area to open the Select variable window Take a Slider for example M3 Select variable Browse Variables Enter Constant Scope 7066 1 M Clear Tag Q _
73. he time that is required to trigger the first periodical OnClick event not the first OnClick event when in the programming type Standard C unit ms PressFillColor The color used to fill the TextPushButton when the TextPushButton is touched but not yet released The shape of a TextPushButton Circular or Rectangular Triggered events TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 97 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com time Release TextPushButton4 TextPushButtan4 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 98 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 4 9 Slider we What is a Slider A Slider is a control element used to set levels Usually a Slider is used in volume control Unique Properties of Slider properties description BackgroundFillColor The color used to fill the background of the Slider The color is represented by a three byte value in the hexadecimal form From the highest byte to the lowest it is the blue byte the green byte the red byte in sequence BackgroundTextColor The color of the text in the background of the Slider The color is represented by a three byte value in the hexadecimal form From the highest byte to the lowest it is the blue byte the green byte the red byte in sequence Max The max
74. ht 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com M TextAslmage Cancel Changing the Color To change the FillColor property of a component click the component first to select it and then click the FillColor field in the Inspector Then click on the button to open the color dialog to select a color Repeat the same procedure for the OutlineColor field te ie E Custom colors Trees uO Rea E5 Coos Lim 120 Bie 0 OK Cancel amp dd to Custom Colors Changing the Font To change the Font property of a component click the component first to select it and then click the Font field in the Inspector Then click on the button to open the font dialog to change the font There are two font dialogs when choosing fonts 1 The same font dialog as the PC s A If this font dialog is opened fonts are stored as image in TouchPAD after download and therefore cost more memory space e g the same two letters such as A and A cost TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 85 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com B Widgets that use this font dialog Text BitButton 2 The custom font dialog that shows only fonts supported by TouchPAD A The fonts does not stored as image after download That is the same two letters such as A and A only are
75. idget 14 WidgetTop pWidget 186 WidgetRight pWidget 18 WidgetBottom pWwidget 18 l else ffwhite R G B used to clear the PaintBox hmi_SetForeground pContext OxFFFFFF hmi_FillRect pContext WidgetLeft piWidget WidgetTop pWidget WidgetRight pWidget WidgetBottom pWidget 5 4 17 ObjectList ObjectList 2 What is an ObjectList An ObjeciList is a component which is used to maintain a list of library TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 108 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com objects Combined with RefObject properties of TextPushButton Slider CheckBox and RadioButton components users can easily toggle two or multiple images Using an ObjectList 1 4 Note that you should not worry about the size or the location of the ObjectList component because the ObjectList component Is invisible after downloaded to the TouchPAD device The ObjectList component maintains a list of a library objects and is used in a component e g CheckBox with the RefObject property After downloading to the TouchPAD device the images of the library objects replace the original display of the component When the state value of the component changed users see only the images of the library objects displays in the order in the ObjectList according to the state value of the component For example add two libr
76. imum value of the Position Min The minimum value of the Position The value where the slider locate between Max and Min The direction of the Slider TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 99 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 5 4 10 BitButton BitButton What is a BitButton A BitButton is a button with 3D appearance and the status rebounds back if releasing the pressed button When you press it you can see that the BitButton is pressed down This 3D like appearance is achieved by two images so that it takes more spaces to store and more time to download than a Text PushButton 5 4 11 HotSpot 2 What is a HotSpot HotSpot decides an area which is capable of responding to on click events Usually putting a HotSpot on the Drawing components that is Rectangles Ellipses Texts Pictures and Lines makes them to respond to on click events After downloading to TouchPAD a HotSpot is invisible TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 100 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 4 12 CheckBox CheckBox 2s What is a CheckBox A CheckBox is a control element that provides a yes no choice Unique Properties of CheckBox properties description The size of the checking box DisplayType How to display the pictures which are loaded
77. ing type Ladder It s easier in programming type Standard C Control the I O by using API function dcon_WriteDO in the event handler of the CheckBox TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 112 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 5 Menus All the menus can be accessed from menu bar or the popup menu The menu bar W File Edit View HMI Layout Arrange Eun Window Help Right click on the frame design area a popup menu is displayed The frame design area Eramel AFrame2 5 5 1 Cascading and Grouping Arrange Menu Arrange C4 Back One Ctrl P2 Dn Ch Forward One Ctrl PgUp T4 To back Shift PeDn Th To front Shift PsUp Group Ctrl G ls Ungroup Ctrl U To demonstrate functions of cascading and grouping first draw three shapes as followings TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 113 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Back One Make the selected object go down a level of the stacks For example select the blue ellipse and click the Back One option in the Arrange menu You can see that the blue ellipse goes down one level in the stack Forward One Repeat the similar procedure for the Forward One option from the Arrange menu to go up a level in the stack To back Repeat the similar procedure
78. k Select the com port that connects to the TouchPAD device Before downloading programs to the TouchPAD device be sure to set up the TouchPAD device to connect to it first TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 21 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com J Setup Serial Device Mim X Select Com Port COM2 Flow diagram Click on the Run option or the Download Only option from the Run menu As shown in the figure below set the rotary switch to 1 when downloading the program and set the rotary switch back to 0 when finishing downloading and let the program run Run Run F9 Rendering and Build F5 Rendering Only Ctrl F5 Download Only Ctrl F9 Setup Device Console F10 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 22 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 4 2 2 Setup Ethernet downloaded devices TPD 283 TPD 283 Mx TPD 283 H TPD 283U Mx TPD 283U H TPD 433 Mx TPD 433 H TPD 703 TPD 703 64 On the back panel of a TouchPAD Ethernet download device configuration modes can be found Use the rotary switch to set the configuration mode No Mode Description Run amp This is a special run mode which is used in the Update development stage The TouchPAD devices can be updated by a PC from the remote side through Eth
79. l Tag option from the HMI menu Here we add two tags v1 and v2 for example P Edit variable olx Mame al Default 0 Comment After adding the tags users can verify in the Workspace workspace Toolbox File P Test hwd Program A Testldx E Connection B Tags Device Press F4 on your keyboard or click the Ladder Designer option from the HMI menu to open the Ladder Designer window In the Ladder TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 132 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Designer window press F2 to create a new rung Pe HMIWorks Ladder Designer ox Eile Edit re F3 F4 kael FS O F6 Fi aJ F8 ko n gt seo 1 m 0 Double click the contact input of the first rung in the Ladder Designer window Then the Select variable dialog box is displayed Choose the variable to associate with the contact input Me Select variable Browse Vf arables Enter Constant Scope Global ad Here we select variable v1 to associate the contact input Repeat the same procedure to associate v2 with the coil output TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 133 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com Pg HMIWorks Ladder Designer ox ae Nea eaw eati emm C
80. linking Cycle defines the blinking period of ERROR tag used in devices which can be found in the Workspace As shown below this figure demonstrates the usage of Connecting Blinking Cycle A CheckBox Is used to be a signal of communication status of a remote Modbus TCP slave device and is assigned an ObjectList of four images Of course TouchPAD must be a Modbus TCP master device To compatible with the old versions of HMIWorks the first and the second images must represent communication normal connected and communication error disconnected The third and the fourth images toggle when TouchPAD is in its connecting status The period of connecting blinking can be found in the Project Configuration form in the HMI menu TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 69 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com In Decio res q 273 CheckBox5 BoxSize 16 DisplayType TopLeft Enabled True LSBO hwd C FillColor OxFFFFFF A Name CheckBox OutlineColor 0x000000 RefObject ObjectList4 LSB6 hwd Selected False _ Dev_1_ ERROR FS Workspace Toolbox File L Program 4 fi Connection Tags Device Dev AA Dev_1_DOO tA Dev_1_D01 83 Dev_1_D02 fRA Dev_1_DO3 7 Sc Dev_1_DO4 eo Dev_1_DO7 FG Dev_1_ENABLE DO Z Dev_1_R_ACTIOD Sp AON
81. lp you smoothly blend the TPD series device into your decoration For the VPD series the rubber keypad IP 65 waterproof front panel and DIN Rail panel mounting are designed for harsh environment and are especially suitable for factories 1 1 Advanced Features Excellent C P ratio cost performance Workable under tough environments operating temperature 20 C 70 C High Color resolution touch screen PoE Power over Ethernet TPD 283 RS 485 network TPD 280 TPD 280U TPD 430 VPD 130 VV VV WV TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 7 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com gt GUI design gt Complete and powerful development tool easy integration with touch HMI devices quick design for a variety of applications gt Supports the popular C programming language gt Ladder logic design gt P rating TPD series IP40 VPD series IP65 gt Support data exchange function gt Free Developer software HMIWorks 1 2 Applications of TouchPAD Interactions between human and machine are getting more and more important since automation control has emerged From systematic surveillance of equipments status monitoring of house appliances or even measurements of temperature and humidity HMI devices play an indispensable role in passing information In the early time HMI devices consist of lights meters 7 segment display For now L
82. lt E mail service icpdas com F3 gt Insert a Jump which is parallel to the cursor F10 fr Add comments The briefings of the contact input type Item Description A normally open contact input A normally closed contact input i H A positive transition contact input when the state from OFF to ON trigger one shot A negative transition contact input gt when the state from ON to OFF trigger one shot The briefings of the coil output type Description A normally open coil output A normally closed coil output A Set coil output gt once triggered the coil remains ON until a reset A Reset coil output once triggered the coil remains OFF until a set A positive transition coil output when the state from OFF to ON trigger one shot A negative transition coil output when the state from ON to OFF trigger one shot TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 46 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt j E mail The briefings of function blocks Refer to C ICPDAS HMIWorks_ Standard bin FunctionBlock for more details Item Description parts of C code Group default OR Or If en 1 eno Ini in2 default Else eno 0 XOR Exclusive Or If en 1 eno ini in2 default Else eno 0 Equal lf en 1 and ini is equal to q default in2 eno 1 Else eno 0 NE Not Equal If en 1 and in1 is not equal l q default to in2
83. mail service icodas com 5 2 2 Language Options View gt Language Options x Language Options Language Editor Language Selection Language File English Ing Current Language English version 13 01 29 Jose servicei icodas com http Awww icgodas com DK Cancel 5 3 Ladder Designer One of the most important features of HMIWorks is Ladder Designer The ladder logic is defined by the followings 1 A Ladder Diagram consists of many rungs 2 Each rung resembles a circuit which is formed by relays 3 All ofthe rungs are executed serially in a loop Click HMI menu to use this feature HMI New Virtual Tag F2 Register Devices A F3 Ladder Designer F4 Refresh Time 7 0 Scan Proect Configuration gt New Virtual Tag defines your own variables gt Register Devices I O uses I O devices of ICP DAS on the networks gt Ladder Designer designs your ladder logics TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 43 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com gt Refresh Time I O Scan set the refresh time of each scan of a Ladder the minimum value is 100 ms gt depreciated this item is moved to the Project Configuration gt Project Configuration the configuration of the project Users can manage their ladder design in the Workspace 5 3 1 Getting Started gt To use the Ladder Designe
84. module has a matching name directory and in that directory there is only one file l O hsf IO hsf is the file of the C language to define the behaviors of the I O module I O module directories in the same series are grouped together in the I O series directory For example l 7011 l 7067 are directories represent I O modules and they are all put to the series directory l 7000 What Module ini describes TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 71 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com KELES PET 7000 I 7000 M 7000 ModbusTCP Device information DeviceSees iw PET 000 1 7000 M 7000 ModbusT CP TCPIP 9 UART ON P fea 10 1 0 100 Port 502 eg 502 Connection Device Name Model Name PET 7000 Net ID fi Protocol MT CP Assign device name Verb Search Import Template fg Select I 70 _ O x DCAC OK Cancel Modules ini I 7000 Protocol UART Verb Select Import Template M 7000 Protocol UART erb Select ModbusTCP Protocol MTCP erb Edit Assign device name Import Manual F Devices M Device information Device Series i Brunt Connection Device Name Model Name NetID 1 In details we have the following table Description This section keeps the list of the device series which HMIW
85. n and the Programming Type Here we choose programming type as 1 Standard C Project name Don t use space or special char Location Don t use space or special char C ICPDAS HMIWorks_Standard Projects Orientation C Portrait C Portrait Filip Landscape Landscape Flip Default Programming Type 1 Standard C C 2 Ladder OK Cancel 2 Designing the Graphic User Interface For example draw a rectangular and fill the color Of course you can draw more complex and beautiful figures Here we simply demonstrate how to TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 127 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com make a simple project E Framel t280 hwd 3 Modifying Source Codes Double click the BitButton in the frame design area to open the programming window Use hmi_Beep to sound a beep for example then press OK TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 128 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com fg CAICPDAS HMIWorks_Standard Projects TPD2 Mi E4 File Edit Search OK Cancel Goto Line fi BitButton50nClick 1 void BitButton50nClick tWidget pWidget FS z 3 hmi_Beep 4 5 6 4 Setup Device Refer to the Setup Devices section for details
86. n HMIWorks users can design a project with many frames of two different types Standard C and Ladder The variables tags used in the Ladder is transformed into a structure of the C language after building the project and thus the tags can be accessed in the frame of programming type Standard C Two macros are provided for this purpose 1 VAR_GET get the value from the tag in the Ladder 2 VAR_SET set a value to the tag in the Ladder Supposed that we have a tag named count incremented in the Ladder then TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 150 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com we can get the value of the count tag and set the count tag to zero as shown in the example below Static char str 32 get count virtual tag from Ladder void TextPushButton8OnClick tWidget pWidget VAR_GET count usprintf str d count LabelTextSet amp LabelWidget9 str Set count to zero void TextPushButton11OnClick tWidget pWidget VAR_SET count 0 usprintf str d count LabelTextSet amp LabelWidget9 str TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 151 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Appendix Appendix ts listed below 1 FAQ Frequently Asked Questions A FAQ A 1 What to do if screen flashes
87. n already installed on your PC the TouchPAD USB driver has also been automatically installed too However users may need to update the TouchPAD USB driver manually if some previous version of HMIWorks was installed HM IWorks setup file ftp ftp icodas com pub cd touchpad setup To update the TouchPAD USB driver use the USB driver located in the below directory to update the driver in the device manager from the control panel C ICPDAS HMIWorks_Standard Tools USB_ Drivers C ICPDAS HMIWorks_Standard is the installation path of the HM Works software In order to update a USB driver for the TouchPAD devices set the rotary switch on the TouchPAD device to the 9 position then plug the USB cable into the TouchPAD Device and then turn on the supply power to the TouchPAD device reset Finally you can see that the TouchPAD USB driver is in the list of the device manager something like Stellaris Device Firmware Upgrade MiniOSS is running Waiting for connection MAC FF FF FF FF FF FF Downloading programs through USB Follow the flow to download a program to the TouchPAD device TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 31 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com SL XXXXXX MiniOS8 is running lt Rota ry switch a Waiting for connection is on the Plug in the USB cable back of Version 1 01 May 11 2011
88. o is creating a new folder named Test in the directory of C ICPDAS HMI Works_ Standard bin Lib And then re open the library window you can see that the new folder Test as shown below Of course there s no library item in it You should add items yourself ixj ixj Inspector Libraries Inspector Libraries default v Test v Group1 hwd Group2 hwd Group33 hwd Group5 hwd Object hwd Object2 hwd Object3 hwd RGB hwd snow2 hwd es aa TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 124 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com The special Picture directory in the project directory xy Inspector Libraries Pictures v No pictures in project s folder 1 Click the libraries tab select the Picture directory from the dropdown menu as shown in the picture above 2 Unlike others options in that dropdown menu Picture directory is at the location of the project directory Any library that is added to the Picture directory is always together with the project and makes the project portable among different computers 3 When opening a project a red cross will be shown on the frame panel if HMIlWorks fails to load the image as shown in the below picture Inspector Libraries Framel fFrame2 Import Images to Library This option can also be accessed from the File m
89. ogram ldx Delete Program ET_ 01 amp 2_1_Al3 ET_7018Z_1_Al4 Rename Program ET_70182_1_Al5 ET_ 0182_1_Al6 PET_70182_1_Al PET_70182_1_Al8 Connection g TestMTCP PET 70182 _1_AI9 EditC 7 PET 70181 D01 Delete Connection PET_70182_1_D02 PET_70182_1_D03 PET_70182_1_D04 5 PETTIMEZ_T_R ACTION Device dP PET 701 8 amp Z_1 5 PET_7018Z_1_AI0 New Device Edit Device Edit IO Tag lete IOT Delete Device Saa AS O Folder_1 New Virtual Tag Rename Folder Edit Virtual Delete Folder Delete Virtual New Folder Next sections show the functions of these parts TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 40 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com 5 2 The Options of TouchPAD 5 2 1 Project configurations HMI gt Project configurations Project Configurations x TouchPAD Type TPD 280U Orientation Landscape Watchdog Time startup Enable Timeout msi 4000 Reset Time ms fiooo l Turn on LED Indicator W Issue a Beep Delay Time ms LCD Backlight W Time to Auto Off sec fo W When Turning On Issue a Beep Beep W When Touching the Screen When TCP Timeout Error W When Turning Off Issue a Beep LCD Brightness 180 OK Cancel save to Default Some important options Description After changing these two options
90. on of the Timer because the Timer is invisible when downloaded to the TouchPAD Also it s not necessary to put the Timer on the frame panel Unique Properties of Timer properties description Enabled Whether the Timer is enabled or not Interval The time span of two consecutive OnExecute events TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 106 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 4 16 PaintBox PaintBox AN Note This component is supported only in programming type Standard C What is a PaintBox A PaintBox is a component which is used to paint shapes such as rectangles ellipses etc in the runtime Clearing a PaintBox Use the hmi_SetForeground function to paint a white rectangle to clear the PaintBox as shown in the red box in the example below Refer to the API reference for more details ftp ftp icodas com pub cd touchpad document english api_reference TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 107 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Hnt flag void BitButtonSOnClick ttidget pWidget Flag WidgetPaint tWidget amp PaintBox4 f void PaintBox40nPaint tHidget pWidget tContext pContext if flag 2 fblue R G B hmi_SetForeground pContext Hx ABGBBFF 5 hmi_FillRect pContext WidgetLeft pi
91. opyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Project name Don t use space or special char Location Don t use space or special char C ICPDAS HMIWorks_Standard Projects Orientation C Portrait C Portrait Flip f Landscape C Landscape Flip Default Programming Type 1 Standard C C 2 Ladder cancel 3 Designing the Graphic User Interface We can skip this step Here we just demonstrate how to quickly complete a whole new project with I O modules of ICP DAS 4 Designing the Ladder Diagram Press F3 in your keyboard or click the Register Devices option from the HMI menu to open the Devices window to register the PET 7060 module Refer to section Connect to I O Modules for details Click the Libraries tab to select a picture to represent the tag in the Libraries panel Drag and drop the tag that is corresponding to the DOO of the PET 7060 module to the frame design area On the frame design area the picture you just select is now on the frame TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 140 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 83 Framed test283 2 hwd A File Edit View HMI Lay ange Run Window Help aioe 72 PET_7060_D00 PET_7060_011 PET_7060_DI2 PET_7060_D13 PET_7060_DI4 PE
92. orks supports When registering device F3 the Devices window gets the information of device series from this Category section Protocol MTCP in the Module ini is corresponding to Protocol TCPIP in the New Edit Connection window in the Workspace Protocol UART in the Module ini is corresponding to Protocol UART in the New Edit Connection window in the Workspace HMIWorks scans through the network to find out I O modules Until now PET 7000 is the only series which support this Search function Category Protocol Search TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 72 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com HM IWorks pops up a list of I O modules to let users select one The Select list of I O modules is loaded from the file whose name is Device_Series Name ini HM IWorks opens the Import window to let users decide the I O points for the I O module HM Works imports the tags of the I O module from the I O module configuration file For example HMIWorks imports tags of l 7011 from the template in the file of I 7000 ini HM Works imports the tags of the I O Manual module by the manually decided I O points Template Generating Tags by Register Devices F3 Press F3 on your keyboard to open the Devices window to register O devices The I O modules configuration
93. ouchPAD device press F9 on your keyboard to run or click the Run option from the Run menu As shown in the figure below pressing the button switches the output of channel 0 of the I 7066 module TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 137 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 6 4 Integrating TPD 283 Series with I O modules In this example we use the TPD 283 device to control a PET 7060 module the 6 channel Power Relay Output 6 channel Isolation Digital Input and PoE module of ICP DAS First put the PET 7060 module in the Ethernet network of the TPD 283 device and use a browser to configure the PET 7060 module 1 Configuring PET 7066 by a Browser Download the MiniOS7 Utility and its user manual from ftp ftp icodas com pub cd 8000cd napdos minios 7 utility minios7_utility Then use the MiniOS7 Utility to configure the IP settings of the PET 7060 module Be sure to make the PET 7060 module and your PC in the same subnet Press F12 on your keyboard to scan through the network Then click the PET 7060 module that is found and then click the IP setting button to configure the IP settings TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 138 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com va Minit OS7 Scan D 4 a gt 2 24 a Search Options D a
94. ove your mouse to the frame design area Click and drag a suitable sized TextPushButton TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 143 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 2 Double click the TextPushButton component to implement its OnClick event handler in the displayed programming window Then press OK to save the file and leave foC A ICPDAS HMIWorks_Standard Projects T PD280U_TEST _ Frame meka File Edit Search OK Cancel Goto Line fi TextPushButton130nClick 1 void TextPushButton130nClick tWidget pWidget static char str Hello Worldt 2 3 4 5 PushButtonTextSet amp TextPushButton13 str 6 PushButtonFillColorSet amp TextPushButton13 6xG6FF68 green WidgetPaint tWidget amp TextPushButton13 8 3 o al 3 In order to make it clearer we copy the above codes below void TextPushButton130OnClick tWidget pWidget Static char str Hello World PushButtonTextSet amp lextPushButton13 str PushButtonFillColorSet amp TextPushButton13 OxOOFFOO green WidgetPaint tWidget amp TextPushButton13 The effect of the OnClick event handler TextPushButton1 3 To set the Text property of a TextPushButton we provide another function TextButtonTextSet for your convenience Refer to the API reference for more details The API reference can be downloaded from TouchP
95. pecial char CAICPOASIAMVVorks Standard Projects Orientation C Portrait C Portrait Flip f Landscape C Landscape Flip Default Programming Type C 1 Standard 2 Ladder AN Notice A valid project name is a sequence of one or more letters digits or underscore characters _ It must not begin with a digit Besides it is of suggested length 100 characters including its path Choose the target module Orientation and the Default Programming Type Press OK and HMIWorks integrated design environment shows as below There are several parts of HMIWorks SS Se a Ys Menu bar Workspace and Toolbox Frame Design area Inspector and Libraries Results window Output and Errors Status bar TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 39 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com F Frame1 Test hwd ox File Edit View HMI Layout Arrange Run Window Help Menu bar Inspector Libraries Enl Frame BackgroundColor OxFFFFFF Solid a Bi Progen Baa a a Connection Inspector Workspace and Toolbox and Libraries _framed c cc _framei c Results window Output and Errors ce _dict c Tanam a 4 A Below are the operations pop up menus that users have in Workspace eal File Testhwd New C c Delete New Header file h Rename E a Program Fe Test idx A New Ladder Pr
96. pplication program again to solve this error Set this option at HMI gt Project Configuration gt General 2 gt Application Image Checksum 4 2 4 Calibrations Usually users need not to calibrate the touch screen because we calibrate the TouchPAD devices before shipping However in cases users may need to calibrate the touch screens we introduce the flow below You can find that the calibration programs are in the following directory HMIWorks_Install_Path bin boot Device_Name calibrate For example there are two calibration programs can be found at C ICPDAS HMI Works_ Standard bin boot TPD 280U calibrate if trying to calibrate TPD 280U One is for landscape when the screen is horizontal and the other is for portrait when the screen is upright And in the same directory of the file calibrate bin there s a batch file which is used to download the calibrate bin to the TPD 280U device and it is called calibrate bat Follow the flow to calibrate the TouchPAD device 4 3 Connecting to I O Devices We provide connection methods for three series of I O modules the PET 7000 the l 7000 and the M 7000 series and a general approaches for the Modbus TCP Master I O modules Modbus RTU Master Slave I O modules TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 33 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Click the
97. ption from the Run menu then click the Search TouchPad button in the displayed Setup Ethernet Device window to find the TouchPAD device on the network 2 Ifthe TouchPAD device is found and displayed in the list on the Search TouchPAD dialog box double click on the TouchPAD item in the list to bring the information back to the Setup Ethernet Device window 3 Select the IP Address type DHCP or Static IP for the new program and then press OK Click the Run option from the Run menu to download the new program to the TouchPAD device We will introduce the details below AN Important Notice When using Static IP or DHCP the IP settings are stored as a part of the program image and only successful downloading can update the IP settings But if using Runtime Setting the program image has no information about the IP settings and TouchPAD loads the IP information from the flash at the runtime Before IP settings are used be sure to set the IP settings into the flash by the related API functions We have demo to do this as well Eg Setup Ethernet Device Search TouchPad Host Information PC Host IP Address Ste RWS Runtime Information TouchPAD Device Nickname JICPDAS Static IP f DHCP C Runtime Setting Device IP address 1192 168 255 1 eg 10 1 2 3 Mask 755 255 OL Gateway 1192 169 255 254
98. r run HMIWorks_Standard exe to create a new project first gt New Virtual Tag and open Ladder Designer from the HMI menu gt New Virtual Tag adds variables used in the Ladder Designer There are three ways to open the Edit variable window gt pressing F2 key on your keyboard gt select the New Virtual Tag option in the HMI menu gt right click on the Virtual item and click the New Virtual Tag option Workspace Toolbox ENE File iP Test hid H E Program SE Test Ids Efe Connection ll TestMTCF Ea Tags ne Device New Folder 5 3 2 Introduction to Ladder Designer A Ladder Designer is a tool to implement the ladder logic according to users design Press F4 on your keyboard to open the Ladder Designer Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Pg HMIWorks Ladder Designer F24E F3 3 Ft lael FS FOL of dk Fe bgt Fa Foe New Rung Insert Before Ctrl I Insert After CtrHM Duplicate Ctrl D Copy Ctrl C Paste Ctrl V Mainly a Ladder Designer consists of three parts the menu bar the function bar and the edit space The highlighted rectangle area is the cursor The briefings of the function bar Description T R Lid Pr F lael TEn G TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 45 Copyright 2015 ICP DAS Co Ltd All Rights Reserved
99. range Run Window Help Y TextPushButt mmg ober om BitButton HotSpot m Checkbox RadioGroup t Label Select an ObjectList component and click on the frame design area Double click the ObjectList icon to open the ObjectList window In the ObjectList window double click to select the pictures you want Users need to double click on two pictures one is for the checked state of the CheckBox component and the other is for the unchecked state Press OK to finish this step T Pyr 4 Framel Test hwd GA File Edit View HMI Layout Arange Run Window Help laj x WES Inspector Libraries Drawing Ctrl 1 E Obeti Widget Cule 2 ObjectList v S Timer gt PaintBox Fi ObjectList Frame Make the CheckBox component refer to the ObjectList component by setting the property RefObject to the ObjectList component Now toggling the states of the CheckBox component becomes the switching of the pictures in the ObjectList component TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 131 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com xi Inspector Libraries Z3 CheckBoxWidget v Text CheckBoxWidget4 Top 159 Width 125 3 Designing the Ladder Diagram First add virtual tags variables for the ladder diagram Press F2 on your keyboard or click the New Virtua
100. reater than or equal E HMI Works Ladder Designer File Edit pt e Ejea sO oO e ojej e gt 4 Insert a new function block which is parallel to the cursor F8 Move the cursor to the GE function block and then press F8 Set the newly inserted function block as LE less than or equal File Edit ka e Eju oo eo r Oo ee gt 5 Delete a function block in the rung Move the cursor to the function block you want to delete Then press delete on your keyboard For example we move the cursor to the Assign function block and then press the delete key 8 HMIW orks Ladder Designer File Edit pt E rigs oO oO 7 Geje TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 61 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 6 Delete the rung Move the cursor to the starting point of the rung and then press Delete on your keyboard 5 3 3 8 Jump to a Label To demonstrate how to jump to a label first we create three rungs and then explain how to skip the second rung and jump to the third 1 Press F2 three times to create three rungs for example E HMI Works Ladder Designer File Edit F2 3E F3 JE Feige de OD e7 D Fe to gt 1 1 _O _ 2 c _O _ 3 K _O 2 Move the cursor to the coil output of the first rung and then press F9 to
101. rogram image every time the downloading process starts HMlWorks assigns this IP address just for downloading only MAC address The MAC address of the TouchPAD device which is selected in the Search TouchPAD window Every TouchPAD device is shipped with its MAC information pasted on its back panel TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 26 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com E gt Setup Ethernet Deg o fae aM Search TouchPad OLX Search TouchPad han Le iesma N al A sxe N Device Nickname CPDAS222 Refresh Device MAC address 99 00 0 82 00 isable UDP filter C Static DHCP Device Runtime Information Device IP address 110 1 0 1 le M Downloading Information Device IP address 10 1 0 130 le x 4 gt o J co E _ twee item description Refresh Re search again to re make the list Disable UDP filter We have UDP filter enabled by default to search for the TouchPAD devices only Devices which are not TouchPAD are filtered out if this option is not checked Press the Search TouchPAD button to search the TPD Ethernet device Note1 The MAC address can be found on the back panel of the TPD 283 device HMlWorks uses this MAC address to search for the TouchPAD device To see if the TouchPAD device is on the network che
102. s n images OL 0 OL 1 OL n 1 Component Max No Component Behavior Frame of Image 1 OL O is the background image Note1 Any more images in the ObjectList OL has no effect they simply waste memory Note2 Assigning the RefObject property of the default frame the frame which has its default property equal to True automatically assign the same ObjectList to all the frames in the project TextPushButton Unlimited OL O is the background image theoretically When the TextPushButton is in the released state it displays the OL O And when it is in the pressed state it displays OL 1 for the first click OL 2 for the second click after releasing the first click and so on While the TextPushButton reaches the last image OL n 1 it will start to display from the beginning again for the next click that is OL 1 and go on the next round Unlimited OL O is the background image theoretically The Slider is divided into n 1 segments and draws the corresponding image according to the value of the Slider See the table below for example CheckBox Unlimited Every click on the CheckBox theoretically changes the display image started from OL 0 to OL n 1 one by one TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 88 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Once reaching the last image OL n 1 it restart to display from the
103. signer File Edit feat ro 3 Fe izes FS O Fo 9 F7 g F8 to a gt nim 3 Insert a new contact input in the right of the cursor F3 Move the cursor to the v2 contact input and then press F3 Associate variable v3 to the newly inserted contact input TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 54 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com E HMI Works Ladder Designer File Edit rose F336 Fetzer Fs Oe OD rz Ol Fej rs gt l m E o o 4 Insert a new contact input which is parallel to the cursor F4 Move the cursor to the v3 contact input and then press F4 E HMI Works Ladder Designer File Edit F2 JE F3 F4 tae Fs Os e0 7 D Fe to a v1 i i ol 5 Set the type of a contact input Move the cursor to a contact input and then press the space bar to change the type of the contact input For example we move the cursor to the v3 contact input Press the spacebar twice to set the type of the contact input to pulse contact input TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 55 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com E HMI Works Ladder Designer Eile Edit F2 JE F3 empe pea e7 afe gt m oil 6 Delete a contact input
104. stored with the space one A takes B Widgets that use this font dialog Text TextPushBuitton Slider Checkbox Label RadioButton C To support language other than English follow the below procedure to select an appropriate font a Go to the HMI menu to open the Project Configuration dialog In the Font tab select a language e g Russian b Click the component in question to open the custom font dialog Based on the language you select in the Project Configuration dialog the custom font dialog displays corresponding fonts of the language e g Ilcodas_cs_cyrillic as shown below x Font Style Size licpdas_cs_cyrillic Regular 40 OK Cancel Effect The fonts may have slight differences between what you design in HMlvVYorks and what you actually see on TouchPAD Color E clBlack AN Note To use the font dialog of PC s the TextAsImage property of a Text component needs to be set to True TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 86 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Inspector Libraries T Text LeftJustify AutoScaleFontSize False AutoSize True T Bookshelf Symbol 1 Ty Bookshelf Symbol2 _ Effects Sample l Strikeout RS AaBbYyZz Color E Block gt Sepipt This is an OpenType font This same font will be used on both your
105. t Default cover the whole area of the widget which TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 110 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com High Color Render the images in the ObjectList as 16 bit color high color or 8 bit color when compiling Force Compile Force HMIWorks to compile the images of this ObjectList which is not used by any widgets AN Note To display transparent color mask color correctly the following conditions must be satisfied 1 The Fit to Widget option in the ObjectList dialog must be checked 2 Each object of the ObjectList must contain only one Picture component Note that when you add to library the picture it is grouped 3 TextPushButton with an ObjectList assigned to its RefObject property does not support the transparent mask color function when its Shape property set to Circular Unique Properties of ObjectList Property Description Objects The maintained library objects Relationships between TouchPAD and I O module Take the l 7066 module for example click on the Register Devices option from the HMI menu or press F3 on your keyboard to automatically generate tags and then drag and drop the tag on the frame TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 111 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com
106. t is turn on the ch 0 and chi h uart_Open XVBus 115200 N 8 1 mrm_WriteDO h NetID addr ch_count DO_value uart_Close h Using Ladder designer 1 After adding a new device select TouchPAD is as Modbus RTU Master Fe Devices Tag N lO T S on ACTO ype TouchPAD is Modbus RTU Master h Modbus TCP Master Device series Modbus RTU Master Connection Modbus TCP Slave Modbus RTU Slave Model Mame DCON blaster select Device Marne Assign Met ID Timeout TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 36 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 2 Select Device Series is XVBoard Fa Devices Start Ad Tag Mame IO Type pame ooo Device information TouchPAD is Modbus RTU Master gt Device Series M 7o00 7 Connection 1 7000 DL series MRTUM Model Mame ee Device Name Met ID Board Timeout User Define MRTUM 3 Edit the connection select Connection Interface is XVBus Fa Hew Edat Connection Connection Name SER Assign Mame Connection Interface XVBus Mote The interface is fo HPAD and FO devices not for download 4 Press the Select button and then select the model Fa Devices fT Fo Select ZY Board Series SEE ress Device information TouchPAD is Modbus RTU Mast
107. the BitButton component to implement its OnClick event handler in the displayed programming window Then press OK to save the file and leave foC ICPDAS HMIWorks_Standard Projects TPD280U_ Mi E4 File Edit Search OK Cancel Goto Line fi BitButton170nClick 1 void BitButton170nClick tWidget pWidget BitButton190nClick Z BitButton260nClick 3 static char str Hello TouchPAaD i CanvasTextSet amp LabelWidget18 str 6 WidgetPaint tWidget amp LabelWidget18 7 void BitButton190nClick tWidget pWidget 10 lt change Font to size 26 CanvasFontSet amp LabelWidget18 amp g_sFontCm2 86 WidgetPaint tWidget amp LabelWidget18 17 void BitButton260nClick tWidget pWidget 18 f change Text color to Red CanvasTextColorSet amp LabelWidget18 OxFFO6868 WidgetPaint tWidget amp LabelWidget18 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 148 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 4 In order to make it clearer we copy the codes below with their corresponding results step 0 the beginning snapshot N A Label vidget1 S change Text change Font change Color step 1 Click on BitButton change Text lhe Eee void BitButton1 7OnClick tWidget pWidget aoa static char str Hello TouchPAD change Font Canvas TextSet amp LabelWidget18 str ange Solel WidgetPaint tWidget amp LabelWidget18 or
108. the OnShow So OnShow has widgets to use TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 91 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com OnPaint whenever TouchPAD needs to paint its screen OnPaint is executed after OnShow when TouchPAD just switches to the frame When leaving the frame1 OnHide TouchPAD executes OnHide first OnDestroy TouchPAD removes all the widgets used in the frame1 after OnHide is executed Then executes the OnDestroy 5 4 3 Rectangle Rectangle Unique Properties of Rectangle properties description BrushStyle The style used to fill to a rectangle 5 4 4 Ellipse Unique Properties of Ellipse properties description BrushStyle The style used to fill to an ellipse TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 92 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 5 4 5 Text Iz Another way to put a Text a string on the frame Simply copy an text from the clipboard and paste it on the frame design area of HMIWorks HMIWorks then create a Text component and then load the string from clipboard automatically Unique Properties of Text properties description Alignment This property determines where to locate the string Left right or center LeftJustify RightJustify or Center Note This property is enabled only when AutoSize
109. the program downloading successful Always cut the power then turn it on before downloading programs 3 2 Installation and Wiring Mount the hardware For 2 8 TPD 280 TPD 280U TPD 283 TPD 283U o Cw ERr m C E E ee D ee EWB 43 External Wall Box TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 17 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com For 4 3 TPD 432F TPD 433F EWB T43F External Wall Box OB140F Outlet Box Mounted to European standard 86 mm x 86 mm outlet box For 7 TPD 703 TPD 703 64 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 18 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com NSRS XV board assembly on VPD 133 VPD 132 2013102708 What s in the package B2 Connector A1 A2 A3 A Screws A w g i i TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 19 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 4 Set up Devices and Connect to O This chapter is divided into two parts One is setup TouchPAD and the other is connecting TouchPAD to I O modules 4 1 Preparation First of all you should install the HMIWorks development software on your PC HM IWorks is the development tools for the TouchPAD devices Follow the steps as suggested by the HMIWorks setup wizard to
110. there s a need to write any DO channel TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 74 Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt E mail service icodas com Update the status for each channel if it has been changed iWrite VAR_GET_WRITE_U32 amp v_do DOO 0 iWrite VAR_GET_WRITE_U32 amp v_do DO1 1 iWrite VAR_GET_WRITE_U32 amp v_do DO2 2 J J J iWrite VAR_GET_WRITE_U32 amp v_do DO3 3 iWrite VAR_GET_WRITE_U32 amp v_do DO4 4 J N N NN if iWrite Write only when need gWriteCount if dcon_WriteDO DEVICE NETID 5 v_do amp OxFF dcon_WriteDO the DO writing API function of l 7000 I O series 7000 I O series uses the DCON protocol return HMI_ERROR if gjWriteCount return HMI OK Skip reading to reduce the device loading if VAR_VALUE ENABLE_DO VAR_VALUE ENABLE_DI amp amp VAR_VALUE R_ACTION R_ACTION a tag used in Ladder to enable disable reading actions SENABLE_DO a tag used in Ladder to enable disable the part of DOs SENABLE_DI a tag used in Ladder to enable disable the part of Dis if dcon_ReadDIO DEVICE NETID 4 5 amp v_di amp v_do dcon_ReadDIO the DI DO reading API function of l 7000 I O series 7000 I O series uses the DCON protocol VAR_SET DI0 v_di amp 1 lt lt 0 VAR_SET used to set the value of this channel to its tag VAR_SET D
111. ting Properties in RUN Time cccccseeeeeeeeseeeeeeeeesaeeeens 143 7 2 1 FillColor and Text of a TextPushButton ccceceeeeeeee 143 7 2 2 Percentage Of a SIIGEL cceccccecccsececeeeeeeeeeseeeeseeeeeseeeens 145 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 5 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com 7 2 3 Selected of a CHECKBOX c cccccccecececececcccececececeueaeaeaees 146 7 2 4 Font Text and TextColor of a Label 148 7 3 ACCESSING Tags in Ladder cccceeececeeeecseeeeeseeeeeseeeeeseeeesaaeees 150 ADP TOI aidarciavapcencoescceiiasance scons dead eaie nse ocuni anni camioseeiceraceldapanneauebaesaeeeseccasheans 152 Pie E O E oni sue gay beens se saneeuns Ges cneesansenensoueeees see 152 A 1 What to do if screen flaShe S cccccecceseeeeseeeeseeeeseeeenees 152 A 2 How to have higher resolution Picture cccccseeeeeee es 152 A 3 How does a TouchPAD control I O ccceccceeceeeeeeeeeeeeees 152 A 4 Howto change Font of Text cccccseeeeeseeeeseeeeesaeeeeseees 152 A 5 How to represent decimals for Ladder Designer 153 A 6 How to remove the startup beep of a TPD 283 device 153 A 7 How to customize the generated COde cccccceeeeeeeees 153 A 8 How to store data in the flash 0 0 0 ecccecccseeceeeeeeeeeeees 154 A
112. tory lo CAICPDAS HMIWorks_Standardppin FunctionBlock convert counter default E Smath Category er default timer convert user_define 5 counter E Function Block Categoryini timer N O 09 n ne WO xor exclusive or gt not equal gt greater or equ lt less or equal assign functio 2 Goto the directory TestGroup create a ini file of the exactly same name as that of the group that is TestGroup Create a sub directory of the TestGroup directory and we may call the sub directory TestFunction Finally define a new function TestFunction in the file TestGroup ini CAICPDAS HMIWorks_Standard bin FunctionBlock enn Q TestFunction Ke default math c Al TestGroup 1 juser_define 2 E Function Block 3 5 J Function Block TestFunction lt a nE 4 4 FunctionName TestFunction DisplayName T F Caption this is for test VarCount 6 Rows 3 PinO en Pini p1 Pin2 p2 Pin3 eno Pin4 p4 Pin5 p5 Note VarCount pin counts Below shows what does the Row mean and the order of the pins TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 66 Copyright 2015 ICP DAS Co Ltd All Rights Reserved D lt E mail service icodas com Pin Order 3 Inthe directory TestFunction create a new file FB hsf to implement the user defined function 5 3 9 Associate Tags wit
113. u for buying TPD VPD Series HMI Devices TouchPADs which are made by ICP DAS Co Ltd We suggest you read through this user manual before you set up these devices and develop their programs Purpose This manual shows how to use TouchPADs and develop programs This manual mainly contains the following parts E Introduction basic understandings of TouchPADs m Hardware specifications dimensions and installations E Software mainly how to build a project and HMIWorks introductions Personnel This manual is fit for following personnel End Users Engineers Technicians TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 3 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com Table of Contents FMC TAC E E E E uateene ie natesioa E E E salieeaeenemecsinexeismoeaie 3 Bs MU OGIO De ereatee tee reser E EERE EERE AE EREE AEREE E EAER EEEE AEE EREE 7 1 1 Advanced Features iat nctcetinr ata atic aeatinatinwate 7 1 2 APPHCAlONS OF TOUCNFAD ceeds dares vadsvadvunersdiuadiensieniarudiaedsentanndses 8 1 3 AILIKINGS OF SIUAUONS sivsaceccserseesaei ares eseeeaee 12 2 General Specifications ccceecccceececceececeeeeecseeeesaeeessaueesseeeesaaeeesaneeesaaees 13 2g PW cg B d gt Rn nen a eRe ee ae 13 RR VIP OCS eateries peers E tceeeeeueeceaees 14 Be FOWO serere E E E E E EEEE EEE 16 3 1 Hardware Appearance ccccsecceeeceeeeeeeeseeeseeeeaeeeseees
114. unt to 0 eno 0 Note the counting period depends on the number of rungs CTD Count Down End Count lt 0 If en 1 Count down until End During counting eno 0 When End eno 1 Else counter Reset count to value eno 0 Note the counting period depends on the number of rungs TON Timer On unit ms End elapsed gt DelayMS lf en 1 Start the timer if not Stop the timer when End When timer runs eno 0 When End eno 1 Else Reset the timer eno 0 TOF Timer Off unit ms End elapsed gt DelayMS timer lf en 1 Start the timer if not TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 49 timer Copyright 2015 ICP DAS Co Ltd All Rights Reserved lt j E mail 5 3 3 Operations of Ladder Designer 5 3 3 1 New Virtual Tags F2 To use the Ladder Designer add variables for the Ladder Designer first 1 Press F2 on your keyboard or click the New Virtual Tag option from the HMI menu to add virtual tags then an Edit variable window displayed 2 Define a new variable in the Name field and optionally fill the other fields 3 Finally press the OK button to take effect Po Edit variable Bim Ea Name A Default 0 Comment Here we add three variable v1 v2 and v3 for example in the next sections TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 50 Copyright 2015 ICP DAS Co Ltd All Rights
115. usages of frames and components from the Toolbox In the Toolbox there are three kinds of components the Drawing the Widget and the System components Drawing 1 Rectangle draw a rectangle Ellipse draw ellipse Text put string text on screen Picture load an image file on a frame Line draw a line Widget gt 1 TextPushButton create a button T T 2 Slider show or decide the percentage 7 3 BitButton create an image button zie 4 HotSpot create a hot spot that can ya PitButton issue an OnClick event HotSpot 5 CheckBox provide an alternative Label provide a string that can be PaGaL modified during the run time Label RadioButton provide a one of many RadioButton selection System m Timer periodically execute codes PaintBox draw shapes in the run time FE Panos _ ObjectList maintain a list of library ObjectList objects which can be used through property RefObject of TextPushButton and CheckBox TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 80 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com AN Important Notice 1 Make sure that widget component should not overlap or unexpected behavior may happen when clicking 2 The minimum gap between two components is 12 pixels If the gap is smaller than 12 pixels pressing one component may trigger the other s event handler due to calibration accuracy
116. use LabelTextSet to replace CanvasTextSet and WidgetPaint that is LabelTextSet amp LabelWidget18 str step 2 Click on BitButton change Font Hello TouchPAD void BitButton1 9OnClick tWidget pWidget change Font to size 20 change Text change Font CanvasFontSet amp LabelWidget18 A amp g_sFontCm20 WidgetPaint tWidget amp LabelWidget18 TouchPAD User Manual version 1 0 26 Last Revised June 2015 Page 149 Copyright 2015 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icodas com step 3 Click on BitButton change Color Hello TouchPAD void BitButton20OnClick tWidget pWidget aa Ichange Text color to Red change Font Canvas TextColorSet amp LabelWidget18 change Color OxFFO000 WidgetPaint tWidget amp LabelWidget18 To set the Text property of a Label component we provide another function LabelTextSet for your convenience Refer to the API reference for more details The API reference can be downloaded from ftp ftp icodas com pub cd touchpad document english api_reference For more API functions of Label refer to canvas h in the following path C ICPDAS HMIWorks_ Standard include grlib where C ICPDAS HMIWorks_ Standard is the installation path In the same path there is a header file grlib h grlib h contains prototypes for the pre defined fonts such as g_sFontCm20 7 3 Accessing Tags in Ladder I
Download Pdf Manuals
Related Search
Related Contents
平成19年度における主な支出先とその内訳(PDF:1.1MB) Amazon Fire TV Benutzerhandbuch Manual RX-lOlO TITRE BAC +5 ネットワーク接続ガイド 平成25年度 Copyright © All rights reserved.
Failed to retrieve file