Home

Manual - ICP DAS USA`s I

image

Contents

1. TouchPAD TPD VPD Series HMI Device User Manual Version 1 0 13 ICP DAS Co Ltd TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 1 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 nor for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2012 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 13 Last Revised September 2012 Page 2 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Preface Thank you for buying TPD VPD Series HMI Devices
2. 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 13 Last Revised September 2012 Page 73 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com E HMI Works Ladder Designer File Edit ret ee F4 tael Fs O e0 _F O F8 to F3 gt am 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 Designer File Edit F2 3E F3 F4 tye Fs O Fo _F O Fe to a wa oC 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 13 Last Revised September 2012 Page 74 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com E HMIWo
3. TPD 280 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 38 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com TPD 283 Applications are downloaded through Ethernet PoE Switch NS 205PSE Power supply KA 52F 48 a p Config 0 Run amp Update s i ce Update T 2 Run Only i 9 l r LI e x 2 m Chas TPD 283 g J n 1 1 j ET 7000 PET 7000 TPD 283 Note either Ethernet or PoE uses the same general Ethernet cable PoE power over Ethernet means that the Ethernet cable conveys not only data but also power TPD 280U Applications are downloaded through USB only l 7561 Power supply USB RS 485 Converter DP 665 24V TPD 280U TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 39 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com TPD 430 TPD 430 EU Applications are downloaded through USB only Power supply l 7561 DP 665 24V USB RS 485 Converter VDC 10 30 VDC RS 485 and Ground Data Data mmr _ USB Earth Frame Ground lt TPD 430 TPD 430 EU VPD 130 VPD 130N Applications are downloaded through USB only l 7561 Power supply USB RS 485 Converter DP 665 24V VDC 10 30 VDC and Ground i Ye S lik Frame Ground VPD 130 VPD 130N TouchPAD User Manual version 1 0
4. The briefings of function blocks Refer to C ICPDAS HMIWorks_ Standard bin FunctionBlock for more details Description parts of C code Group TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 66 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com AND And If en 1 eno in1 amp in2 default Else eno Q OR Or lf en 1 eno in1 in2 default Else eno Q XOR Exclusive Or If en 1 eno ini in2 default Else eno Q Equal lf en 1 and in1 is equal to l l q default in2 eno 1 Else eno 0 NE Not Equal If en 1 and ini is not equal q default to in2 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 lf en 1 and ini lt in2 j default eno 1 Else eno 0 Assign If en 1 out Is assigned 9 default with in and eno 1 Else eno 0 OnChange OnChange lf en 1 and in is changed 9 default eno in Else eno 0 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 67 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Add Addition lf en 1 math q in1 in2 and eno 1 Else eno 0 Sub Subtraction lf en 1 l l math q in1 in2 and eno 1 Else eno 0 Mul Multiplication If en 1 l math q in1 in2 and eno 1 E
5. 03 Framed test283 2 hwd A File Edit View HMI Lay ange Run Window Help aioe 72 PET_7060_D00 S PET_7080_011 PET_7060_DI2 PET_7060_D13 S PET_7060_DI4 PET_7060_DI5 PET_7060_R_ACTION PET_7060_W_ACTION Light hwd LittleLiahtOoen0 hwd E DO0OOOG 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 149 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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
6. loj x File Edit aE F E F iae sO g r Ol eit ffetlael i _tstst CSs s ox f Cancel Double click on the Jump of the first rung to associate with the label of the third rung Eg HMI Works Ladder Designer Eile Edit F2 3E F3 JE F4 tae Fs Os Fo e7 O F8 t Fo gt a 2 c _O _ Test_Label 2 4 O04 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 first rung is closed TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 83 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 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 explain 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 counter default math system E Function Block timer user_define J exclusive or user_define no
7. 0cccceeeeeeeees 97 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 4 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com OS MOCAN raai iii EEEE 104 Daa EID Ceana aaa a Re ee re 105 See Tae A 105 SAG FIU Grensa EEEN 106 ee ENE E E O E 108 JAG We US iia UO ieee eae eet aa 109 DA Os Sde cies eneneies eet yes eset ce ah esa A E ee 109 B40 BIBU 2 2snc naa aise eoeete aire ease 110 DA le FO OOM sncdectecanncaectasse E 111 5412 GNECKBOKss sisi Sie eA Anat A ee 111 SATS E gt Ce ee nn ne oer ee a 112 Deicke N aA 115 SA AND O aE E E E ee eee 116 DAIO ODICCIIS Eear a 117 Sor MENUS cece oa a a a e E a E e T EA 121 5 5 1 Cascading and Grouping Arrange Menu c 00c0e 121 5 5 2 Rotating and Flipping Edit Menu cccccceeeeseeeeeeeeees 124 5 5 3 Frame Managing and Aligning Layout Menu 126 5 5 4 Build and Download to Run Run Menu 0 129 5 5 5 Library Management Popup Menu c ccceeeeeeeeeeeee 130 6 Making a Simple Project cccccscccceseceseseeceeseeceseeseeeesseeeessseessaes 135 6 1 Your First Project Using Standard C cccceeceeseeeeeeeeeeeeeeneees 135 6 2 Your First Project Using Ladder ccccceceeeeeeeeeeeeeeeeeeeeeaeeees 138 6 3 Integrating TPD 280 Series with I O modules ccccceeee 143
8. E HMI Works Ladder Designer Ele Edit F2 JE F3 JE F4 tae Fs O e0 e7 O Fe to a i 1 4 _0 __ To delete a rung move the cursor to the starting point of the rung and then press Delete key TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 71 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com E HMIW orks Ladder Designer File Edit P e E raaj Or 6D e a r gt 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 Po HMIWorks Ladder Designer Eile Edit RE 5 FE Fe tawa sO eo jez o r Ctrl C Ctrl V Fo HMIWorks Ladder Designer 5 x Eile Edit paje 8 Figg Or BO a Ore of gt sem i O 4 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 72 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 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 Re HMI Works Ladder Designer File Edit F2 3E F3 JE F4 toe Fs O e0 e7 O Fs gt i m mo
9. 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 O 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 HMI Works_install_ path bin Modules For example lO hsf of I 7017Z is located in C ICPDAS HMIWorks_ Standard bin Modules I 7000 I 701 72 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 13 Last Revised September 2012 Page 113 Copyright 2012 ICP DAS Co Ltd All Rights Reserved x lt E mail service icpdas com BEGIN FUNCTION BLOCK float v_ai 10 Se AT lO hsf dcon ReadAIA11 S DEVICE SNETID v ai VAR_SET AI1 v_ai l VAR SET AI2 v_ai 2 VAR_SET AI3 v_ai 3 VAR SET AI4 v_ai 4 VAR SET AI5 v ai 5 v_ai 6 v_ai 6 1000 VAR _SET SAI6 v_ai 6 VAR_SET AI7 v_ail7 VAR_SET AI8 v_ai 8 VAR_SET AI9 v_ai 9 FF i Inspector
10. Ltd All Rights Reserved lt E mail service icpdas 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 Virtual Tag option from the HMI menu Here we add two tags v1 and v2 for example Ms Edit variable olx Name Jul Default o Comment After adding the tags users can verify in the Workspace workspace Toolbox File P Test hwd Program Cel Testldx E Connection Q 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 13 Last Revised September 2012 Page 140 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Designer window press F2 to create a new rung Pa HMIWorks Ladder Designer Seka File Edit eae 3 E F4 Let F5 O F6 F7 F8 toe sesen 1 m 1mo 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 c
11. 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 3 HMI Works Ladder Designer File Edit P E ra oO oO 7 a r gt 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 81 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Pe HMI Works Ladder Designer File Edit a E Faal s O OD r O F o i 1 4 mo 2 4 _O _ 2 c FO 2 Move the cursor to the coil output of the first rung and then press F9 to add a Jump HMI Works Ladder Designer File Edit F2 JE F3 F4 kael Fs Oa Fo F7 g F8 to s 7 1 qo 3 Double click on the starting point of the third rung to add a label Test_Label to it TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 82 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com 4 9 4 HMI Works Ladder Designer
12. 2012 ICP DAS Co Ltd All Rights Reserved b 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 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 13 Last Revised September 2012 Page 137 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 C Portrait C Portrait Filip Landscape G Landscape Flip Default Programming Type 1 Standard C C 2 Ladder OK Cancel 2 Designing the Graphic User Interface For example place a CheckBox compo
13. Cut Ctrl X Copy Ctrl C Paste Ctrl V x Delete Ctrl Del_ S Duplicate Ctrl D 4 Rotate CCW 2 Rotate CW t Flip horizontal Flip vertical To demonstrate 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 13 Last Revised September 2012 Page 124 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 13 Last
14. DO5 v_do 1 lt lt 5 A R A SDOG do x DOOGOOUD ma i T END_FUNCTION_BLOCK TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 120 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Note The TagName property takes effect only in the programming 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 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 Aranese 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 4 Back One Ctrl P2Dn Ch Forward One Ctrl PgUp 4 To back Shiftt PeDn Th To front Shift PsUp Group Ctrl G Ctrl U TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 121 I Ungroup Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com To demonstrate functions of cascading and grouping first draw three shapes as followings 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
15. Libraries F HMIWorks Ladder Designer A Labetwidet Ba F3 E F4 tet F5 lt Fe Ka a aa 22 orn LabelWidget 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 13 Last Revised September 2012 Page 114 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com FloatToStr str_sin ret_sin 3 LabelTextSet amp Label5 str_sin The result is 1 000 5 4 14 Timer Q AN Note This component is supported only in programming type Standard C Qa 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 a
16. Max and Min Vertical The direction of the Slider 9 4 10 BitButton BitButton Qs What is a BitButton TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 110 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com 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 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 5 4 12 CheckBox CheckBox What is a CheckBox A CheckBox is a control element that provides a yes no choice TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 111 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Unique Properties of CheckBox properties description The size of the checking box DisplayType How to display the pictures which are loaded from RefObject property Selected True or false Whether the CheckBox is checked or not
17. September 2012 Page 127 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Align right Align the rightmost edge 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 13 Last Revised September 2012 Page 128 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 5 5 4 Build and Download to Run Run Menu hun Run Build amp Download F9 Build amp Rendering F Rendering Only CirHh4 Download Only Ctr F9 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
18. 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 Orientation 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 Ls Landscape Landscape Filip Default Programming Type 1 Standard C C 2 Ladder OR 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 13 Last Revised September 2012 Page 135 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 13 Last Revised September 2012 Page 136 Copyright
19. 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 E 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 13 Last Revised September 2012 Page 3 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Table of Contents FCIAC C E E OE AE E 3 Te ANU OCG TO ec cece eee a 7 tbi Advanced Fete ypc tai a ae Nea reheat oh eda 7 12 GADPICALIONS OF LOUGKIPADD cerier a cat seniucis EE 8 13x AIAINGS O SIUAUONS ssnnsnennnnn nn nnn aR 12 2 General SPecifiCations ccccccccccsececssececeeeecaeeeesseeeesseeessueeesaeeeesaeeees 15 Cle TPD 28 SEES naana a a etal A 16 Pee TPD ZOKU SEES na A A AS 18 23 IPD ASC EO ooa 19 Oe TRDA F OCES ai A AE a AEAN IA 22 Coe NPD IXO CHES a 23 Se 21 OWA Gi E ee eee e eee eee 28 3 1 Hardware Appearance cccccccceccceeeceeeceeeeceeeceeeceesenseeseeeseeeens 28 See DIMEN ION anena e a E 30 939 Instalaton and VV IMINO seee aaa 36 4 Set up Devices and Connect to V
20. 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 13 Last Revised September 2012 Page 85 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 directory lo CAICPDAS HMIWorks_Standardpbin FunctionBlock convert counter default Smath Category er default timer convert user_define 5 counter E Function Block Categoryini timer N O 09 n ne co 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 Test
21. 1 0 13 Last Revised September 2012 Page 58 Copyright 2012 ICP DAS Co Ltd All Rights Reserved x lt E mail service icpdas 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 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 WYGIWYS What You Get Is What You See Abstract graphics as simple APIs Easy learning IDE to raise productivity in short time 5 1 The Construction of HMIlWorks Before showing the construction of HMlWorks create a new project first Click File menu then click on New TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 59 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Project name Don t use space or special char Aa Location Don t use space or special char C ICPDAS HMIWorks_Standard Projects Orientation C Portrait C Portrait Filip Landscape Landscape Flap
22. 13 Last Revised September 2012 Page 40 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com The pin assignments The pin assignments of the TPD 280 TPD 280U TPD 283 TPD 430 TPD 430 EU devices No Mode Description FG Frame Ground F G is connected to the inside EMI or ESD suppression circuits Make sure that F G is connected to the Earth to VDC DC input Voltage range 10V 30V 2 GND Connected to the power supply s ground pin 3 Data The positive data line of the RS 485 network 4 Data The negative data line of the RS 485 network The pin assignments of the VPD 130 VPD 130N devices Description Frame Ground F G is connected to the inside EMI or ESD suppression circuits Make sure that F G is connected to the Earth to VDC DC input Voltage range 12V 48V a GND Connected to the power supply s ground pin a batas The postive data Ine ofthe RS 485 newor a bata The negative data Ine ofthe RS 485 nemor Note the RS 485 and the RS 232 use the same serial port on the VPD 130 VPD 130N devices TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 41 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 4 Set up Devices and Connect to I 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 instal
23. 5 4 13 Label Vad kae 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 properties description This property determines where to locate the string left right or center LeftUustify 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 112 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 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 I 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 directly read back the Al value from the I 7017Z module in the Ladder Designer 1 Setthe property
24. 69 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 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 Pe Edit variable mE Name a Default 0 Comment Here we add three variable v1 v2 and v3 for example in the next sections 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 70 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com MA Select variable Browse Variables Enter Constant Clear Tag a Select variable Browse Variables Enter Constant Value fi 24 caeel_ 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
25. 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 move your mouse to the frame design area Click and drag a suitable sized TextPushButton TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 151 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 AICPDAS HMIWorks_Standard Projects T PD280U_TEST _ Frame iml x File Edit Search OK Cancel Goto Line fi TextPushButton130nClick 1 void TextPushButton130nClick tWidget pWidget static char str Hello World 3 4 5 PushButtonTextSet amp TextPushButton13 str 6 PushButtonFillColorSet amp TextPushButton13 Ox 6FFG6 green WidgetPaint tWidget amp TextPushButton13 8 3 0 T 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
26. 88 Eee way fT an pealos soho al ons B Green 0 T COO SM afa ei OK Cancel Add to Custom Colors TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 100 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 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 Font Capability Component Description Function TextPushButton TextPushButton and Label do not impaired Label have any enhanced font choice Even if you change the setting in the Font dialog only the size can be changed Function fully Text BitButton Text and BitButton do support full supported font functionality since the text of them of stored in the form of images AN Note To support full functionality a TextAslmage of a Text component needs to be set to True A aa Sot 2l Effects S _ Strikeout F Underine AaBbYyZz mee z Seine Westem This is an OpenType font This same font will be used on both your printer and your screen Using Reference to another frame The Reference property is used as an event of go to specified frame TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 101 Copyright 2012 ICP DAS Co Ltd All
27. Buzzer Yes Rotary Switch 0 9 Yes RS 485 including Self Tuner and RS 232 3 pin arara 45 3 4 10 100 Base TX USB 1 1 Client Firmware updates only Serial Port RS 485 including Self Tuner x 2 LCD 4 3 TFT Resolution 480 X 272 X 16 defective pixels lt 3 Backlight Life 20 000 hours Brightness 400 cd m2 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 22 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Reset Button Yes 10 30 VDC or Power Input Range 10 30 VDC PoE Power over Ethernet 2 5 W 104 mA 24 VDC or IEEE 802 3af Class 1 Power Consumption 2 5 W 104 mA 24 VDC Dimensions WxLxH 126mm W x 82mm L x 24mm H 126mm W x 92mm L x 29mm H Installation Wall Mount Wall Mount Operating Temperature 20 70 C Storage Temperature 30 80 C Ambient Relative Humidity 10 90 RH non condensing 2 5 VPD 13x Series VPD series devices are designed for industrial applications Models VPD 130 VPD 130N Serial Port One set of RS 232 3 pin RS 485 including Self Tuner TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 23 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com USB 1 1 Client Firmware updates only 3 5 TFT Resolution 240 x 320 x 16 defective pixels lt 3 LCD Backlight Life 20 000 hours Brightness 270 cd m2 Touch Panel
28. MiniOS8 bin can be found at C ICPDAS HMIWorks_ Standard bin boot TPD 280U if trying to find out TPD 280U s OS image file And in the same directory there s a batch file named osupdate bat and it is used to update OS Follow the flow to update OS to the TouchPAD devices TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 54 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Set rotary switch to 9 and then reset to check the result 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 THM IWorks_ 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 55 Copyright 2012 ICP DAS Co Ltd A
29. Recommended Panel Cutout TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 35 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Left View Front View Right View Rear View Bottom View Recommended Panel Cutout 3 3 Installation and Wiring Mount the hardware TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 36 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com For TPD 280 TPD 280U TPD 283 TPD 280 TPD 280U with External TPD 280 TPD 280U with Outlet Wall Box EWB T28 optional Box OB120 optional EEN Coning Dwg Porescert Scenarig R Tmo Bot Qta For TPD 430 TPD 430 EU TPD 430 with External Wall Box TPD 430 with Outlet Box OB120 EWB T43 optional optional gt A TPD 430 EU for European 86 x 86 mm outlet box TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 37 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com For VPD 130 VPD 130N The DIN rail mounting of The panel mounting of VPD 130 VPD 130N VPD 130 VPD 130N VPD 130 VPD 130N Power Monitor Power Monitor Ma Sy gt aaam Connect to power and network TPD 280 Applications are downloaded through RS 485 l 7561 Power supply USB RS 485 Converter DP 665 24V VDC 10 30 VDC Ground r J KeG Chas TPD 280 o
30. Rights Reserved E mail service icpdas com It has higher priority than other events such as OnClick event Thus specifying an option of the Reference property disables the OnClick event It s easy to specify a value to the Reference property Simply click the Reference field in the Inspector and then choose the frame for reference zl Ss E Inspector Libraries Inspector Libraries E TextPushButton dl 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 OnClick event handler if more than one event handlers that a component has Component Frame Existing Event Handler OnCreate OnDestroy OnHide OnShow OnPaint TextPushButton BitButton OnClick OnRelease HotSpot 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 102 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com x Inspector Libraries Frame d4 2 Here we use hmi_Beep to sound a beep for example F cCACPDAS HMIWorks_Standard Proj Pal E4 Eile Edit Search OF Cancel Goto Line fi void Fram
31. Runtime Information TouchPAD Device Nickname JicPDas C Static IP DHCP C Runtime Setting Device IP address 1192 168 255 1 eq 10 1 2 3 Mask 255 Gateway 1192 168 255 254 Download Information T ouchP4D IP address fi 92 168 255 1 eg 10 1 2 3 MAC address 00 00 E 0 62 01 06 eg 00 00 E0 11 22 33 OK Cancel 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 Host IP Address The IP address of the local computer TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 47 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Device Nickname The nickname used to identify the TouchPAD device which ts 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 add
32. 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 152 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas 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 strU alue d lValue 5 SliderTextSet tSliderWid
33. is stored as 16 bit color True or 8 bit color False The default option TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 107 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com is 8 bit color Picture The picture to be loaded Trade off between firmware size and resolution ICP DAS Industrial Computer Product Data Acquisition System oes True es False on TouchPAD oes on TouchPAD es 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 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 108 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Unique Properties of Line properties desc
34. 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 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 97 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Il Move your mouse to the frame design area and click and drag a suitable sized rectangle P S 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 mee _ 9 Brush
35. tag TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 88 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 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 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_ IO i 7000 i 7000 introduction htm Modbus TCP I O modules ICP DAS provides ET PET 7000 series http Awww icpdas com products Remote_ 1lO et 7000 et 7000 introduction htm Modbus RTU I O modules M 7000 series I O modules by ICP DAS http www icpdas com produc
36. the com port that connects to the TPD 280 device Before downloading programs to the TouchPAD device be sure to set up the TouchPAD device TPD 280 to connect to it first TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 43 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Fg Setup Serial Device Mm Select Com Fort Cancel Downloading programs to the TPD 280 device Downloading programs to a TPD 283 device is easy Just click on the Run option or the Download Only option from the Run menu However downloading programs to a TPD 280 device is a little complicated 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 44 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Run Run F9 Rendering and Build F5 Rendering Only Ctrl F5 Download Only Ctrl F9 Setup Device Console F10 4 2 2 Setup the TPD 283 devices Configuration mode _ Config 0 Run amp Update 8 1 Force Update CF 2 Run Only Pty tW e j t o i e Aua m IRAS TPD 283 o 1 J J l ee 1 1 E On the back panel of a TPD 283 device configuration m
37. 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 Frame Test hwd b File Edit View HMI Layo Workspace Toolbox i nE Test ART Ee Tags Device TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 150 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 eT Name TextPushButton a extPushbutton 3 Widget Identifier PressFillColor 0x0000FF Reference ees es a3 TextPushButton13O0nClick
38. 066 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 baudrate data bit parity stop bit Net ID etc 1 Using DCON 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 13 Last Revised September 2012 Page 143 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 Pj 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 s
39. 159 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com Appendix Appendix ts listed below 1 FAQ Frequently Asked Questions A FAQ A 1 What to do if screen flashes 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 13 Last Revised September 2012 Page 160 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 TouchPAD 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
40. 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 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 output of channel 0 of the I 7066 module TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 145 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 cl
41. 3 Last Revised September 2012 Page 64 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Press F4 on your keyboard to open the Ladder Designer Po HMIWorks Ladder Designer File Edit F29E F3 JE Fiam Fo Mm FSR oF TE Fe bg FI POS pl Insert Before Ctrl I I M Duplicate Ctrl D Se Seas 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 rm Fig 1 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 65 Copyright 2012 ICP DAS Co Ltd All Rights Reserved 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 H A positive transition contact input when the state from OFF to ON trigger one shot A negative transition contact input 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 negative transition coil output when the state from ON to OFF trigger one shot
42. 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 76 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com By HMI Works Ladder Designer Eile Edit 3E F3 F4 Lael F5 J Fe i F7 aJ F8 v1 5 3 3 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 E HMI Works Ladder Designer File Edit F2 JE F3 JE F4 toes F5 Os FOO e7 O F8 to gt 1 li Choose function type In the new rung double click on the function block to open the TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 77 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Function Block window Function Block Caption and or esclusive or not equal greater or egual le or egual 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 Eg HMI Wor
43. 320 x 16 defective pixels lt 3 Backlight Life 20 000 hours Brightness 160 cd m2 Touch Panel 10 30 VDC or Power Input Range 10 30 VDC PoE Power over Ethernet 1 2 W 50 mA 24 VDC or IEEE 802 3af Class 1 Dimensions WxLxH 76mm W x 119mm L x 31mm H Installation Wall Mount Operating Temperature 20 70 C Storage Temperature 30 80 C Ambient Relative Humidity 10 90 RH non condensing Power Consumption 1 2 W 50 mA 24 VDC 2 3 PD 43x Series This series is 4 3 touch screen HMI devices Models TPD 430 TPD 430 EU TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 19 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Serial Port RS 485 including Self Tuner USB 1 1 Client Firmware updates only 4 3 TFT Resolution 480 X 272 X 16 defective pixels lt 3 Power Input Range 10 30 VDC Power Consumption 2 5 W 104 mA 24 VDC Dimensions WxLxH 126mm W x 82mm L x 24mm H 126mm W x 92mm L x 29mm H Wall Mount Wall Mount Suitable for the outlet box in Suitable for the European 86mm United States Operating Temperature 20 70 C 30 80 C Installation x 86mm outlet box Storage Temperature Ambient Relative Humidity 10 90 RH non condensing Continued Models TPD 433 TPD 433 EU TouchPAD User Manual version 1 0 13 L
44. 6 4 Integrating TPD 283 Series with I O modules cccceeeee 146 Te Advanced Programming IN wedetetedteanitintetetentiatetehtentiiiadeteieitiateietsiatuks 150 7 1 Adding a New File to Proje ct cccsscccssseeceeseeseeseeseeseeseeeees 150 7 2 Updating Properties in Run Time ccccseeeecseeeeeseeeeeeeeeeseeeees 151 7 2 1 FillColor and Text of a TextPushButton cceeeeeeeee 151 7 2 2 Percentage Of a SIId P ccccccccseeeeceeseeseeeeeseeeeeseeeenes 153 7 2 3 Selected of a ChecKBOX caresi E 154 7 2 4 Font Text and TextColor of a Label 156 7 3 Accessing Tags in Ladder ccccccccceseecceececeeeeeseeeeesseesessaeees 158 JA 1 9 6 oza E E eet eter ere 160 Ae lA reptatactastes tao eetsersesc O otn eoet 160 A 1 What to do if screen flaSheS ccccccecesseeeeseeeeeseeeeeneees 160 A 2 Howto have higher resolution Picture cceseeeeeeees 160 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 5 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com A 3 How does a TouchPAD control 1 0 ccc cece ccccecececececeneees 160 A 4 How to change Font of Text cccccccseeeeesseeeeneeeesaeeeesaees 160 A 5 How to represent decimals for Ladder Designer 161 A 6 How to remove the startup beep of a TPD 283 device 161 A 7 How to cus
45. 7000 RTU protocol Modbus RTU Master User_ Define Remote Modbus RTU I O modules MRTUM of third parties TouchPAD is treated as a slave Profiles Modbus RTU Slave device and wait for some master devices to control MRTUS 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 devices User Define Remote Modbus TCP I O modules MTCPM of third parties The explanations of items in the Devices window Register Device Connection Specify an existing connection approach TCPIP or UART or create a new one to connect to the I O module 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 the model name of the Specify the model name of the I O module to connect 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 specified ID of TouchPAD itself The timeout value for the communications both RS 485 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 57 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com and TCP TouchPAD User Manual version
46. AS 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 In 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 13 Last Revised September 2012 Page 158 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 Label TextSet amp LabelWidget9 str TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page
47. Default Programming Type 1 Standard C C 2 Ladder cancer 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 Menu bar Workspace and Toolbox Frame Design area Inspector and Libraries Results window Output and Errors Status bar ee ee IS TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 60 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com P4Frame1 Test hwd O x W File Edit View HMI Layout Arrange Run Window Help Menu bar Inspector Libraries Eul Frame BackgroundColor OxFFFFFF Solid 7 F Program z it Connection Inspector Workspace and Toolbox and Libraries ramel c p cc _framet c Results window Output and Errors Cc dict c n E Ea Ta oo 4 ld Below are the operations pop up menus that users have in Workspace _ File Test hwd New C g c Delete S New Header file g Rename Ee S l Program FA Testldx New Ladder Program ldx Delete Program Rename Program i gt Connection S TestMTCP Edit Connect
48. Group 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 een TestFunction on 4m default math c Al TestGroup _ 1 juser_define E Function Block 3 5 3 Function Block TestFunction lt a n 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 13 Last Revised September 2012 Page 86 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Pin Order 3 Inthe directory TestFunction create a new file FB hsf to implement the user defined function 5 3 9 Associate Tags with 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 13 Las
49. HMTWorks Standard bin Modules bin Modules LJ J j lO hsf Test_Series ini es t Modulel i Test Modulel Category PET 7000 I 7000 M 7000 ModbusTCP Test_Series They must be the SAME name They must be the SAME name Test Series Protocol MTCP erb Select Modules ini t pcort Template 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 template of the newly created I O module Test_Module1 As the figure shows the TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 95 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 protoco
50. IMEOUT 2000 range 1 000 50 000 ms The refreshing period to prevent reboot The system refreshes clears HMI WDT CLEAR 500 the watchdog timer to prevent rebooting HMI_STARTUP_BEEP When startup 1 Beep 0 disable HMI_TOUCH_BEEP When touched 1 Beep 0 disable For TPD 430 TPD 430 EU only HMI _BEEP_FREQ 800 This is the pitch value of the beep The valid range is 30 4 000 Hz For TPD 430 TPD 430 EU only HMI_BEEP_MS 25 The time length for each beep For TPD 430 TPD 430 EU only HMI LCD BRIGHTNESS 255 Me O the darkest 255 the brightest 1 Enable red LED indicator 0 HMI STARTUP_LED Rait Disable red LED indicator This TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 62 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com option is used for TPD 430 and VPD 130 only 0 Disable HMI_TCP_TIMEOUT_BEEP 1 Beep when TCP timeout error Note The options in the hmi_options h are treated as global settings that affect all projects To affect only one project copy this hmi_options h file into the project directory and then modify it 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 Eachrung resembles a circuit which is formed by relays 3 All of the rungs are executed serially in a loop Cl
51. LED Indicator Reset Button Rubber Keypad 5 keys Programmable Power Input Range 12 48 VDC Power Consumption 2 W 83 mA 24 VDC IO Expansion Bus Yes to mount one optional XV board Ingress Protection Front Panel IP65 Installation DIN Rail Mount and Panel Mount Operating Temperature 20 70 C Storage Temperature 30 80 C Ambient Relative Humidity 10 90 RH non condensing Continued Models VPD 132N 32 bit RISC CPU TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 24 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Memory Expansion 16 MB SDRAM 8 MB Flash Real Time Clock RTC Yes Buzzer Yes Rotary Switch 0 9 Yes One set of RS 485 including Self Tuner and Serial Port One set of RS 232 3 pin RS 485 including Self Tuner USB 1 1 Client Firmware updates only LCD 3 5 TFT Resolution 240 x 320 x 16 defective pixels lt 3 Backlight Life 20 000 hours Brightness 270 cd m2 Touch Panel LED Indicator Yes Reset Button Yes Rubber Keypad 5 keys Programmable Power Input Range 12 48 VDC Power Consumption 2 W 83 mA 24 VDC Yes to mount one optional XV board WwW IO Expansion Bus Ingress Protection Front Panel IP65 Installation DIN Rail Mount and Panel Mount Operating Temperature 20 70 C Storage Temperature 30 80 C Ambient Relative Humi
52. O s sssssnsssssssnnesnrerrrresrrrsrrrnsrrrsrreene 42 Aite A VODA AUOM wascusucnscsaacpetemacieiuenauiei eN EEE 42 yam OCODE OO Sen ene een ee oe rca ete en ne nent eee eres eee 42 4 2 1 Setup the TPD 280 devices ceeccceeeeeceeeeeceeeeeneeeeeneees 43 4 2 2 Setup the TPD 283 devices cc eeccceeececeeeeeceseeeseeeeneees 45 4 2 3 Setup Other Devices in TouchPAD Series 0cccceeeees 51 4 3 Connecting to I O Devices cc ccceccccceeeeceeeeeeaeeeeseeeeeseeeeesaeeeeas 56 5 Development Software HMIWOSKkS c ccccccseececeeeeesaeeeesaeeeesaeeeesaeeees 59 5 1 The Construction of HMIWOMKS ccccceeccseeeeeeeeeeeeeeseeeeseeeeeees 59 5 2 The Options of TOUCHPAD ccccccccceececceeeeseeeesseeeseeeeeseeeeeas 62 So CadderDeSlone Geen neon en Se ny ee ene rene ee 63 Deore AGUNG Slat eC xce oath eee 64 5 3 2 Introduction to Ladder DeSIQNEL ccccseceseeeeeeeeeeeeneees 64 5 3 3 Operations of Ladder Designer ccccseeeeeseeeeeeeeeeseees 70 5 3 4 User Defined Function Block ccccccceeeeeeeeeeeeeeeeeeeseees 84 5 3 0 Associate Tags With Tools ccccecccseeecseeeeeeeeeeeeseeeeseaees 87 5 3 6 User Defined I O MOdules ccccccccseeeeceeeeeseeeeeeeeeeesaees 89 5 4 Frames and COMpone n ts ccccccsccccssceccssceceeseeceeeeeceeeeesseeeeeas 96 5 4 1 Commons of Components and Frames
53. PAD button to search the TPD 283 device Note1 The MAC address can be found on the back panel of the TPD 283 device HMIWorks uses this MAC address to search for the TouchPAD device To see if the TouchPAD device is on the network check that if there is a device with the MAC address in the list after searching Note2 Be sure to put the TPD 283 device and your PC in the same subnet In short we draw the flow chart of setup the TPD 283 devices TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 49 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com a Setup Ethernet Device Search Touched ost rm iC Host IP Address 10 1 0 16 Device Nickname CPOAS Device MAC address 00 00 0 8201 33 ex 00 00 E0 11 22 33 Static C DHCP Device IP address Joooo ex 10 1 23 Downloading Informatic Device IP address 0 0 0 0 ma x coa Build F5 Rendering Only Ctrl F5 Download Only Ctrl F9 Setup Device Console F10 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 50 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 4 2 3 Setup Other Devices in TouchPAD
54. PAD User Manual version 1 0 13 Last Revised September 2012 Page 27 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 3 Hardware This chapter shows the overviews dimensions etc of the TouchPAD devices 3 1 Hardware Appearance TPD 280 TPD 280U Power Gnd RS 485 ee eReset Button 10 260 gt Trozo Rotary Switch Cover Removal Slit TPD 283 Reset Button Power over Ethernet Ec oe PE Eseo U re L I A A m Chas TPD 283 e I 7 Rotary Switch le Removal Slit TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 28 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Where is the reset button TPD 430 TPD 430 EU Reset Button e e Speaker Programmable LED Indicator Power Gnd RS 485 ay oo _ Co y Rotary Switch USB TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 29 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com VPD 130 VPD 130N LED Indicator Rotary Switch VPD 130 Reset Button Power Gnd RS 485 RS 232 t mn Cees Keypad 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 the program downloading successful Always cut the power then turn it on before downloading program
55. Project name the Location the Orientation and the Programming Type Here we choose programming type as 2 Ladder TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 147 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas 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 Filip Landscape C Landscape Flap 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 13 Last Revised September 2012 Page 148 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com
56. Revised September 2012 Page 125 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 5 5 3 Frame Managing and Aligning Layout Menu 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 Ox 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 13 Last Revised September 2012 Page 126 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas 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 13 Last Revised
57. Series Configuration mode asa ros g Except the TPD 280 and the TPD 283 devices users can find out the same definitions of the configuration modes on their back panels for other devices in the TouchPAD series We use the rotary switch to set the configuration mode TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 51 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Take the TPD 280U device for example as below No Mode Description Run This mode is used to run the application There is only one application on a TouchPAD device Update OS This mode is used to update operating system of the TouchPAD device Update AP This mode is used to download an application to the TouchPAD device There is only one application on a TouchPAD device All devices in the TouchPAD series have USB ports for downloading programs except the TPD 280 and the TPD 283 devices Unlike TPD 280 and TPD 283 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 p
58. Style Clear component FilColor JOMFRFFFF a Aras OEE BON AE E EEEE NE ATS Click on the component or the frame and i Ps Unban RENCE SELLES Pct ARASLI EL then the properties of the component can be Dutinetolo vee ae ee accessed in the Inspector II ALATT K AECT TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 98 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com FillColor I OutlineColor Property FillColor OutlineColor Width TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 99 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Description 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 The outline color of the rectangle which encloses The length of the vertical side of the rectangle The length of the horizontal side of the rectangle The x coordinate of the left top vertex of the 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 The string of the component to be displayed Referenc
59. al version 1 0 13 Last Revised TouchPAD User Manual version 1 0 13 Last Revised September 2012s Page 16 2012 Page 16 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Rotary Switch 0 9 Yes shame SL RIB x4 10 100 Base TX Serial Por R5485 incuding SefTuner 2 8 TFT Resolution 240 x 320 x 16 defective pixels lt 3 Power Input Range 10 30 VDC PoE Power over Ethernet Power Consumption 1 2 W 50 mA 24 VDC IEEE 802 3af Class 1 Dimensions WxLxH 76mm W x 119mm L x 31mm H Installation Wall Mount Operating Temperature 20 70 C Storage Temperature 30 80 C 10 90 RH non condensing TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 17 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 2 2 TPD 28xU Series In contrast to the TPD 28x series the TPD 28xU series devices are USB clients for the purpose of firmware update This is the meaning of the U in the TPD 28xU series Moreover the TPD 28xU series has SDRAM Flash expansion Models TPD 280U TPD 283U Serial Port RS 485 including Self Tuner pe TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 18 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com cthemet Ty 45 x 4 10 100 Base TX USB 1 1 Client Firmware updates only LCD 2 8 TFT Resolution 240 x
60. and a cmd exe window is displayed Enter make in the cmd exe window to re make the project 5 Click the Download Only Ctrl F9 option from the Run menu to download the bin or bix file TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 161 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas 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 clear a PaintBox Go to the section Using a PaintBox fo
61. 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 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 E File Edit Search OK Cancel Goto Line fi BitButton170nClick 1 void BitButton170nClick tWidget pWidget BitButton190nClick a lt BitButton280nClick 3 static char str Hello TouchPAD z CanvasTextSet amp LabelWidget18 str 6 WidgetPaint tWidget amp LabelWidget18 p 3 void BitButton190nClick tWidget pWidget 10 lt change Font to size 26 CanvasFontSet amp LabelWidget18 amp g_sFontCm286 WidgetPaint tWidget amp LabelWidget18 f fchange Text color to Red CanvasTextColorSet amp LabelWidget18 OxFF 6866 5 WidgetPaint tWidget amp LabelWidget18 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 156 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 He
62. arameters 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 e Setup Ethernet Device Host Information PC Host IP Address S fe WE Runtime Information TouchPAD Device Nickname JICPDAS Static IP DHCP C Runtime Setting eg 10 1 2 3 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 52 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Installing the TouchPAD USB Driver on your PC 1 lf HMIlWorks version 2 03 or above has been 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 se
63. ast Revised September 2012 Page 20 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Coming soon Image CPU 32 bit RISC CPU Memory Expansion 16 MB SDRAM 8 MB Flash Real Time Clock RTC Yes Buzzer Yes Rotary Switch 0 9 Yes Serial Port RS 485 including Self Tuner Ethernet RJ 45 x 1 10 100 Base TX USB 1 1 Client Firmware updates only LCD 4 3 TFT Resolution 480 X 272 X 16 defective pixels lt 3 Backlight Life 20 000 hours Brightness 400 cd m2 Touch Panel Yes LED Indicator Yes Reset Button Yes Power Input Range 10 30 VDC or PoE Power over Ethernet Power Consumption 2 5 W 104 mA 24 VDC or IEEE 802 3af Class 1 Dimensions WxLxH 126mm W x 82mm L x 24mm H 126mm W x 92mm L x 29mm H Wall Mount Wall Mount Installation Suitable for the outlet box in Suitable for the European 86mm United States x 86mm outlet box TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 21 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Operating Temperature 20 70 C Storage Temperature 30 80 C Ambient Relative Humidity 10 90 RH non condensing 2 4 TPD 43xF Series This series is 4 3 touch screen HMI devices TPD 432F TPD 433F Coming soon CPU 32 bit RISC CPU Memory Expansion 16 MB SDRAM 8 MB Flash Real Time Clock RTC Yes
64. bout the size or the location 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 13 Last Revised September 2012 Page 115 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 5 4 15 PaintBox PaintBox AN Note This component is supported only in programming type Standard C 2 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 13 Last Revised September 2012 Page 116 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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_FillRe
65. ch TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 91 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 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 13 Last Revised September 2012 Page 92 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com DEINES XKX Commer Device information TouchPAD is DCON Master v Device Series 1 7000 v Connection COM1_1 Model Name 1 7065 Select i Device Name Dev_ _7065_1 A
66. ct pContext WidgetLeft piidget 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 16 ObjectList ObjectList 23 What is an ObjectList An ObjectList is a component which is used to maintain a list of library TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 117 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com objects An ObjectList can be used in both programming types Combined with RefObject properties of the TextPushButton and the CheckBox components users can easily toggle two 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 when downloaded to the TouchPAD device Also it s not necessary to put the ObjectList component on the frame panel The ObjectList component maintains a list of a library objects and is used in a TextPushButton component or a CheckBox component After downloading to the TouchPAD device the images of the library objects replace the TextPushButton component or the CheckBox component When the state of the TextPushButton component or the CheckBox componen
67. devices Download File User bin Download a bin file to the TouchPAD devices Console F10 gt Open a console window cmd exe with environment variables for HMIWorks Users can modify the generated codes and then re make the codes Use make exe TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 129 Copyright 2012 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 ShifttPsLp Group Ctro Ti Ungroup Ctr T Add to library Import Images to library b ut ieee Cony Ctrl e f Paste Ctr Delete Ctrl Del Duplicate Ctrl D Adding items to library All the items added have the file extension hwg For example as below 1 Click the libraries tab select a folder where the library object is to be added to from the dropdown menu as shown in the picture below Inspector Libraries No pictures in project s folder 2 Group the selected items 3 Right click on the frame design area to open the popup menu 4 Click on Add to library TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 130 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 5 Specify the library name and save it to the library Back One Ctrl4 PgDn d Forward One 3 Ctrl PgUp 4 To back Sh
68. dity 10 90 RH non condensing Continued TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 25 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com VPD 133 VPD 133N Coming soon CPU 32 bit RISC CPU Memory Expansion 16 MB SDRAM 8 MB Flash Real Time Clock RTC Yes Buzzer Yes Rotary Switch 0 9 Yes One set of RS 485 including Self Tuner and Serial Port One set of RS 232 3 pin RS 485 including Self Tuner Ethernet RJ 45 x 1 10 100 Base TX USB 1 1 Client Firmware updates only LCD 3 5 TFT Resolution 240 x 320 x 16 defective pixels lt 3 Backlight Life 20 000 hours Brightness 270 cd m2 Touch Panel LED Indicator Yes aS Reset Button Yes Rubber Keypad 5 keys Programmable Power Input Range 12 48 VDC or PoE Power over Ethernet Power Consumption 2 W 83 mA 24 VDC or IEEE 802 3af Class 1 IO Expansion Bus Yes to mount one optional XV board TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 26 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com Dimension 103 mm W x103 mm L x 53mm H Ingress Protection Front Panel IP65 Installation DIN Rail Mount and Panel Mount Operating Temperature 20 70 C Storage Temperature 30 80 C Ambient Relative Humidity 10 90 RH non condensing Touch
69. 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 gWriteCount 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 Dls 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 DI1 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 13 Last Revised September 2012 Page 94 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com lt lt 1 1 lt lt 2 1 lt lt 3 1 lt lt 4 VAR_SET D0O1 v_do amp VAR_SET DO2 v_do amp VAR_SET DO8 v_do amp VAR_SET DO4 v_do amp else return HMI_ERROR J SSN A NN J END _FUNCTION_BLOCK this line is necessary Creating a User Defined I O Module la CAICPDASI
70. door of the greenhouse TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 12 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com a a i re Ethernet TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 13 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com In the hypermarket on the shelves In the factory on the steam chambers In the toilet And more TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 14 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 2 General Specifications The format of the model name for the TPD series is as follows g touch screen size communication interface EU for European 86 x 86 mm 28 2 8 inch For 2 8 inch Outlet Box 43 4 3 inch 0 RS 485 0U RS 485 USB 3 Ethernet For 4 3 inch and above 0 RS 485 USB RS 485 SEIFT including Self Tuner TPD 280U apie Resolution 240 x 320 x 16 Ethernet Suitable for TPD 430 the Outlet Box in i United States 16 MB SDRAM ni Resolution 10 30 Voc 8 MB Flash including Self Tuner 480 x 272 x 16 Suitable for the TPD 430 EU European 86 x 86 mm Outlet Box Image Storage Capacity strongly depends on the content and the size of images The number in the table shows how many images in full screen size can be stored on the device The for
71. dow Then press OK to save the file and leave TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 154 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com fo C ICPDAS HMIWorks_Standard Projects T PD280U 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 13 Last Revised September 2012 Page 155 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas 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
72. e The reference to a 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 Reference is higher than that of OnClick RefObject The reference to the specified object list An object list is a component that can be selected in the Toolbox to maintain a list of the elements of the library Refer to ObjectList section for details Ta 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 Whether the component is able to be seen or not 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 2 x Inspector Libraries cokes CEEE C Box inim CHEE E E Ennn EEE Ee E Custom colors 0
73. et 0nCreate 4 Framet 0nCreate 1 z 3 hmi_Beep l 4 5 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 103 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 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 frame OnCreate TouchPAD executes this OnCreate event handler of frame1 first OnShow TouchPAD adds all the widgets used in the frame1 after OnCreate is executed Then executes
74. etup Device option from the Run menu then click the Search TouchPad button in the displayed Setup Ethernet Device window to find the TouchPAD TPD 283 device on the network TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 46 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 2 Ifthe TouchPAD TPD 283 device is found and displayed in the list on the Search TouchPAD dialog box double click on the TouchPAD TPD 283 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 TPD 283 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 Me Setup Ethernet Device Search TouchPad Host Information PC Host IP Address S ASe
75. get pWidget strV alue 6 7 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 13 Last Revised September 2012 Page 153 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com usnprintf strValue sizeof strValue d IValue 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 win
76. ick HMI menu to use this feature TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 63 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 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 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 Designer run HMIWorks_Standard exe to create a new project first V New Virtual Tag and open Ladder Designer from the HMI menu 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 V Workspace Toolbox ee File ol Test hed H E Program SE Test Ids ei Connection lll Testh TCP AS 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 TouchPAD User Manual version 1 0 1
77. ick the IP setting button to configure the IP settings TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 146 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com a WON taN et QL gt 2 5 2 om Search Options Clear FIP setting J Help Exit valP Setting e ne dAlias Mask Recommend Settings TCP Broadcast 10 1 12050 AMMPETL 7050 Ethel 255 2 P TCPBroadCast 10 1 121 104 PET 7067 255 2 I fi01121105 TCP BroadCast 10 1 121 14 PET 7026 255 2 Mask 25525500 PITCP BroadCast 10 1 121 1 PET 7060 255 2 FI TCP BroadCast 10 1 1121 7188E2 255 2 Gateway 10 1 121 254 TCP BroadCast 10 1 0 117 ET 87PN 1 00 255 2 ee earch done gt ET7000 Web page Windows Internet Explorer 1 DAEMON pie Search ny Hv ow new yv gv 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 EC i MAC Address 0 d e0 64 9 70 a habia ad l Module Information C LJ Pair Connection Firmware Version V113 May 13 2009 C More Information OS Version V229 May 12 2009 DI channels 6 Do channels CC Alchannels 0 ao channels 0 Bre Ee fio 2 Creating a New Project Click the New option from the File menu and then select the Model specify the
78. ift PgDn PEN bi libra To front Shift PgUp Save group object to libra AISI Es i Group Ctrl 6G t Ungroup Ctrl U l Add to library Cut Ctrl X amp Copy Ctrl C Paste Ctrl V X Delete Ctrl Del Duplicate Ctrl D Note you can preview the library object in the library window and the size information of that library object is shown below N Inspector Libraries Pictures r AB hmd 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 131 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Eg Frame3 Test hwd GA File Edit View HMI Layout Arange Run Window Help Workspace Toolbox Inspector Libraries Bi C defaut v il Picture E Line Widget Ctrl 2 Sear 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 pa
79. ion B PET _70182_1_Al8 PET_70182_1_Al9 5 PET_ 70182_1_D00 PET_70162_1_D01 PET_ 0182_1_D02 PET_70182_1_D03 PET_70182_1_D04 5 PET_70182_1_D05 A 70182_1_F eee bak S Device dP PET 701 82_1 R PET_7018Z_1_Al0 Edit Device Edit IO Tag Delete Device ca AL amp Virtual O Folder_1 dP vi New Virtual Tag Folder Edit Virtual Tag Folder Delete Virtual Tag New Folder Next sections show the functions of these parts O Folder_1 di v2 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 61 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 5 2 The Options of TouchPAD Users can set the options of the TouchPAD in the file hmi_options h The file is located in C ICPDAS HMIWorks_Standard include directory where C ICPDAS HMIWorks_Standard is the installation directory The defines in the hmi_options h are the options for TouchPAD They are listed below Define Default Descriptions This is used to delay the system for a HMI _ STARTUP DELAY while before enabling the LCD backlight unit ms Normally the system will automatically refresh the watchdog timer And the system should be HMI WDT ENABLE rebooted only when a procedure is blocking the system for a period larger than the HMI_WDT_TIMEOUT value The timeout value to reboot Valid HMI_WDT_T
80. ks Ladder Designer Hie Edit E EE E i NE al EE 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 78 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com f HMI Works Ladder Designer File Edit a nn Browse arables Enter Constant Scope Global 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 E HMI Works Ladder Designer File Edit 2 F3 rigs oe e e O Fe ton gt i i y E Set v2 to in of Assign function in the same way Finally set v3 to the coil output TouchPAD User Manual version 1 0 13 Last Revised Septembe
81. l 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 4 Frames and Components This section introduces properties and 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 gt Arrow 1 Rectangle draw a rectangle 2 Ellipse draw ellipse 3 Text put string text on screen 4 Picture load an image file ona E frame Picture Line draw a line Rectangle Ellipse ii Line Widget YEZ TextPushButton create a button TextPushButtan Slider show or decide the 4 percentage BitButton BitButton create an image r faa button A ra HotSpot create a hot spot that can issue an OnClick event za CheckBox provide an alternative TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 96 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 6 Label provide a string that can be modified during the run time svete Timer Timer periodically execute codes PaintBox draw shapes in the run H Fant os time DbjectList ObjectList maintain a list of library objects which can be used through property RefObject of TextPushButton and CheckBox AN Important Notice 1 Make sure that widget component should not
82. l 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 finish the installation 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 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 FIG TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 42 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 4 2 1 Setup the TPD 280 devices Configuration mode Ge J Daa Outat GD VOC FG d l Config T in sti GO a as TPD 280 On the back panel of the TPD 280 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 EE Update Only This mode is used for updating programs The TPD 280 device uses the RS 485 network as its communication method It is not able to connect through the Ethernet network Select
83. ll Rights Reserved lt E mail service icpdas com 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 Click the Register Devices I O option from the HMI menu or press the F3 on your keyboard and then the Devices window is displayed Pe Devices me es TagName lOType Start ddress Default Value Comm D Al Device information 0 0 TouchPAD is iae ERG Al 1 0 Al 2 0 Device Series M 7000 x Al 3 a Connection CoM 7 Al 4 0 Al 5 0 Model Name M 70182 Select Al G 0 Device Name Dev_M_701 a2 Assign Al 7 0 NetID ft stst Al 8 i l Al 4 0 Timeout 200 ENABLE AI Virtual 0 1 TYPECODE_AI Virtual 0 8 JERROR Virtual 0 0 JENABLE_DEVICE Virtual 0 1 R_ACTION Virtual 0 1 w_ACTION Virtual 0 1 v gt Cancel Clear All Tags TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 56 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 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
84. llo TouchPAD 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 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 13 Last Revised September 2012 Page 157 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com step 3 Click on BitButton change Color Hello TouchPAD void BitButton20OnClick tWidget pWidget aa Ichange Text color to Red change Font CanvasTextColorSet 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 ICPD
85. lse eno 0 Div Division lf 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 ue Dec decrement EM end lf en 1 decrement in by 1 math in Else eno 0 Mod Modulo If en 1 math q in1 in2 and eno 1 Else eno 0 CTU Count Up End count gt value counter If en 1 Count up until End TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 68 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com During counting eno 0 When End eno 1 Else Reset count to 0 eno 0 Note the counting period depends on the number of rungs CTD Count Down End Count lt 0 lf 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 If en 1 Start the timer if not Stop the timer when End When timer runs eno 0 umes When End eno 1 Else Reset the timer eno 0 TOF Timer Off unit ms End elapsed gt DelayMS If en 1 Start the timer if not timer Stop the timer when End When timer runs eno 1 When End eno 0 Else TouchPAD User Manual version 1 0 13 Last Revised TouchPAD User Manual version 1 0 13 Last Revised September 2012s Page 69 2012 Page
86. mat of the model name for the VPD series is as follows VPD x x form factor display size Communication interface 1 103 x 103 mm Panel Mount 2 2 8 inch Display 0 RS 485 Rubber Keypad 2 182 x 158 mm Panel Mount 3 3 5 inch Display ON RS 485 VPD 130 Yes 16 MB SDRAM RS 232 RS 485 3 5 TFT VPD 130N 8 MB Flash including Self Tuner eae Yes Yes Front Panel IP65 12 48 Voc Image Storage Capacity strongly depends on the content and the size of images The number in the table shows how many images in full screen size can be stored on the device 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 15 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Master for ICP DAS I 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 2 1 TPD 28x Series In contrast to the TPD 28xU series TPD 28x series devices are not USB clients Besides wT 28x series does not have SDRAM Flash expansion Models TPD 280 TPD 283 uw TouchPAD User Manu
87. meters 7 segment display For now LED 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 HMIWorks HMIWorks satisfies most of the requirements with the WYSIWYG What You See Is What You Get design environment though part of widgets are not truly WYSIWYG 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 Supervisory Control and Data TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 8 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com 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 gt Mation Touch PAD 0 y i a y S f Rem
88. nent 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 13 Last Revised September 2012 Page 138 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com rram 1est nwd GA File Edit View HMI Layout Arange 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 r Framel Test hwd GA File Edit View HMI Layout Arange Run Window Help laj x Workspace Toolbox i bce wesc S Timer us 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 13 Last Revised September 2012 Page 139 Copyright 2012 ICP DAS Co
89. odes can be found TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 45 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 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 TPD 283 devices can be updated by a PC from the remote side through Ethernet Force While the application run on the TouchPAD device Yee 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 a atean TPD 283 uses Ethernet as its communication method It is not able to connect through RS 485 network since it doesn t have Default IP settings of the TPD 283 device Item Value eT Static IP The IP settings of a TPD 283 device can be classified in one of three types Type Description Static IP The TPD 283 device has a static unchangeable IP address DHCP The TPD 283 device is assigned an IP address from the DHCP server every time it is turned on reset Runtime The IP address for the TPD 283 device is left unassigned Setting 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 283 device 1 Click the S
90. only when AutoSize 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 encloses the Text TextAsimage True or False Whether the text is stored as an image or not If the text is treated as an 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 Then click on the button to open the Select Picture window to load a picture TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 106 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com m eee Inspector Libraries BS Picture v 2 3 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 AutoSize 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
91. ontact input Repeat the same procedure to associate v2 with the coil output TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 141 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Pa HMIWorks Ladder Designer ox File Edit ACATA El To 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 Velect 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 xi xi Inspector Libraries Inspector Libraries 23 CheckBoxWidget v 73 Labelwidget TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 142 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas 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 7
92. ote Monitor TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 9 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com Multi Display TouchPAD Anywhere TPD 280 W Computex Taipei 201 ICP DAS New Produ Leading Through Inn The Hit of Computex 126c wN 2010 6 30 4 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 10 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com Electrical Curtain Integration of Infrared appliances TPD 430 HMI TPD 430 HMI Power Management PM 3112 3114 Power Meter ony hie rot ot A l 3 03 Relay TPD 430 HMI TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 11 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 1 3 All Kinds of Situations 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 apartment building beside the In the exhibition hall beside the exhibits i D i Mad 2 Sep Jak In the office outside the meeting room In the farm in the front
93. pecify 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 C Portrait C Portrait Flap f Landscape G Landscape Flip 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 13 Last Revised September 2012 Page 144 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas 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 GA File Edit View HMI Lay Arrange Run Window Help Device 1 7066 as ee i 4 Z 1_7066_1_000 ZA _7066_1_D05
94. ptember 2012 Page 133 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 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 xj Inspector Libraries BoxSize 16 DisplayT ype TopLett OF FFFFF Font fo J 43 Name Checkbox Ox000000 ObjectList tabes Saat Frame1 A Framez Import Images to Library This option can also be accessed from the File menu 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 olx Output Files in Pictures library Note G r 1 Animation and transparence are not supported Skip existent files Overwrite 2 The Pictures library is actually saved in project s folder Note Now we support GIF JPG BMP ICO WMF EMF image formats TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 134 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 6 Making a Simple Project
95. r 2012 Page 79 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com E HMIWorks Ladder Designer File Edit EE A E E e FED en eno 1 out mfy 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 3 HMI Works Ladder Designer File Edit rot e E Feige s o OD 7 F rs gt lt gt 1 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 greater than or equal File Edit ee e Ejea sojo e ojej gt TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 80 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 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 E HMI Works Ladder Designer File Edit F2 4 F3 E reign sojo 7 Ol wi gt lt gt 1 o 5 Delete a function block in the rung
96. r details TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 162 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com
97. ress 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 program 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 13 Last Revised September 2012 Page 48 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com E Setup Ethernet Deg R Search TouchPad ER TER CS Device Runtime Information Device Nickname CPDAS222 R efresh Device MAC address 90 00 0 B2 00 0 TF Disable UDP fiter filter CSc DHCP Device IP address 101 0 1 fe M Downloading Information Device IP address 10 1 0 130 8 le L 4 ol Lo J ca Cancel 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 Touch
98. ription issoria firea 5 4 8 TextPushButton Fira 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 Unique Properties of TextPushButton properties description PressFillColor The color used to fill the TextPushButton when the TextPushButton is touched but not yet released 5 4 9 Slider ar N TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 109 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 2 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 Background TextColor 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 maximum value of the Position Min The minimum value of the Position The value where the slider locate between
99. rks Ladder Designer Eile Edit F2 JE F3 JE Feige F5 O OD e7 O F8 gt v2 v1 A m 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 HMI Works Ladder Designer File Edit F2 JE F3 JE F4 tac Fs Os FO e7 O Fe to a v1 E E 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 13 Last Revised September 2012 Page 75 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com E HMI Works Ladder Designer File Edit poe F3 3 Faia Oe ren e af e ooo o 6 Delete a contact input 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 HMI Works Ladder Designer File Edit F2 JE F3 JE Feige de OD F7 O F8 t Fo gt f v2 v1 Eg m E o o 7 Delete the rung Move the cursor to the starting point of the rung and then press Delete on your keyboard 5
100. rvice icpdas com PI IX Category PET 000 Connection Name Oo Assign name Device information Protocol TCPIP I 7 7 0 0 0 TEPIP eviceSeies O O lt v C M 7000 Connection PET 7000 Ces 10 0100 ModbusTCP Device Name M7000 Port jo eg 502 ModbusTCP Model Name PET 7000 NetID 1 Protocol fMIce Assign device name Verb search ok cance Import Template I 7000 Protocol UART Select Import Template Modules ini M 7000 Ma Devices Protocol UART M Device information erb S el e t Device Series i Sarat Imp or t Connection Device Name Mo dbus TCP ae Protocol MTCP erb Edit EE Import In details we have the following table Description This section keeps the list of the device series which HMIWorks 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 Sear
101. ry objects toggle when the state of the TextPushButton component or the CheckBox component changes Unique Properties of ObjectList properties description Objects The maintained library objects TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 119 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 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 Eg Framel Test7066 hwd GA File Edit View HMI Layou Workspace Toolbox H nge Run Window Help rere amp 7081000 o 1_7066_1_005 25 1_7066_1_006 25 _7066_1_ACTION A Virtual HM Works does the followings to build the relationships between the TouchPAD device and I O modules TouchPAD l 7066 BEGIN_FUNCTION_BLOCK BYTE v_do 0 10 hsf G 5 B 1 7066 1 5 17066 1_D01 if VAR_VALUE W_ACTION _7086_1_D02 7066 1_D03 if VAR_VALUE DOO v_do 1 lt lt 0 Ray 1_7066_1_D04 if VAR_VALUE DOT v_do 1 lt lt 1 1 if VAR_VALUE D02 v_do 1 lt lt 2 7066_1_DO6 if VAR_VALUE DO3 v_do 1 lt lt 3 R_ACTION 1 _7066_1_R_ACTION if VAR_VALUE D04 v_do 1 lt lt 4 W_ACTION 1 1_7066_1_W_ACTION R_VALUE
102. s 3 2 Dimensions TPD 280 TPD 280U unit mm TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 30 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 76 2 8 LCD Display 15 lt S H73 119 Left View Front View Right View Rear View Bottom View TPD 283 unit mm TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 31 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com J 119 Left View Front View Top View Right View Rear View 31 23 7 Bottom View TPD 430 TPD 430 EU unit mm TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 32 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Front View Right View E Top View Wall Mounting TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 33 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com Front View Right View e Top View Bottom View Wall Mounting TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 34 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com VPD 130 VPD 130N unit mm VPD 130 102 2 Left View Front View Right View Rear View Bottom View
103. ssign NetID 1 m Tine Fo Select I 70 Ed 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 O hsf in the directory HMIWorks install path bin Modules I 7000 I 7065 The codes in O 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 iWrite 0 To decide if there s a need to write any DO channel TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 93 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas 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 if iWrite Write only when need gWriteCount if dcon_WriteDO DEVICE NETID 5 v_
104. 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 for the To back option from the Arrange menu to make the selected object go down to the lowest level of the stack TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 122 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com To front 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 13 Last Revised September 2012 Page 123 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 5 5 2 Rotating and Flipping Edit Menu Edit lt Undo Ctrl Z Redo Shift Ctrl4 Z
105. t Revised September 2012 Page 87 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com iaaii Ex Arrange Run Window Help x Inspector Libraries default sd Po Frama F File Workspace a File E Test hwd Program BLight0 hwd CA Test ldx BLight1 hwd Connection S TestMTCP Tags B S Device EEN Light hw g LittleLightO pen0 hwd _7068_1_D00 LittleLightO pent hwd a jf Uoo_T_UU NewLight0 hwd v _7066_1_D02 Rhee Palett teed 25 _7066_1_D03 i x i 7066 1 p04 25 _7066_1_D05 z _7066_1_ 3 1_7066_1_D06 2 _7066_1_R_ACTION 3 1_7066_1_W_ACTION amp Virtual Output Erro ce ce ce ce F al a s nssy E TPD 2800 M Selected 0 Vi 2 The second method double click the widget on the frame design area to open the Select variable window Take a Slider for example Me Select variable Browse Variables Enter Constant Scope 7066 1 v Clear Tag P Name Comment O l Q _7066_1_p00 _7066_1_D02 _7066_1_D03 Mji _7066_1_D04 Mji_7066_1_D05 _7066_1_D0O6 _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
106. t changed users see only the images of the library objects toggles but do not see the original appearances of the TextPushButton component or the CheckBox component Add two library 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 3 ObxctList Cancel Double click on image list source to append insert ArowM H 0 Arow MAMAD own0 hwd V1 Arrow M AMA4D ownt hwd Click and drag a CheckBox component on the frame panel for TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 118 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com example Be sure to make the size of the CheckBox component 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 Inspector Libraries eza CheckBoxWidget Bos5ize 16 Display T ype TopLett Filllolor UxFFFFFF Font e A S a OxO00000 RetU bject Selected 6 Build and download the project You can see two images of the libra
107. t equal greater or equal less or equal assign function Category default math convert counter timer system user_define O NONOR WN 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 13 Last Revised September 2012 Page 84 Copyright 2012 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 D4 Somat OLE system ONE timer OOR Gpuser_define KOE 3 Category int I TrunetionNgne Disney Nene Capion Z convert counter timer gt system Jne Ss user_define not equa FIGE gt greater or equal SS e aaa fue lt n haarad 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 VVAR_VALUE S out VAR_VALUE
108. t 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 13 Last Revised September 2012 Page 53 Copyright 2012 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com O XXXXXX Rotary switch v waiting For connection is on the Plug in the USB cable back of Version 1 01 May 11 2011 TouchPAD 3 Rotary Switch set to 9 After resetting the above screen can be seen il Run gt Run F9 Download the program lt Rotary Switch set to 0 ila F Rendering Only Ctrl F5 Download Only Ctrl F9 Rendering and Bu Setup Device Console F10 a Updating OS through USB Except the TPD 280 and the TPD 283 devices all other devices in the TouchPAD series have an OS Operating System on them In cases that users may need to update OS we introduce the flow to do that You can find that an OS image file is in the following directory HMIWorks_ Install Path bin boot Device_Name MiniOS8 bin For example an OS image file
109. th of HMIWorks TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 132 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Supposed the installation path of HMIWorks is C ICPDAS HMIWorks_ Standard And we want to add a new folder named Test into the library window Then all we have the do is creating a new folder named Test in the directory of C ICPDAS HM 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 x z ixj Inspector Libraries Inspector Libraries default Test Group1 hwd Group2 hwd Group33 hwd Group5 hwd Object hwd Object2 hwd Object3 hwd RGB hwd snow2 hwd o e E The special Picture directory in the project directory Inspector Libraries Pictures 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 TouchPAD User Manual version 1 0 13 Last Revised Se
110. the OnShow So OnShow has widgets to use OnPaint whenever TouchPAD needs to paint its screen OnPaint is executed after OnShow when TouchPAD just switches to the frame1 When leaving the frame 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 104 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Unique Properties of Rectangle properties description BrushStyle The style used to fill to a rectangle 5 4 4 Ellipse EOD Enise Unique Properties of Ellipse properties description BrushStyle The style used to fill to an ellipse 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 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 105 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com 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
111. tomize the generated Code cccccceseeeeeees 161 A 8 How to store data in the flash cccecccecceseeeeseeeeeeeenees 162 AQ HOW TO Cleal aor lM BOK eor 162 TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 6 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas 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 feat
112. ts Remote_lO m 7000 m 7000 introduction htm TouchPAD User Manual version 1 0 13 Last Revised September 2012 Page 89 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail service icpdas com Where HMIWorks Put I O Module Information HM Works puts I O module information in the following locations CAICPDAS HM Works Standardabin Modules l 7000 1 7011 o E M 7000 ete 1O hsf l l 7067 Modules ini i 1 7000 ini some explanations for above figure C ICPDAS HMIWorks_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 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 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 13 Last Revised September 2012 Page 90 Copyright 2012 ICP DAS Co Ltd All Rights Reserved lt E mail se
113. ures for its respective target applications For the TPD series you can use an external wall box to help 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 13 Last Revised September 2012 Page 7 Copyright 2012 ICP DAS Co Ltd All Rights Reserved gt lt E mail service icpdas com eeeeee i PI 9 Gee gt Probably WYSIWYG What You See Is What You Get 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 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

Download Pdf Manuals

image

Related Search

Related Contents

Imperial 2120001TBE16 Installation Guide  ASUS GTX750-DCSL-2GD5 1 User's Manual  GIS Application User Manual - Office of Superintendent of Public  Xone2D user guide.pub - Loyola Audio Visual Systems  MANUEL D`UTILISATION  PDF(8887KB  消防予第474号 平成21年11月6日 各都道府県消防  

Copyright © All rights reserved.
Failed to retrieve file