Home

User Manual Advantech LogixView (WinCE)

image

Contents

1. User Manual Advantech LogixView WinCE AD ANTECH eAutomation Copyright The documentation and the software included with this product are copyrighted 2007 by Advantech Co Ltd All rights are reserved Advantech Co Ltd reserves the right to make improvements in the products described in this manual at any time without notice No part of this manual may be reproduced copied translated or transmitted in any form or by any means without the prior written permission of Advantech Co Ltd Information provided in this manual is intended to be accurate and reliable How ever Advantech Co Ltd assumes no responsibility for its use nor for any infringe ments of the rights of third parties which may result from its use Acknowledgements Intel and Pentium are trademarks of Intel Corporation Microsoft Windows and MS DOS are registered trademarks of Microsoft Corp All other product names or trademarks are properties of their respective owners Product Warranty 2 years Advantech warrants to you the original purchaser that each of its products will be free from defects in materials and workmanship for two years from the date of pur chase This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech or which have been subject to misuse abuse accident or improper installation Advantech assumes no liability under the terms of this warran
2. dio task will create a thread for handling the adamModbusDaq1 The property ThreadPriority is set to Normal You can change this value to let the thread has higher or lower priority Dag Thread Collection Editor day Thread 1 adamMod busDagql Thread Papi Normal E Design Mame dag Thread I CenerateMember True Modifiers Private Advantech LogixView User Manual 56 5 3 6 How to Start the AdamStudioTask To start the AdamStudioTask you have to write the code to start the task Simply just call adamStudioTask Start this for CSharp or adamStudioTask Start Me for VB NET on an event handler If you want to stop the task just call adamStu dio Stop to terminate the task pEusing System using s stem Collections Generic using svetem ComponenthWadel using Avstem Data using System Drawing using svetem Text using System Windows Forms 3 namespace HoldingRegistersample I public partial class Forml Form i public Formli i Initializgetomponenti I private void Forml Loadfobject sender EventArgs e call the StudioTask Start l function to start the work adamstudioTaskl start this h private void Forml Closingfobject sender CancelEventAres e call the StudioTask Stopi function to stop the work adam Lud 10 Task stop 1 l I I Now you can try to run this sample on your target machine if you have prepared your devices and the program has been built without err
3. DecimalPoint MajorTickCount Maximum Minimum Minor TickCount MeedleColor Registration Style TickColor Unit Value Remarks The dark color used to form the back color The color is applied from the bottom right corner of the control The light color used to form the back color The color is applied from the top left of the control The color center circle This property has no effect in WinCE ver sion The radius of the center circle This property has no effect in WinCE version The minimum decimal value change that will cause the control to redraw For example if the value is set to 1 the meter redraws the needle only when the difference between the previous value and current assign value is greater than or equal to 0 1 The major tick count of the meter The starting tick is not counted The value label only show at the major ticks The maximum number of the indicator The minimum number of the indicator The minor tick count of the meter The starting tick is not counted The color of the needle The registration code for the control The style of the meter The color of the tick label and value The unit string to be shown under the center of the needle The floating number indicates the needle value The value is between the Maximum and Minimum values You can find a sample on VB sample WindowsCE VB GraphicControl AdamMeterSample VC sample WindowsCE VC GraphicControl AdamMeterSamp
4. go to Build gt Rebuild Solution to build up the files Now you can deploy your program with related DLL files into target machine to run it 61 Advantech LogixView User Manual Advantech LogixView User Manual 62 Chapter 6 Troubleshooting 6 1 Troubleshooting Can my Advantech device run the program built with LogixView The LogixView is based on Visual Studio 2005 So the Microsoft NET Compact Framework must be version 2 0 or later The way to check the version of the Com pact Framework on your target device is to run the cgacutil exe under Windows directory You will see the version as following File Edit View Go Favorites amp 3 E x x Address Windows hl Name S cerdisp Ink 23 bytes Shortcut 7123 2007 6 08 PM is ceshell cil 213KB Application Extension 8 13 2007 1 41 AM ceshell dl 0404 mui SOKB MUI File 7123 2007 6 02 PM ta ceshell dll 0409 mui 66KB MIJI File S 13 2007 1 42 AM a ceshell di 804 mui 5SEB MUI File 71222007 6 02 PM is cetlkitl dll 6 50KB Application Extension 6 30 2004 8 00 PM is cetlstub dil 3 50KB Application Extension 6 30 2004 8 00 PM amp Bcetsc exe 82 5KB Application 8 13 2007 1 41 AM lam cetsc exe 0404 mui 33 5KB MUI File 8 13 2007 1 42 AM cetsc exe D409 mui 44KB MUI File 9 13 2007 1 42 AM a cetsc exe 0804 mui BI2007 1 42 AM SI cetsc Ink NET Gompact Framework DE Foo 8 00 PM _icg
5. on the bottom and check the Properties window You can see the properties of the data acquisition task for this sample Properties adamModbusDagl Advantech Graph AdamModbu lt E Communication Adam Llonmmunucaton adamSocketComponentl MaxPFadForReconnect 5 Mod busDatase cs Collection seeocaninterval 50 E Data DataTagPool adamDataTagPooll E Debug WithDebug Window False E Design Name alamModbusDagl Cenerate Member True Modifiers Private Name Indicates the name used in code to identify the object Click on the right arrow button of the AdamCommunication property you will see following window If there are more than one AdamCommunication components you can choose which component your DAQ needs In the sample the adamSocketComponent1 is using Properties x adambkodbusDagl Advantech Graph Adambodbu lt Mn 3I nc ket componenti Im MaxFailForReconnect none Mod busDatate gs adambocket_omponentl peggscenlnterval EI Data DataTagFool adamDataTagzPooll E Debug WithDe bug Window False E Design Name adamModbusDag l GenerateMember True Modifiers Private AdamCommunication The ddam Communication component Click on MaxFailForReconnect to modify maximum continue failure to make a reconnect Advantech LogixView User Manual 50 Click on the right dots button of the ModbusDataSegs property you will see follow ing window 1 The property ModbusT
6. AdamDataScalePool and AdamStu dioTask components This template is suitable for the using with ADAM 4000 and ADAM 5000 series running the Advantech ASCII protocol 2 ComModbus CS The project will create a form with AdamComComponent AdamModbusDaq AdamDataTagPool AdamDataScalePool and AdamStudio Task components This template is suitable for the using with ADAM 4000 and ADAM 5000 series running the MODBUS protocol 3 PacAdvantech CS The project will create a form with AdamControlCompo nent AdamAdvantechDaq AdamDataTagPool AdamDataScalePool and AdamStudio Task components This template is suitable for the using on Advan tech PAC series such as ADAM 5550 4 TcpModbus CS The project will create a form with AdamSocketComponent AdamModbusDaq AdamDataTagPool AdamDataScalePool and AdamStudio Task components This template is suitable for the using with ADAM 5000TCP and ADAM 6000 series running the MODBUS protocol If you are familiar with Visual Basic rather than the Visual C you can go to Visual Basic gt Advantech LogixView Smart Device and then do the same step as above o9 Advantech LogixView User Manual After you select one of the templates the project will be created as following 09 ComAdyantech_CS1 Microsoft Visual Studio File Edit View Project Build Debug Data Format Tools Window Community Help il i322 ld B X 22 dE p Debug ny CPU gt g om handle ARR Bl Oo rv Windows CE 5 0 Device va HH She
7. protocol used for communication depends on the DAQ component If users want to use MODBUS RTU protocol for ADAM 4000 series they have to choose the AdamModbusDaq component for data acquisition and AdamComCompo nent for communication If the Advantech ASCII protocol is used for the ADAM 4000 series they have to choose AdamAdvantechDaq component instead but still use the AdamComComponent for communication The following table is the properties for AdamComComponent Baudrate The baud rate for the serial communication Baud 110 for 110 bps Baud 300 for 300 bps Baud 600 for 600 bps Baud 1200 for 1200 bps Baud 2400 for 2400 bps Baud 4800 for 4800 bps Baud 9600 for 9600 bps Baud 14400 for 14400 bps Baud 19200 for 19200 bps Baud 38400 for 38400 bps Baud 56000 for 56000 bps Baud 57600 for 57600 bps Baud 115200 for 115200 bps Baud 128000 for 128000 bps Baud 256000 for 256000 bps Checksum This property 1s special for Advantech ASCII protocol Set to true if the checksum is using Otherwise set it to false Databits The data bits for the serial communication l Five for 5 data bits l S x for 6 data bits Seven for 7 data bits Eight for 8 data bits Parity The par ty for the serial communication None if characters do not have a parity bit l Odd 1f there are an odd number of 1s in the character l Even 1f there are an even number of 1s in the character Mark if the parity bit is always I l Space if the parity bit is always 0 P
8. the AdamAdvantechDaq component the details of Advantech protocol data to exchange Adam4000Type The ADAM 4000 module type for query data You can BN choose either ADAM 4000 type or ADAM 5000 type for data acquisition but not both Adam5000Type The ADAM 5000 module type for query data You can BE choose either ADAM 4000 type or ADAM 5000 type for data acquisition but not both AdvantechDataType The Advantech data type for query data The supported types AnalogInput AnalogOutput DigitalInput DigitalOutput Counter SlaveAddress he slave address used in the Advantech protocol This property works when the AdamComComponent is using SlotIndex The slot index for ADAM 5000 and ADAM 5550 series The starting address of data used in the Advantech protocol This value is based 0 TotalPoint The total point of data used in the Advantech protocol The us property is readonly 11 Advantech LogixView User Manual 2 10 AdvantechDataSegCollection Class The AdvantechDataSegCollection class 1s a collection of AdvantechDataSeg component Basically users will not use this class directly 2 11 AdamDaqBase The AdamDaqBase component is the base component for all data acquisition components in the LogixView Basically users will not use this component directly 2 12 AdamModbusDaq S AdambodbusDag The AdamModbusDaq is used for MODBUS protocol data acquisition The following table is the properties for AdamModbusDaa A
9. 000Type Non elatindex T E Advantech Common AdvantechDataTy AnalogOntput eave Address 1 atartdddrese T E Design rn th dub L TN L Mn tt Click on SegScanlnterval to modify the interval between each data segment Click on the right arrow button of the DataTagPool property you will see following window In this sample the adamData lagPool1 is using Properties i x adamAdvantechDagl Advantech oraph Adanuidy E Communication AdamCommunicahon adamComComponentl AdvantechLiatase g Collection SegscanInterval 50 E Data Data TagPool adamDataTazPooll n E Debug none WithDebug Window adsmb ata TagFooll E Design r H Mame adamAdvantechDagq1 Crenerate Member True Modifiers Private DataTazPool The AdamDataTagPool which contains the tags collection Advantech LogixView User Manual 42 Click on the left plus button of the DataTagPool property you will see following win dow The extended properties are for adamDataTagPool1 pj Communication Adami omumunication adamComComponentl 3 AdvantechDatase gs Collection segscaninterval 50 EI Data S DataTagPool adambDataTagPooll Mame adambDataTagPooll Data Tags Collection Generate Member Time Modifiers Private E Debug D WithDebugWmdow False Design v DataTagPonl The AdamDataTagPool which contains the tags collection Click on the right dots button of the DataTags pr
10. 2008 Advantech LogixView User Manual Il Technical Support and Assistance 1 Visit the Advantech web site at www advantech com support where you can find the latest information about the product 2 Contact your distributor sales representative or Advantech s customer service center for technical support if you need additional assistance Please have the following information ready before you call Product name and serial number Description of your peripheral attachments Description of your software operating system version application software etc A complete description of the problem The exact wording of any error messages Warnings Cautions and Notes Warning Warnings indicate conditions which if not observed can cause personal i injury Caution Cautions are included to help you avoid damaging hardware or losing data e g There is a danger of a new battery exploding if it is incorrectly installed Do not attempt to recharge force open or heat the battery Replace the battery only with the same or equivalent type recommended by the man ufacturer Discard used batteries according to the manufacturer s instructions Note Notes provide optional additional information Document Feedback To assist us in making improvements to this manual we would welcome comments and constructive criticism Please send all such in writing to support advan tech com Il Advantech LogixView User Manual Safety
11. Component qi AdamMotion E Adamlndicator AdamDataTagPool SF AdventechDataSeg 2 ModbusDataSeg SI A AdamControlComponent HE AdamTrend Xv AdamKnob Ge AdamSocketComponent EF AdamModbusDag Z AdamAdvantechDaq 4 AdamStudio Task All Device Controls K Pointer 777 BindingSource Button CheckBox ES ComboBox RE ContextMenu i DataGrid TA DateTimePicker 3 DomainUpDown lt gt HScrollBar mageLisi seamos sied e xoqpoo O 1ar0pdxg 191959 dam dvantechDagl adamDataTagPooll lt Ready BE 8 4 adamDataScalePooll da e E E 6 od Solution ComAdvantech CS1 1 project SA ComAdvantech CS1 Gd Properties H 3 References H E Forml cs Program cs E Solution E zi Cla SET 5 G m l Properties Pa Formi System Windows Forms Form a e 3 BackColor Control Font Arial 10pt ForeColor Bl Control Text FormBorderStyle FixedSingle Text Formi E Behavior AutoValidate EnablePreventFocusCT ContextMenu none Enabled True ToolBar none 3 Text The text contained in the control Actually the basic relations of all the components have been assigned when the project created So you can follow the step described in section 6 2 or section 6 3 to setup the components If you have another protocol rather than the one created to use you can drag and drop another set of AdamCommunication and AdamDaq components When every thing has been done
12. E Advantech LogixYiew A le Pointer 3 E AdamSwitch mi AdamDatatcalePool 9 AdamNumLed AdamLight aa ddam om Component g AdamMotion m AdemIndicator i AdamDataTagPool SOE AdvantechDatsseg Sb ModbusDataSeg QD AdamMeter qu Adami ontrolCompoenent HE AdamTrend 43 AdamEnob Co Adamsocket_lomponent AdambodbusDag HS AdamAdvantechDag SA AdamstudioTask All Device Controls Common Device Controls Device Containers Device Menus amp Toolbars HH E E 69 Advantech LogixView User Manual Why do I have a Trial word on my components Please check the below picture You can find the Registration attribute on the attribute dialog Please key in your serial number into the field The trial limitation will be released Analoginput sample adamSwitch3 Advantech Graph AdamSwite 266 154 Locked False Modifiers Private Registration Size 200 200 StretchImage False SwitchOfflmage L E SwitchOffString SwitchOnImage x SwitchOnStrng TabIndex 20 TabStop True Tag Text adamSwitch3 lt Advantech LogixView User Manual 70 71 Advantech LogixView User Manual AD ANTECH eAutomation www advantech com Please verify specifications before quoting This guide is intended for reference purposes only All product specifications are subject to change without notice No part of this publication may be reproduced in any form or by any means electronic photocopying recordin
13. ILI SLUT ob alt 53 2 dl og dalai Forml cs Design v X Solution Explorer Solution ComAdvantech I X a AREA Lar Solution ComAdventech_CS1 1 project SF ComAdvantech_CS1 H Sa Properties va References EE Forml es c Program cs saamog eper E xoq 00 45 xaxopdxq 191492 a Solution Explorer Z3 Class View Properties v I xX Formi System Windows Forms Form v TEIE E Appearance BackColor Gi Control Font Arial 10pt ForeColor Bl lt ontolText FormBorderStyle FixedSingle Text Formi EI Behavior Auto Validate EnablePreventFocusChan ContextMenu none Enabled True 3 Eih adamComComponentl F adam dvantechDagl adamDataTagPooll 10 1 adamDataScalePooll i The text contained in the control S adamStudioTaskl Creating project ComAdvantech CS1 project creation successful Go to the View Toolbox and click on it to bring up the toolbox 2 ComAdvantech_CS1 Microsoft Visual Studio File Edit View Project Build Debug Data Tools Window Community Help ilr hs gg ed i X Ga s I K Debug Au CPU gt a mbWithKey AGRA Windows CE 5 0 Device ivi i Lc E TETTE n X Solution Explorer Solution ComAd w X S r LogixYiew Ea m e E ES Si Rer 2 Solution ComAdvantech_CS1 1 project E E AdamSwitch 3 79 ComAdvantech CS1 S r AdamDataScalePool dj Properties ni O AdamHumbel Sj References AdemLight E Forml es o cf Program cs c D AdamComComp
14. Instructions 10 11 12 do 14 15 16 17 18 19 20 21 22 29 Read these safety instructions carefully Keep this User Manual for later reference Disconnect this equipment from any AC outlet before cleaning Use a damp cloth Do not use liquid or spray detergents for cleaning For plug in equipment the power outlet socket must be located near the equip ment and must be easily accessible Keep this equipment away from humidity Put this equipment on a reliable surface during installation Dropping it or letting it fall may cause damage The openings on the enclosure are for air convection Protect the equipment from overheating DO NOT COVER THE OPENINGS Make sure the voltage of the power source is correct before connecting the equipment to the power outlet Position the power cord so that people cannot step on it Do not place anything over the power cord All cautions and warnings on the equipment should be noted If the equipment is not used for a long time disconnect it from the power source to avoid damage by transient overvoltage Never pour any liquid into an opening This may cause fire or electrical shock Never open the equipment For safety reasons the equipment should be opened only by qualified service personnel If one of the following situations arises get the equipment checked by service personnel The power cord or plug is damaged Liquid has penetrated into the equipme
15. OM port is opened THEN IF dataSegment writeIndex has dataTags with write mode THEN FOR each dataTag that has write mode in current daraSegment CALL FetchData with dataTag IF FetchData is true THEN CALL SetValue to write segment value to device ENDIF ENDFOR ENDIF IF writeIndex equals to the total of dataSegment SET writeIndex to zero ELSE INCREMENT writeIndex ENDIF sleep 10 milliseconds INCREMENT sleepTotal by 10 IF dataSegment readIndex has dataTags with read mode THEN IF sleepTotal 1s greater or equals to segScanInterval SET sleepTotal to zero CALL GetValue to read segment values from device IF GetValue success THEN FOR each dataTag has read mode in current dataSegment CALL AssignData to pass data into the dataTag ENDFOR ENDIF IF readIndex equals to the total of dataSegment SET readIndex to zero ELSE INCREMENT readIndex ENDIF ENDIF ELSE IF readIndex equals to the total of dataSegment SET readIndex to zero 31 Advantech LogixView User Manual ELSE INCREMENT readIndex ENDIF ENDIF ELSE CALL OpenComPort IF OpenComPort failed THEN sleep 1 second ENDIF ENDIF END WHILE END 4 0 1 Pseudo code DaqThread with AdamSocketComponent FUNCTION DaqProcess BEGIN SET readIndex to zero SET writeIndex to zero SET sleepTotal to zero SET failTotal to zero WHILE true IF isRunning is false THEN IF Socket 1s connected THEN CALL Disconnect ENDIF EXIT ENDIF IF Socket is connected THEN IF dataSegment writeIndex has dataTags with writ
16. OMM ee RecvTimeout The time to wait when receives data from remote device The ReevTimeout v is millisecond SendTimeout The time to wait when sends data from remote device The is millisecond 2 5 AdamControlComponent Component ap AdamContolComponent The AdamControlComponent is used for PAC devices Users who want to use ADAM 55550 series for data acquisition need to use this component 2 6 DataSegmentBase Component The DataSegmentBase component is the base component for all data segment components in the Logix View Basically users will not use this component directly Advantech LogixView User Manual 10 2 7 ModbusDataSeg Component The ModbusDataSeg component is used to tell the AdamModbusDaq component the details of MODBUS data to exchange ModbusDataType The MODBUS data type for query data CoilStatus for reading or writing coil status InputStatus for reading input status InputRegister for reading input register l HoldingRegister for reading or writing holding register SlaveAddress The slave address used in the MODBUS Jacket StartAddress The starting address of data used in the MODBUS packet TotalPoint The total point of data used in the MODBUS packet 2 8 ModbusDataSegCollection Class The ModbusDataSegCollection class is a collection of ModbusDataSeg component Basically users will not use this class directly 2 9 AdvantechDataSeg Component The AdvantechDataSeg component is used to tell
17. SegmentBase Component i 10 ModbusDataSeg Component nenne 11 ModbusDataSegOollection ClaSS 11 AdvantechDataSeg Component eee 11 AdvantechDataSegOollection Class 12 PRO ANID ACIS AS 6 Leren 12 AdaMMOdDUSDH 12 AdamAdvantecnDaq e 13 Data lag COMPOMCIM E 14 DataTagCollection ClaSS 15 AdambDataTagPool Component eee eee 15 DataScale Component iii 15 DataScaleCollection ClaSSs 15 AdamDataScalePool Component eee 15 Dao Thread Component ii 16 DagThreadCollection Class cece eeseeeeseesaeeeseeesaeeeaaes 16 Graphic Controls 17 MOUGNO NE TRO NERE EN 18 Adam umeed 18 Po reale i 19 PER ee 20 AdamindicatOf REE EE EN ENE 21 AdamMeter ii 22 AMICI iure 23 AdamKhob Je 24 AAMO 25 Other Supported Visual Studio Controls 26 Working Theory 27 BUTE OC e M ease erento a ct ed bi tienda P 28 4 1 1 Working Sequence Diagrams ee eee e 28 Figure 4 1 Diagram 1 1 28 Figure 4 2 Diagram 1 2 29 Figure 4 3 Diagram 1 3 eee 30 Reaction TIMING ea 30 4 2 1 Pseudo Code DaqThread with ADAMComComponent 31 V Advantech Log
18. Task Stopi function to stop the work adamstudiolaskl top 1 I I I Now you can try to run this sample on your target machine if you have prepared your devices and the program has been built without error File Edit View Go Favorites gt 2 xQ Ge M x Address HardDisk2 LogicTest v Name Size Type Date Modified P Ada AnalogOutput sample S Application 8 30 2007 10 20 AM Ada Application 8 30 2007 11 04 AM ada Data Application 8 30 2007 10 52 AM Ada Application 8 30 2007 11 03 AM Adar Channel 0 x ada ada Cada gt Adva G Seg s m M o nn n n 8 Adv AnaloginputSample exe 10 5KB 10 5KB Adam4024 read 40 True FYDigitallnputSample exe 10KB Adam4024 read AO True DigitaloutputSample exe 11KB Adam4024 read AO True FYInputStatusSample exe 12KB I XrossOne Drawing dll 89KB Application Extension 9 6 2007 2 57 PM a Start C LogicTest DebugDAQ COM1 analogoutput sample RALES 2 57 PM Advantech LogixView User Manual 48 5 3 9 3 1 AdamModbusDaq Walkthrough Open WindowsCE VC Modbus T CP HoldingRegisterSample HoldingRegisterSam ple sIn under Samples directory using the Visual Studio 2005 Open the form designer of the Form1 cs 2 HoldingRegisterSample Microsoft Visual Studio File Edit View Project Build Debug Data Format Tools Window Community Help ly i BF ld 8B 4 b Debug Any CPU g m
19. acutil e Microsoft R NET Compact Framework P 007 7 26 AM chajeiim d 2 0 7045 0 B 2007 1 30 AM ka close 2bp 1 2004 8 00 PM close wa Wave Sound 02004 8 00 PM HE crnd exe S6KB Application S 13 2007 1 41 AM fs cmd exe 0404 mui 14KB MUI File 3 13 2007 1 42 AM cmd exe D409 mui 25 5kB MUI File 9 13 2007 1 42 AM fs crnd exe 0804 mui 13 5KB MUI File S 13 2007 1 42 AM s cmd Ink 19 bytes Shortcut 6 30 2004 5 00 PM is comi 6550 cll 22KB Application Extension 89 13 2007 1 30 AM is com 16x50 dli 23KE Application Extension 7 23 2007 6 02 PM is commctrl dil 321KB Application Extension 8 13 2007 1 41 AM kal cormmctrl dil 0404 rui 50 5KB MUI File 8 13 2007 1 42 AM fa commictrl dll 0409 mui 50 5KB MU File S 13 2007 1 42 AM lam commitrl dl 0804 mui 50 5KB MUI File 8 13 2007 1 42 AM is commalg dll 47EB Application Extension 98 13 2007 1 41 AM si commdlg dil 0404 mui A50KB MU File 8 13 2007 1 42 AM aal rarndla All nana rm ii Q SER MI T File 2412 2007 1 42 AM eU Start 3 Windows NET Compact Framework R LL 3 5 33 PM Why does my program get an exception when OnDataTagUpdated is applied For example there are two tags named dataTag1 and dataTag2 and you want to sum up these two values and show the result on a TextBox control name textBox1 Normally you will write the code as below C private void dataTag2 DataTagUpdated object sender EventArgs e float fVal fVal dataTag1 RawFl
20. anual 3 10 Other Supported Visual Studio Controls TextBox DataRead Label DataRead ProgressBar DataRead RadioButton DataReadWrite CheckBox DataReadWrite TrackBar DataReadWrite of 2 eS Advantech LogixView User Manual 26 Chapter 4 Working Theory 4 1 Introdcution The following sequence diagram shows the working flow of all the Logix View controls and components 4 1 1 Working Sequence Diagrams new Thread Start Adam Da3 DagProc P NT m m um m Adam Dag StopDag Figure 4 1 Diagram 1 1 Advantech LogixView User Manual 28 Adam Dagq Adamt ommunication i E SeeD Ll fe NE oe te SETE FE 1 AdamCommurication Open or Admi ommmunication Connect I 111 x DE x x xk x Dx mx x M i n Increase ReadIndex Figure 4 2 Diagram 1 2 29 Advantech LogixView User Manual 4 2 Advantech LogixView User Manual S lol Reaction Timing Figure 4 3 Diagram 1 3 30 The following pseudo code shows the process for a single DAQThread The words with red color are the main time consumption points This will help the programmer to predict the activity of each DAQ 4 2 1 Pseudo Code DaqThread with ADAMComComponent FUNCTION DaqProcess BEGIN SET readIndex to zero SET writeIndex to zero SET sleepTotal to zero WHILE true IF isRunning is false THEN IF COM port is opened THEN CALL CloseComPort ENDIF EXIT ENDIF IF C
21. ask List LCN Ctrl T Toolbox Chb Alt X Find Results Other Windows Toolbars Full Screen aT A lt Ernter Properties BackColor Control 3 Font Arial 10pt E ForeColor a ControlText FoomBorders tle Fined single AnalogOutput sample E Behavior AutoValidate EnableFreventFocushan Contextkennu none bas hlad QM SG Text The text contained in the control When the form design window is shown on the menu go to View gt Toolbox Then you will see the Toolbox On the Advantech LogixView tab you can see the LogixView related controls and components To use the controls or component sim ply just drag it and drop into the form 37 Advantech LogixView User Manual Advantech LogixView E AdamBwitch ma AdamDatsscalePnol 9 2damNumLed idamLight A ddam Com Component 3 g AdamMotion B AdamIndicator AdamDataTagPool ob AdvantechDatabeg 2 ModbusDatafeg ap ddam ontol Component HE AdamTrend d AdamEnob ip Adamsocket_omponent amp AdambodbusDag E AdamAdvantechDag sad AdamStudio Task All Device Controls he Pointer LAI Bindinggource Button CheckBox Es ComboBox Ce ContextMenu EI DataGrid Date TimePicker 3 Doman pDown lt gt H erollBar saam BEN per SOQ TOOT g Japik rsAras EL To build the sample go to Build gt Rebuild Solution then the executable file will be generated into the bin directory under the sample Build Debug Data Tools Wind Build Solution C
22. at value to the tag s output buffer If data scaling 1s applied for this tag and the passed in data is float the value be scaled and then store in buffer The data segment will fetch the data and output it to the device Advantech LogixView User Manual 14 2 15 2 16 2 17 2 18 2 19 DataTagCollection Class The DataTagCollection class is a collection of DataTag component Basically users will not use this class directly AdamDataTagPool Component d AdamDataTagPool The AdamDataTagPool contains a property called DataTags that 1s a collection of DataTag component The pool has no information about the data segment In other word the pool can contain DataTags that belong to different data segments The following table 1s the properties for AdamDataTagPool DataTags The collection of DataTag component DataScale Component The DataScale component deals with the data scaling The maximum value of the data source from DataSegment The minimum value of the data source from DataSegment TargetMax The maximum value of the target data to be assigned in Datalag TargetMin The maximum value of the minimum data to be assigned in Data Tag DataScaleCollection Class The DataScaleCollection class is a collection of DataScale component Basically users will not use this class directly AdamDataScalePool Component mai AdamDatsScalePonl The AdamScalePool contains a property called DataScales that is a collect
23. ate analog value by adjusting the needle The follow ing table is the properties for AdamKnob Property Remarks BackDarkColor The dark color used to form the back color The color is applied from the top left corner of the control BackLightColor The light color used to form the back color The color is applied from the bottom right of the control DecimalPoint The minimum decimal value change that will cause the control to fire event For example if the value is set to 1 the knob fires the ValueChanged event only when the difference between the previ ous value and current value is greater than or equal to 0 1 The supported value is between 0 and 3 MajorTickCount The major tick count of the meter The starting tick is not counted The value label only show at the major ticks Maximum The maximum number of the indicator Minimum The minimum number of the indicator MinorTickCount The minor tick count of the meter The starting tick is not counted MeedleColor The color of the needle Registration The registration code for the control TickColor The color of the tick label and value Unit The unit string to be shown under the knob Value The floating number indicates the needle value The value is between the Maximum and Minimum values You can find a sample on VB sample WindowsCE VB GraphicControl AdamKnobSample VC sample WindowsCE VC GraphicControl AdamKnobSample Adamknob sample Advantech L
24. ble is the properties for AdamIndicator Property GapWidth IndicateType IndicatorOffColor IndicatorOnColor LineWidth Maximum Minimum MinimumBase Orientation Registration Shape Value Remarks The gap in pixel between indicator bars The bar type of the indicator The supported values are Continuous Indicative The bar color when nothing display The bar color when bar display The width of the bar line if the orientation is vertical The maximum number of the indicator The minimum number of the indicator The base that minimum value start from The supported values are BottomLeft TopRight The orientation of the indicator The supported values are Vertical Horizontal The registration code for the control The shape of the indicator The supported values are Rectangle Triangle The floating number indicates the progress or quantity of the indi cator The value is between the Maximum and Minimum values You can find a sample on VB sample WindowsCE V B GraphicControl AdamIndicatorSample VCH sample WindowsCE VC GraphicControl AdamIndicatorSample CE Adamindicator sample Horizontal D x ct C tu 21 Advantech LogixView User Manual 3 6 Advantech LogixView User Manual AdamMeter GB AdamMeter The AdamMeter is used to display the analog value by the needle The following table is the properties for AdamMeter Property BackDarkColor BackLightColor CenterColor CenterWidth
25. cke Component Class Adami onmimuncshonBase DataTag x Class Commonent DataTagCollecton E Class CollechonB aze AdamDataTagfool Class Commonent AdamCommunmcahonBase Class Component Pi AdamComComponent G Class Adan orninmcshonB ase DataScale E Class Commonent DataScaleCollection E i Class ClollectonBsse AdamDataScalePool lass Component AdamContolComp Y Class Adan onmumcshionBsse Dag Thread x Class Conmonent Dag ThreadColleclinn Class Collection ase AdamStudinTaxk Class Component AdvantechDataType Enum amp dvantechDabSegCollecton AdamModbuDey Y AdamAdvantechDaq Class ee AdamDeoBase Didana aze f DataSegmenfBase SI Class Cormvonent 7 Mod busDataSeg E AdvantechDataSez lass Class Lala zez rren P aze DetaSerrrentBase ModbusDataSegCollection Y E Class Collection Base Collection Base 2 2 AdamCommunicationBase Component The AdamCommunicationBase component is the base component for all communi cation components in the LogixView Basically users will not use this component directly Advantech LogixView User Manual 2 3 AdamCom Component EM ddam om omponent The AdamCom Component is used for serial port communication Users who want to use ADAM 4000 4100 5000 series needs to use this component for serial communi cation The
26. d for MODBUS data acquisition The supported communication components are I AdamComComponent for MODBUS RTU on serial communication AdamSocketComponent for MODBUS TCP on Ethernet communication AdvantechDataSegs A reference of AdvantechDataSegCollection This is a collection of AdvantechDataSeg component The AdamAdvantechDaq component will continuously scan every AdvantechDataSeg that is in this collection scanning Set to true to enable the debug window popup at runtime Otherwise set to false DataTagPool A reference of AdamDataTagPool component The AdamDataTagPool component contains a property Data Tags that is a collection of DataTag component The AdamModbusDaq component uses ModbusDataSegs to collect data from devices After the data 1s received the DataTagPool will be applied to see which DataTag belongs to the current ModbusDataSeg Then the data will be dispatched to all DataTags related to the ModbusDataSeg 13 Advantech LogixView User Manual 2 14 DataTag Component The DataTag component deals with the data between the DAQ components and graphic controls The following table is the properties for Data Tag DataSegment A reference of data segment component that 1s inherited NE from DataSegmentBase This property indicates the data DataMode The data exchange mode The supported modes are DataRead for only reading data from DataSegment Data Write for only writing data to DataSegment DataReadWrite for reading
27. damCommunication A reference of communication component used for MODBUS data acquisition The supported communication components are AdamComComponent for MODBUS RTU on serial communication AdamSocketComponent for MODBUS TCP on Ethernet communication sad gt maximum continuous failures before reconnecting Any success of communication will reset the failure count ModbusDataSegs A reference of ModbusDataSegCollection This 1s a collection of ModbusDataSeg component The AdamModbusDaq component will continuously scan every ModbusDataSeg that is in this collection SegScanInterval The interval from the end of this scanning to the start of next scanning Set to true to enable the debug window popup at runtime Otherwise set to false DataTagPool A reference of AdamDataTagPool component The AdamDataTagPool component contains a property DataTags that is a collection of DataTag component The AdamModbusDaq component uses ModbusDataSegs to collect data from devices After the data is received the DataTagPool will be applied to see which DataTag belongs to the current ModbusDataSeg Then the data will be dispatched to all DataTags related to the ModbusDataSeg Advantech LogixView User Manual 12 2 13 AdamAdvantechDaq P AdamAdvantechDag The AdamAdvantechDaq is used for Advantech protocol data acquisition The following table 1s the properties for AdamAdvantechDaq AdamCommunication A reference of communication component use
28. e Advantech LogixView User Manual 16 Chapter 3 Graphic Controls 3 1 3 2 Introduction The LogixView offers several graphic controls for user to develop the GUI graphic user interface This section will describe each control in details The following picture shows the controls and some enumeration used for the controls Control Draw Type E Shape E Combo Conte Control ValueChangedEve LighiStyle E Enum Enurn Lelezate Enum AdamTreni Gm Min AdamEnob EV AdamLight F Class Class Class Class Control Control Control Contol AdamMeker D AdamHumLlel AdamSwikh Di f AdanMotim F Class Class Class Class AdamNumLed 3 2damNumLed The AdamNumLed is used to display a LED like number The acceptable characters that can be displayed is number 0 9 minus sign dot and colon So the data can be displayed will be integer floating number and time The following table is the properties for AdamNumLed Property Remarks BackDarkColor The dark color used to form the back color The color is applied from the top and bottom of the control BackLightColor The light color used to form the back color The color is applied from the horizontal center line of the control DigitCount The digit total for the control The number is between 1 and 10 Only the number character is counted The dot and colon are dis played between
29. e Boolean value indicates the light is ON or OFF You can find a sample on VB sample WindowsCE VB GraphicControl AdamLightSample VC sample WindowsCE VC GraphicControl AdamLightSample AdamtUight sample i Light Button 19 Advantech LogixView User Manual 3 4 AdamSwitch E AdamSwitch The AdamSwitch is used to display different images and strings to indicate ON or OFF status The following table is the properties for AdamSwitch Property Clickable Registration Stretchimage SwitchOfflmage SwitchOffString owitchOnlmage SwitchOnString Value Remarks Set to true the control will accept mouse click event and switch the control from ON to OFF or from OFF to ON The registration code for the control Set to true the image will be stretched into the whole control The image to be displayed when the switch is set to false The string to be displayed when the switch is set to false The image to be displayed when the switch is set to true The string to be displayed when the switch is set to true The Boolean value indicates the switch is ON or OFF You can find a sample on VB sample WindowsCE VB GraphicControl AdamSwitchSample VC sample WindowsCE VC GraphicControl AdamSwitchSample Advantech LogixView User Manual AdamSwitch sample 20 3 5 Adamindicator Adam ndicator The Adamlndicator is used to display the progress or quantity percentage The following ta
30. e mode THEN FOR each dataTag that has write mode in current daraSegment CALL FetchData with dataTag IF FetchData is true THEN CALL SetValue to write segment value to device IF SetValue success THEN SET failTotal to zero ELSE INCREMENT failTotal ENDIF ENDIF IF failTotal 1s greater than or equal to MaxFail THEN BREAK ENDIF ENDFOR IF fail Total is greater than or equal to Max Fail THEN CALL Disconnect CONTINUE ENDIF Advantech LogixView User Manual 32 ENDIF IF writelndex equals to the total of dataSegment SET writelndex to zero ELSE INCREMENT writelndex ENDIF sleep 10 milliseconds INCREMENT sleepTotal by 10 IF dataSegment readIndex has dataTags with read mode THEN IF sleepTotal is greater or equals to segScanInterval SET sleepTotal to zero CALL Get Value to read segment values from device IF Get Value success THEN FOR each dataTag has read mode in current dataSegment CALL AssignData to pass data into the dataTag ENDFOR ELSE INCREMENT failTotal IF failTotal is greater than or equal to MaxFail THEN CALL Disconnect CONTINUE ENDIF ENDIF IF readIndex equals to the total of dataSegment SET readIndex to zero ELSE INCREMENT readIndex ENDIF ENDIF ELSE IF readIndex equals to the total of datasegment SET readIndex to zero ELSE INCREMENT readIndex ENDIF ENDIF ELSE CALL Connect IF Connect failed THEN sleep 1 second ENDIF ENDIF END WHILE END 33 Advantech LogixView User Manual Advantech LogixView User Manual 34 C
31. ew User Manual Click on the left plus button of the DataTagPool property you will see following win dow The extended properties are for adamDataTagPool1 Z Communication ddam Communication adamSocketCompone1 3 HaxFailForkecomect 5 ModbusDatase os Collection ne gece nle rual 50 E Data S Data TagFool alambDataTagPooll Name adamDataTagPoo Data Tass Collection Generate Member True E Modifiers Private E Debug WithDebuge Window False 3 r3 Ebo rn DataTagPool The AdambDataTagPool which contains the tags collection Click on the right dots button of the DataTags property you will see following win dow On the left side there are three data tags On the right side are the properties for the dataTag4x0011M data tag 1 2 The property DataSegment is set to modbusDataSeg1 This value will tell the modbusDataSeg1 to dispatch data to this tag when data is queried The property DataMode is set to DataRead for this tag This means the tag will only read data from data segment The property DataScale is set to none which means no scaling is applied The property Startindex is set to 1 which is 1 based This means to read data from the first value of the data segment The property TotalPoint is set to 1 This means to read total 1 point from data segment starting from StartIndex The property DisplayDecimalPoint i
32. g Data Format Tools Window Community Help Gl 4 72 dg E gt gt Debug Any CPU gt g m handle Gd 9 m Eli Windows CE 5 0 Device X al p zn dul 2 it AL TNI TER jit Forml cs Formi cs Design E X Solution Explorer Solution AnalogQutputs w X SEES AnalogOutput sample 77 Solution AnalogOutputSample 1 project E PE AnalogOutputSample Su Sa Properties amp E Forml es E Program cs dxq 19192 aT oqpoo ot san aamos seq E Xi cu Solution Explorer Bg Class View Properties v I xX Formi System Windows Forms Form aly E Appearance BackColor Control Font Arial 10pt ForeColor Bl Control Text FormBorderstyle Fixed Single Text AnalogOutput sample E Behavior AutoValidate EnablePreventFocusChang ContextMenu none Enabled True T am m adamComComponentl F adamAdvantechDaql 2 adamDataTagPooll S adamStudio Task Text The text contained in the control 8 1 adamDataScalePooll Ready 39 Advantech LogixView User Manual 5 2 1 AdamCommunication Click the adamComComponent1 on the bottom and check the Properties window You can see the COM port setting for this sample If you have different setting for your target device modify them here Properties adamComComponenti Advantech Graph R d amc Daud ale Haud 9600 Checksum False Databits Eight Parity Hone Fort 1 Top bits One Timeout 100 Design Mame ada
33. g or otherwise without prior written permis sion of the publisher All brand and product names are trademarks or registered trademarks of their respective companies Advantech Co Ltd 2007
34. gs you will see following window 1 The property Adam4000Type is set to Adam4024 as we use ADAM 4024 as the analog output device If you want to use other analog output device such as ADAM 5024 on ADAM 5000E you have to set the Adam4000Type to Non and then select the Adam5000Type to Adam5024 and the SlotIndex set to the slot index which is zero based that the ADAM 5024 plug into The property AdvantechData Type is set to AnalogOutput for this sample If other data type is select for the analog output device the data acquisition will fail in the run time The property SlaveAddress is set to 1 for this sample If the slave address of the device you are using is set to other number just change the value here to match the real device ID The property StartAddress is set to 0 This value sets the starting address of all queried data to buffer In the AdvantechDataSeg this value can only be 0 for AnalogOutput data type The property TotalPoint is automatically set to a value depends on the device type and data type you choose For AnalogOutput data type this value is always 1 because the Advantech protocol for AnalogOutput only supports one channel data query at a time 41 Advantech LogixView User Manual AdvantechDataSeg Collection Editor Members advantechData egl Adam4000Type Adam4024 p Advantech ADAMS000 AdamS
35. handle Gd 9 m Don Ea Windows CE 5 0 Device ET VERE NONE i 2 d dd sib m Formi cs Design v Xx Solution Explorer Solution HoldingRegiste w I X LAATS Lar Solution HoldingRegisterSample 1 project J HoldingRegisterSample Modbus data Scaled data 4 Properties H va References E Forml cs ct Program cs a Solution Explorer Bg Class View Properties 4 x Formi System Windows Forms Formn Ej a E Appearance BackColor Control Font Arial 10pt F ForeColor Bl lt ontolText FormBorderStyle FixedSingle Text HoldingRegister samp E Behavior Auto Validate EnablePreventFocusChan v 5 C ehen dI ans banman Gi ademSocketComponenti Z adamModbusDagi adamDataTagPooll adamStudioTesk The text contained in the control 8 1 adamDataScalePooll Road AdamCommunication Click the AdamSocketComponent1 on the bottom and check the Properties win dow You can see the scoket setting for this sample If you have different setting for your target device modify them here Properties li x adamSocketComponentl Advantech Graph Adam AdamProtocolT ype Icp AdamseresType Adam6000 ConnectTimecut 2000 TP Address 10 0 0 1 Recy Timeout 1000 send Timeout 1000 E Design Mame adamSocketComponenti CenerateMember True Modifiers Private Name Indicates the name used in code to identify the object 49 Advantech LogixView User Manual 5 3 2 AdamModbusDaq Click the adamModbusDag1
36. hapter 5 Tutorials 5 1 Visual Studio 2005 Introduction From the windows menu go to Start gt Programs gt Advantech Automation gt Logix View gt VS2005 gt Samples you will find all the samples Before go on the samples the following sections are few hints to use the Visual Studio 2005 First of all find out the solution file for Visual Studio 2005 under the sample directory with the extention sin Double click on the file the Visual Studio 2005 will be launched On the IDE find the Solution Explorer On the Form1 cs right click the mouse and you will see a popup menu as below solution Explorer Solution 4nalozOutput e do DE Led solution Analo sOutputsample 1 project zi a nalo eutn nuz ample HH a Properties e References ES ES Fo es Fro BI View Code ay View Class Diagram Exclude From Project a Cut Cry Solution Expl Ga Copy Froperties Delete gt Formi cs File F Fename E Properties If you want to see the source code of the form click on the View Code If you want to see the form outlook click on the View Designer then you will see the form design window Forml cs Forml cs Design X M as I _ Forml cs Design vx A AnalogOutput sample Project AnalogQutputSample A gut F Summary Demonstrates how to read write the analog output data from to ADAM 4000 module Copyright C 2007 Advantech C
37. ion of DataScale component In the DataTag component there is a property called DataScale that 1s a reference of DataTag component from this pool The following table 1s the properties for AdamDataScalePool DataScales 1 Thecollection of DataScale component 15 Advantech LogixView User Manual 2 20 DaqThread Component 2 21 The DataThread component deals with the thread of data acquisition component Basically each data acquisition will has one DaqThread referring to it AdamDaq A reference of the data acquisition component If this property is set the thread associates with this DAQ will be created at run time ThreadPriorit The working priority of the thread DaqThreadCollection Class The DaqThreadCollection class 1s a collection of DaqThread component Basically users will not use this class directly 2 1 AdamStudioTask Component a Adam tudio Task The AdamStudioTask contains a property called DaqThreads that is a collection of DaqThread component In the DaqThread component there is a property called AdamDag that is a reference of the DAQ component that is inherited from AdamDaqBase Each DaqThread will create a thread at run time to perform the routine defined in the DAQ component The following table is the properties for AdamsStudioTask Property Remark O DaqThreads The collection of the DAQ component that 1s inherited from AdamDaqBas
38. ixView User Manual Chapter 5 5 1 5 2 5 3 5 4 Chapter 6 6 1 Tutorials eee eene OD Visual Studio 2005 Introduction 36 AdamAdvantechDaq Walkthrough eee eee 39 5 2 1 AdamCommunication i 40 5 2 2 AdamAdvantechDag e 40 5 23 AdamDataTagP OOl Luise endene 45 5 24 AdamDataScalePool 45 5 2 5 AdamStudioTask ricrea Y Eta X RE 47 5 2 6 How toStart the AdamStudioTask 48 AdamModbusDaq Walkthrough eee eee eee 49 5 3 1 AdamCommunication ee ee ee ee 49 5 3 2 AdamModbu usDag EE 50 5 3 3 AdamDataTagPool sese 54 5 3 4 AdamDataScalePool 54 Id ANN 56 5 3 6 How to Start the AdamsStudioTask sues 57 Creating a LogixView Solution i 58 0 4 1 Create project by template 58 Troubleshooting OG Troubleshooting EF Eia Run REG nada sdbEx eq Fn UR a ov Ren PR HL Rc RR Gd 64 Advantech LogixView User Manual vi Introduction amp Installation 1 1 Introduction The LogixView is newest software package for developing the graphic user interface for monitoring and controlling Advantech eAutomation products on WindowsCE based devices This package is based on Microsoft NET technology and used in Visual Studio 2005 environmen
39. le AdamMeter sample k m N n r H 22 3 7 Adam Trend HE AdamTrend The AdamMeter 1s used to display the analog value by the needle The following table is the properties for AdamMeter Remarks Property DrawType The drawing type of the line The supported values are GridBackColor Analog Digital The back color of the grid line surface GridColor GridLineSize The color of the grid line The gap between grid lines The unit is pixel MaximumY MinimumY The maximum value of Y axis The minimum value of Y axis PenOColor Pen1Color The color of Pen O The color of Pen 1 Pen2Color Pen3Color The color of Pen 2 The color of Pen 3 Pen4Color The color of Pen 4 Pen5Color Pen6Color The color of Pen 5 The color of Pen 6 Pen Color Registration The color of Pen 7 The registration code for the control StepSize The X axis movement on each update The unit is pixel HoriLabelOrientation The horizontal label orientation HoriLabelType VertLabelOrientation The horizontal label type The vertical label orientation VertLabelUnit The unit caption of the vertical label You can find a sample on VB sample WindowsCE VB GraphicControl AdamTrendSample VC sample WindowsCE VC GraphicControl AdamTrendSample 100 Colla 23 Advantech LogixView User Manual 3 8 AdamKnob d AdamEnob The AdamKnob is used to gener
40. mComComponenti GenerateMember True Modifiers Private Name Indicates the name used 1n code to identify the object 5 2 2 AdamAdvantechDaq Click the adamAdvantechDaq1 on the bottom and check the Properties window You can see the properties of the data acquisition task for this sample Properties adamAdvantechDagl Advantech Graph AdamAdyi lt E Communication Adamiommunicationn adamComComponentl AdvantechDatate gs Collection me g canlnterval 50 E Data DataTagPool adambDataTagPonll El Debug WithDebuge Window False EI Design Name adamAdvantechDag1 Crenerate Member True Modifiers Private Name Indicates the name used in code to identify the object Click on the right arrow button of the AdamCommunication property you will see following window If there are more than one AdamCommunication components you can choose which component your DAQ needs In the sample the adamComComponent1 is using Advantech LogixView User Manual 40 Properties 4 li x adamA AdwvantechDag1 ddvantech Graph AdamAdv BR Communication E A Am om omponent w AdvantechLatase gs none pe gocanintereal adan on Componenti D E Data DataTagFool adamDataTagPooll E Debug WithDebug Window False G Design Name adamAdvantechDagl CenerateMenber True Modifiers Private AdamCommunicahon The AdamConmumnication component Click on the right button of the AdvantechDataSe
41. nt The equipment has been exposed to moisture The equipment does not work well or you cannot get it to work according to the user s manual The equipment has been dropped and damaged The equipment has obvious signs of breakage DO NOT LEAVE THIS EQUIPMENT IN AN ENVIRONMENT WHERE THE STORAGE TEMPERATURE MAY GO BELOW 20 C 4 F OR ABOVE 60 C 140 F THIS COULD DAMAGE THE EQUIPMENT THE EQUIPMENT SHOULD BE IN A CONTROLLED ENVIRONMENT CAUTION DANGER OF EXPLOSION IF BATTERY IS INCORRECTLY REPLACED REPLACE ONLY WITH THE SAME OR EQUIVALENT TYPE RECOMMENDED BY THE MANUFACTURER DISCARD USED BATTERIES ACCORDING TO THE MANUFACTURER S INSTRUCTIONS The sound pressure level at the operator s position according to IEC 704 1 1982 is no more than 70 dB A DISCLAIMER This set of instructions is given according to IEC 704 1 Advantech disclaims all responsibility for the accuracy of any statements contained herein Advantech LogixView User Manual IV Contents Chapter Chapter Chapter Chapter 1 c rx N 3 4 2 Introduction amp Installation 1 MEAT 2 Installing LOGIX VOW sees ee ee ee eee 2 DAQ Components amp Classes 7 MOA p MENTRE EE T TE T 8 AdamCommunicationBase Component eee ee ee 8 AdamCom Component ii 9 AdamSocket Component ii 10 AdamControlComponent Component ee ee ee eee e 10 Data
42. nt Files Exit View Recent Projects Tool Window Communtv Help b Web Site File Colt Project From Existing Code LCH aH You will see the following dialog Hew Project Project types E Visual Basic je Windows Templates E Smart Device Advantech LogicView i Smart Device Visual C Le Windows d smart Device E Visual C c FULL The Location solution Name Com od hus Cha D Temp Com od hus Cha Create directory for solution Advantech LogixView User Manual 58 Browse Go to the Visual C gt Advantech LogixView gt Smart Device and click on it you will see the following window New Project Project types Templates lt Visual Basic Mv Templates Windows Pe a H emart Device S Com dvantech C3 S LomModbus CS ur S PacAdvantech CS 558 TepModbus C Li B v i eearch Online Templates K Advantech Logik View x G Visual C Windows K Smart Device Database starter Kite Advan View Sm 1 Visual 1 H Visual C E Other Project Types This template creates an Advantech Logi View project that uses the Advantech ASCII protocol through COM port Name Com dvantech Cha Loin solution Name Com dvantech Ces Create directory for solution You choose one of the following template to create your own project 1 ComAdvantech CS The project will create a form with AdamComComponent AdamAdvantechDaq AdamDataTagPool
43. oatData 0 dataTag2 RawFloatData 0 this textBox1 Text fVal ToString VB NET Private Sub DataTag2 DataTagUpdated ByVal sender As System Object ByVal e As System EventArgs Handles DataTag2 DataTagUpdated Dim fVal As Single fVal DataTag1 RawFloatData 0 DataTag2 RawFloatData 0 Me TextBox1 Text fVal ToString End Sub Advantech LogixView User Manual 64 However the OnDataTagUdated event is trigger in the DaqThread and the windows form control updating is not thread safe by using above code Alternatively you have to use a Delegate and the Beginlnvoke method to update the control in the safe way Cf delegate void SafeUpdateCallback string text private void dataTag2 DataTagUpdated object sender EventArgs e float fVal fVal dataTag1 RawFloatData 0 dataTag2 RawFloatData 0 this SafeUpdate fVal ToString private void SafeUpdate string text if this textBox1 InvokeRequired SafeUpdateCallback d new SafeUpdateCallback SafeUpdate this BeginInvoke d new object text else this textBox1 Text text VB NET Delegate Sub SafeUpdateCallback ByVal text As String Private Sub DataTag2 DataTagUpdated ByVal sender As System Object ByVal e As System EventArgs Handles DataTag2 DataTagUpdated Dim fVal As Single fVal DataTag1 RawFloatData 0 DataTag2 RawFloatData 0 Me SafeUpdate fVal ToString End Sub Private Sub SafeUpdate ByVal text As S
44. ogixView User Manual 24 AdamMotion g AdamMotion The AdamMotion is used to display a moving object on the background image The following table is the properties for AdamMotion Property Remarks Backgroundlmage The background image of the control DecimalPoint The minimum decimal value change that will cause the control to redraw For example if the value is set to 1 the motion redraws the object only when the difference between the previous value and current assign value is greater than or equal to 0 1 The sup ported value is between 0 and 3 Maximum The maximum number of the control Minimum The minimum number of the control Motionlmage The image of the moving object MotionlmageSize The size of the moving object The MotionImage will be stretched to the size MotionMaximum The location of the moving object when the Value equals to the Maximum MotionMinimum The location of the moving object when the Value equals to theMi nimum Registration The registration code for the control Stretchimage Set to true the background image will be stretched into the whole control Value The floating value is used to calculate the moving object location between the MotionMaximum and MotionMinimum AdamStudioTask You can find a sample on VB sample WindowsCE VB GraphicControl AdamMotionSample VC sample WindowsCE V C GraphicControl AdamMotionSample AdamMoation sample m m 25 Advantech LogixView User M
45. onent ei AdamMotion ti Bp AdamIndicator AdamDataTagPool E SOG AdvantechDataSeg 9 ModbusDataSeg 3 C AdamControlComponent HE AdamTrend Solution E Class View A Resource AdamK 9 pi Properties Ix Ge AdamSocketComponent se gem 5 AdamModbusDaq orml system ovs Forms Form v J AdamAdvantechDag BA ANS S AdamStudioTask E Appearance All Device Controls BackColor Control K Pointer Font Arial 10pt 777 BindingSource ForeColor Bl Control Text Button FormBorderStyle FixedSingle CheckBox Text l Formi j ComboBox A ee gai FE Context AutoValidate EnablePreventFocusCT a os ContextMenu none DataGrid Enabled True Bei amAdvantechDagi 2 adamDetaTagPooll Ei adamDataScalePooli gt vantec a 00 of ataScalePoo 3 DomainUpDown E Text The text contained in the control lt gt HScrollBar ail ImageList Ready Just drag and drop the controls into the form Click on the control and change the properties to match your need Advantech LogixView User Manual 60 9 Com Advantech CS1 Microsoft Visual Studio File Edit View Project Build Debug Data Tools Window Community Help v Any CPU da pe i 2 F H L e E ii MI gt Debug Windows CE 5 0 Device x br Toolbox va X n m bWithKev dj J id e X Solution Explorer Solution ComAd w X Advantech LogixView K Pointer E AdamSwitch fui AdamDataScalePoo S AdamNumLed AdamLight amp AdamCom
46. ooll Advantech Graph AdamData lt Datascales Collection Design Mame adambData amp caleFooll GenerateMember True Modifiers Private Name Indicates the name used in code to identify the object Click on the right dots button of the DataScales property 1 The property SourceMax is set to 10 This means the maximum value of the device data source is 10 2 The property SourceMin is set to 0 This means the minimum value of the device data source is O 3 The property TargetMax is set to 100 This means the maximum value of the window control data target is 100 4 The property TargetMin is set to 0 This means the minimum value of the window control data target is O 45 Advantech LogixView User Manual DataScale Collection Editor Members M TeckOut Oro o TrackOut 0T0100 Tr The reason for above setting is the TrackBar acts from 0 to 100 The moving of the trackbar will be converted to 0 to 10 volt for the analog output AnalogOutput sample Advantech LogixView User Manual 46 5 2 5 AdamStudioTask Click the AdamStudioTask1 on the bottom and check the Properties window Properties x adamStdioTaskl Advantech Graph AdamStudio Te lt Dag Threads Collection E Design Name adamStudio Task Crenerate Member True Modifiers Private Name Indicates the name used in code to identify the object Click on the right dots button of
47. operty you will see following win dow On the left side there are two data tags On the right side are the properties for the dataTagAO0ln data tag 1 2 The property DataSegment is set to advantechDataSeg1 This value will tell the advantechDataSeg1 to dispatch data to this tag when data is queried The property DataMode is set to DataRead for this tag This means the tag will only read data from data segment The property DataScale is set to none which means no scaling is applied The property Startindex is set to 1 which is 1 based This means to read data from the first value of the data segment The property TotalPoint is set to 1 This means to read total 1 point from data segment starting from StartIndex The property DisplayDecimalPoint is set to 3 This means the value will be displayed with three decimal points The property WinControl is set to textBoxAOO This means the value read from data segment will be displayed in the textBoxAOO control 43 Advantech LogixView User Manual DataTag Collection Editor Members dataTagA00In properties dataTagA00In dataTagAUO0Ont A EA E E Data Se zment Datase gment advantechDataze g HE Data Tag Datakfode DataR ead Datatcale none e tartindex 1 TotalFoint 1 EI Data WinControl DisplayDeconalPo 3 Wintontrol textBoxA00 Design EDEN J a T AAT
48. or File Edit View Go Favorites S xu B B n x Address HardDisk2 LogicTest v Name Size Type Date Modified P AdamindicatorSample exe 11 5KB Application 8 30 2007 10 20 AM EY AdamkKnobSample exe SKB Application 8 30 2007 11 04 AM P AdamLightSample exe 11 5KB Application 8 30 2007 10 52 AM P AdamMeterSample exe 8 50KB Application 8 30 2007 11 03 AM EY AdamMotionSample exe S3KB Application 8 30 2007 1 54 PM P Adam pplication 8 30 2007 11 17 AM pplication 8 30 2007 11 31 AM pplication 8 30 2007 11 44 AM pplication Extension 9 6 2007 2 57 PM ppli a LK JE m m am o_o n Modbus data Scaled data a 40011 1024 2 501 n s Lu negister 1 read True i ppl HoldingRegister 11 1 read True eo c Pm ppliHoldingregister 11 1024 write True 89KB AppifHoldingRegister 11 1 read True jHoldingRegisterSample exe 11KB AppifHoldingregister 11 1 read True HoldingRegister 11 1 read True HoldingRegister 11 1 read True HoldingRegister 11 1 read True a Start LogicTest DebugDAQ 10 0 0 24 HoldingRegister sample ROLLE 5 4 35 PM of Advantech LogixView User Manual 5 4 Creating a LogixView Solution You can go through following steps to create your own solution by using the Visual Studio 2005 with Advantech LogixView 5 4 1 Create project by template On the Visual Studio 2005 menu go to File gt New gt Project and click it File Edit Rece
49. or writing data from or to the DataSegment DataScale A reference of DataScale component If the data type in the DataSegment is single or integer this property will be applied for data scaling If this property 1s not assigned then raw data will not be scaled StartIndex The start index for retrieving data from DataSegment This property is based 1 TotalPoint The total data point to get from the DataSegment DisplayDecimalPoint The decimal point to display if the data 1s going to be assigned into a text related control WinControl A reference of windows control The data received will be applied into the windows control depending on the character of the control If the DataTag is in DataWrite mode the value changed in the windows control will be sent to the related DataSegment If you intend to use a tag to read data without the relation to a window control you can use following event to handle it OnDataTagUpdated When data segment updates the data tag this event will be trigger You can use one of the following properties to get the values depending on the data type of the data segment Use RawBoolData to get Boolean data array Use RawFloatData to get float data array I Use ScaledFloatData to get scaled data array If you intend to use the tag to write data without the relation to a window control you can use following method Force WriteData Call this function to pass a Boolean value or flo
50. orporation All rights reserved This source code is d o as a supplement to Advantech LogicView Development Tools and or on line documentation THIS CODE AND INF RMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND OR FITNESS FOR PARTICULAR PURPOSE La22222 22 2222 2 22 2 2 22 2 2 2 22 2 22 22 2 2 2 2 2 2 2 22 2 2 2 22 2 2 2 2 2 2 Busing System using System Collections Generic using System ComponentModel using System Data using System Text i using System Windows Forms Enamespace nalogQutputSample B public partial class Forml Form E public Forml InitializeComponent Bg private void Forml Load object sender Event res e sane M function to start the work Eh adamComComponentl g adamAdvantechDagi adamDeteTagPooll adamStudio Task vi 1 5 adamDataScalePooll You can click any controls on the form or any component on the bottom Go to View gt Properties Window you will see the properties and event for the control or compo nent Advantech LogixView User Manual 36 Project Build Debug Data Tools Code Designer Open Open With server Explorer CtrlH Alt solution Explorer Ctr A Tto T Bookmark Window LC E Ctrl VW Class View LHS aT Code Definition Window CLNY cur Object Browser Ctrl ilt Error List Ctr Ctrl E Output Ctrl Alt C E Properties Window T
51. ot The port number for the serial communication Stopbits The stop bits for the serial communication The supported stop bits are fessi im nm n p l One for 1 bit duration l OneAndHalf for 1 5 bit duration l Two for 2 bit duration Timeout The timeout for COM port reading and writing 9 Advantech LogixView User Manual 2 4 AdamSocket Component B Adambocketlomponent The AdamSocketComponent is used for Ethernet communication Users who want to use ADAM 5000TCP or ADAM 6000 series for data acquisition need to use this com ponent for ethernet communication The protocol used for the communication depends on the DAQ component is using If users want to use MODBUS TCP proto col for ADAM 6000 series they have to choose the AdamModbusDag component for data acquisition and the AdamSocketComponent for communication The following table is the properties for AdamComComponent AdamProtocolType The Ethernet protocol that 1s used for the communication The supported protocols are Tcp for connection oriented data communication Udp for connectionless data communication AdamSeriesType The ADAM series type for the communication Basically this property is used for ADAM series configuration For normal data acquisition this field has no effect v time to wait when connects to remote device The unit 19 millisecond IPAddress The IP address of the remote device Currently only the Ipv4 C
52. s set to 0 This means the value will be displayed with no decimal points Advantech LogixView User Manual 52 7 The property WinControl is set to textBox4x0011M This means the value read from data segment will be displayed in the textBox4x0011M control Data Tag Collection Editor Members Bal dataTag4x0011M dataTagdxJO11s 2 dataTagdxJ0110 In the sample dataTag4xU011M properties Ez E Data Segment Datase sment El Data Tag Daali 00 6 Datak ead L atascale none startindex 1 TotalFoint 1 E Data WinControl DisplayDecomalPo 0 Wintontrol textBox4x0011M E Design ST bm h mod busDataSe zl E x J3 2 F 43 41002 A T 1 The dataTag4x0011M is related to the textBox4x0011M to display the MOD BUS data 2 The datalag4x001S is related to the textBox4x0011S to display the scaled data 3 The dataTag4x00110 is related to the trackBar4x00110 to output data to device Click on the right arrow button of the WithDebugWindow property you will see fol lowing window The value is set to False for this sample You can change this value to True then a debug window will popup during run time Properties l x adlamModbusDagl Advantech Graph AdamModbu E Communication AdamComrmunucaton adamSocketComponenti MaxFailForReconnect 5 Mod busDatase gs Collection ne pcanIntereal 50 E Data DataTagFool adamDataTagPooll E Debug Wi
53. t The previous solution for Advantech NET solution is the Adam NET class library and it supplies several class libraries for accessing ADAM series product For those who want to use the Adam NET class library still have to write more code to make their programs run The LogixView is based on the Adam NET technology and offers more components for data acquisition Users can simply drag and drop the components into Visual Studio NET project and change the properties of the components to make their programs run as demands In other word users who use the LogixView no longer need to write code line by line for the data acquisition but concentrate on program logic and event handling In next few sec tions this document is going to introduce installation process the LogixView DAQ Data Acquisition components the graphic controls the working theory of the com ponents and controls and examples for applying LogixView package for building your programs in details 1 2 Installing LogixView Before install the Advantech LogixView please make sure the Microsoft Visual Studio 2005 is installed in the target machine To run the installation double click the installation file named LogixView for VS NET 2005 exe You will see the following window Advantech Logix View for YS NET 2005 InstallShield Wizard Preparing Setup Please wait while the InstallShield Wizard prepares the setup Advantech Logeiew Far WS NET 2005 Setup is preparing
54. tech Graph 2 0 0 Access Datasource B Language Invariant Language Invariant Country Version 2000 In the dialog box you must select the file Advantech Graph dll under Program Files Advantech LogixView v2 0 WindowsCE then click Open O DesignerMetadata 8 Ad vantech Adam dll E A dvantech Common dll Advantech Graph dll Advantech Protocol dll My Projects 5 XrossOne Drawing dll My Computer Lll gt Files of type Executables d I exe K You will see the LogixView controls and components are inserted into the list and highlighted Just click the OK button Advantech LogixView User Manual 68 Choose Toolbox Items NET Framework Components bysten Web OL WebControl system Web 2 0 0 0 Global de Advantech Graph Advantech Graph 2 0 0 AP ro gray Advantech Graph Advantech Graph 2 0 0 Progra Advantech Graph Advantech Graph 7 1 2 Advantech Graph Advantech Graph 2 0 0 Pro gray AdamContolCompon Advantech Graph Advantech Graph 2 0 0 Progra Adamlar Base i dvantech Graph Advantech Graph 2 0 0 Pro gray AdamDatascalePool Advantech Graph Advantech Graph 2 0 0 Pro era Adam dvantechDag g Language Invariant Language Invariant County Version 2 00 10 Retail You will see the LogixView controls and components are added into the toolbox Now you can drag and drop the controls or component into your form designer Toolbox
55. ted with an empty title and waits for your input See the red arrow in the picture You must type the name such as Advantech LogixView in the title Advantech LogixView User Manual 66 Toolbox Advantech LogixTiew All Device Controls Common Device Controls Device Containers Device Menus amp Toolbars Device Components Device Dialog K There are no usable controls im this group Drag an item onto this text to add it to the toolbox General Mouse right click on that tab you will the popup menu Mouse left click on the Choose Items then it may takes several second to load the dialog box List View show All Reset Toolbox Add Tab Delete Tab Rename Tab Move Up Move Down The popup dialog will show the NET component in a list as below Click on the Browse button 67 Advantech LogixView User Manual Choose Toolbox Items NET Framework Component COM Component Assembly Name ArccessData amp ource system Web OL Web Control myrete Web 2 00 07 AdamAdyvantechDag Advantech Graph Advantech Graph 2 00 AdamComComponent Advantech Graph Advantech Graph 2 00 AdamComComponent Advantech Graph Advantech Graph 7 1 2 AdamConumuucation Advantech Graph Advantech Graph 2 00 AdamContolCompon Advantech Graph Advantech Graph 2 00 AdamDag Base Advantech Graph Advantech Graph 2 00 AdamDatatcalePool Advantech Graph Advan
56. thDebug Window E Design Name Generate Member Modifiers WithDebug Window Whether to create the debug window when running the DAG 53 Advantech LogixView User Manual 5 3 3 AdamDataTagPool Click the adamDataTagPool1 on the bottom and check the Properties window You can see the properties of the data tag pool for this sample Click on the right dots button of the DataTags property you will see exactly the same window in previous section They are actually the same thing Properties ll x adamDataTagPooll Advantech Graph AdamDataTe FE AdamDataTazPool Data Tags Collection Design Mame adambataTagPooll Generate Member True Modifiers Private Name Indicates the name used in code to identify the object 5 3 4 AdamDataScalePool Click the adamDataScalePool1 on the bottom and check the Properties window You can see the properties of the data tag pool for this sample Properties Xx adamDataScalePooll Advantech Graph Ad amalga DataScales Collection Design Name adamDataScalePooll Generate Member Time Modifiers Private Name Indicates the name used in code to identify the object Advantech LogixView User Manual 54 Click on the right dots button of the DataScales property you will see following win dow 1 The property SourceMax is set to 4095 This means the maximum MODBUS value of the device data source is 4095 2 The property SourceMin is set
57. the DataThreads property you will see following window The property AdamDaq is set to adamAdvantechDag1 This mean the studio task will create a thread for handling the adamAdvantechDaq1 The property ThreadPriority is set to Normal You can change this value to let the thread has higher or lower priority Dag Thread Collection Editor Members dag Thread properties SER E Dag Thread Ad amla adamAdvantechDag1 ThreadFriorty Normal E Design Name dag Thread 1 CenerateMember True Modifiers Private 47 Advantech LogixView User Manual 5 2 6 How toStart the AdamStudioTask To start the AdamStudio Task you have to write the code to start the task Simply just call adamStudioTask Start this for CSharp or adamStudioTask Start Me for VB NET on an event handler If you want to stop the task just call adamStu dio Stop to terminate the task Busing system using System Collectiona Generic using System Componenthodel using system Data using system Drawing using system Text using System Windows Forms SF namespace nalorOutputgample i public partial class Forml Form i public Formlig i InitializeComponent I private void Forml Load object sender EventArgs e call the StudioTask Start function to start the work adamstudioTaskl start this I private void Forml Closingfobject sender CancelEvent rgs e ff call the Studio
58. the InstallShield Wizard which will guide vou through the rest of the setup process Please wait LLETTTETTTTTTTTTTTTTTTTITTTITTTTITTTN Advantech LogixView for VS NET 2005 InstallShield Wizard X PN Please close all the Visual Stadio 2005 before continue the installation oe a rer FT installshield Cancel The above message remind you shutdown all the instance of Visual Studio 2005 before continue the installation Please do so and then click OK to continue Advantech LogixView User Manual 2 r Advantech LogixYiew for YS HET 2005 InstallShield Wizard Welcome to the InstallShield Wizard for Advantech LogixYiew for YS NET 2005 The Install5hieldH Wizard will install Advantech LogixYiew for VR N E T 2005 on your computer To continue click Next InstallShield Netsi Cancel Just click the Next to continue ard E3 Advantech LogixView for YS NET 2005 1 Ready to Install the Program The wizard is ready to begin installation Click Install to begin the installation IF pou want to review ar change any of your installation settings click Back Click Cancel to exit the wizard Installstjel dme met 3 Advantech LogixView User Manual Jajdeun uonejejsu uononpoJiu p H A EN a 1 E p 2__TWO0 AMT L HIEIE A auier LogixYiew for YS NET 2005 n G STA W iza i CI Setup Status Advantech LogeVie
59. the digits and not counted LedOffColor The digit color when nothing display LedOnColor The digit color when digit display Line Width The line width in pixel used to draw the digit Registration Value The registration code for the control The value to display This property is a string If any character in the string is not acceptable the character will be skipped For example if the value is 23A56 only 2356 will be displayed You can find a sample on VB sample WindowsCE VB GraphicControl AdamNumLedSample VC sample WindowsCE V C GraphicControl AdamNumLedSample AdamNumted sample m Number IT ime um 625 23 Advantech LogixView User Manual 18 3 3 AdamLight AdamLight The AdamLight is used to display different colors to indicate ON or OFF status The following table is the properties for 1s the properties for AdamLight Property Remarks Clickable Set to true the control will accept mouse click event and switch the light from ON to OFF or from OFF to ON LightOffColor The light color when the value is false LightOffString The light string when the value is false LightOnColor The light color when the value is true LightOnString The light string when the value is true Registration The registration code for the control Style The outlook of the light The supported styles are Round Rectangle TriangleUp TriangleDown TriangleLeft TriangleRight Value Th
60. tl shifttB Rebuild Solution Deploy solution Clean Solution Rebuild Analo gt utputsample Deploy Analog utputtample Clean AnalogOutputtemple Batch Build Configuration Manager Advantech LogixView User Manual 38 5 2 If you want to run the sample you have to deploy all the DLL files and EXE file under the bin directory onto target machine The ways to deploy programs onto tar get machine are listed below 1 Use Null Modem cable to connect your machine s COM with the target machine s COM port Setup the ActiveSync to connect to target device Go to Build gt Deploy Solution and click on it Then the programs will be transferred onto target machine 2 Use Null Modem cable to connect your machine s COM with the target machine s COM port Setup the ActiveSync to connect to target device Go to windows explorer and click on the Mobile Device under My Computer Sim ply copy file onto target machine 3 If your machine and target machine are connected via LAN you can use Advantech DiagAnywhere utility to transfer files from your machine to target machine if it is an Advantech eAutomation product AdamAdvantechDaq Walkthrough Open WindowsCE VC AdvantechASCII AnalogOutputSample AnalogOutputSam ple sin under Samples directory using the Visual Studio 2005 Open the form designer of the Form1 cs 2 AnalogOutputSample Microsoft Visual Studio File Edit View Project Build Debu
61. to 0 This means the minimum MODBUS value of the device data source is O 3 The property TargetMax is set to 10 This means the maximum value of the window control data target is 10 4 The property TargetMin is set to 0 This means the minimum value of the window control data target is O DataScale Collection Editor Members Yovt Tall properties r i TrackOmut U To UU enureMax 4095 source Min 0 Targethlax 10 Targethtin 0 E Design Mame Y ont OTolD GenerateMember True Modifiers Private L OK JU Camel In the sample 1 The Vout_ 01010 is related to the textBox4x0011S to scale the MODBUS data to 0 10 volt 2 The TrackOut 010100 is related to the trackBar4x00110 to scale the track bar value from 0 100 to 0 4095 for output HoldingRegister sample Modbus data Scaled data 59 Advantech LogixView User Manual 5 3 5 AdamsStudioTask Click the adamStudioTask1 on the bottom and check the Properties window Properties l x alams tudio TasEl Advantech Graph AdamstudioTe lt Dag Thread Collection Design Name adamStudio Task GenerateMember True Modifiers Private Name Indicates the name used 1n code to identify the object Click on the right dots button of the DataThreads property you will see following window The property AdamDaq is set to adamModbusDaq1 This mean the stu
62. tring If Me TextBox1 InvokeRequired Then Dim d As New SafeUpdateCallback AddressOf SafeUpdate Me BeginInvoke d New Object text Else Me TextBox1 Text text End If End Sub 65 Advantech LogixView User Manual Why can t I find LogixView controls in the V82005 toolbox For some reason you may not see the LogixView controls in the VS2005 toolbox First of all make sure you have installed the LogixView properly You can check the following path Program Files Advantech LogixView v2 0 WindowsCE There should be five DLL files under the directory Advantech Adam dll Advantech Common dil Advantech Graph dll Advantech Protocol dll XrossOne Drawing dll Please follow the section 6 1 content to open an example solution and remain in the Designer page and make the toolbox shown Toolbox All Device Controls Common Device Controls Device Contamers Device Menus amp Toolbars Device Data Device Components Device Dialogs General H E E E IE E You should see the tabs as above picture If you cannot find a tab named Advan tech LogixView you may have missed the setting You still can add the LogixView controls manually Mouse right click on the toolbox you will see a popup menu as below List View show ADL Choose Items sort Items Alphabetically Reset Toolbox Delete Tab Eename Tab Move Up Move Down Mouse left click on the Add Tab you will see a new tab is crea
63. ty as a consequence of such events Because of Advantech s high quality control standards and rigorous testing most of our customers never need to use our repair service If an Advantech product is defec tive it will be repaired or replaced at no charge during the warranty period For out of warranty repairs you will be billed according to the cost of replacement materials service time and freight Please consult your dealer for more details If you think you have a defective product follow these steps 1 Collect all the information about the problem encountered For example CPU speed Advantech products used other hardware and software used etc Note anything abnormal and list any onscreen messages you get when the problem occurs 2 Call your dealer and describe the problem Please have your manual product and any helpful information readily available 3 f your product is diagnosed as defective obtain an RMA return merchandize authorization number from your dealer This allows us to process your return more quickly 4 Carefully pack the defective product a fully completed Repair and Replacement Order Card and a photocopy proof of purchase date such as your sales receipt in a shippable container A product returned without proof of the purchase date is not eligible for warranty service 5 Write the RMA number visibly on the outside of the package and ship it prepaid to your dealer Edition 1 Printed in Taiwan January
64. vi Click on the right arrow button of the WithDebugWindow property you will see fol lowing window The value is set to False for this sample You can change this value to True then a debug window will popup during run time Properties l Xx adamAdvantechDagl Advantech Graph A 0 amd dv lt prj Communication ddam Communication adamComComponentl AdvantechLiatase gs Collection pegscanlnternsal 50 E Data DataTagFool adamDataTazPooll E Debug WithDe bug Window E Design Name Crenerate Member Modifiers WithDebuz Window Whether to create the debug window when munning the DAG Advantech LogixView User Manual 44 5 2 3 AdamDataTagPool Click the adamDataTagPool1 on the bottom and check the Properties window You can see the properties of the data tag pool for this sample Click on the right dots button of the DataTags property you will see exactly the same window in previous section They are actually the same thing Properties i x adamDataTagPooll Advantech Graph AdamDataTe lt E AdamDataTagPonl DataTagz Collection Design Mame adamDataTazPooll Generate Member True Modifiers Private Name Indicates the name used in code to identify the object 5 2 4 AdamDataScalePool Click the adamDataScalePool1 on the bottom and check the Properties window You can see the properties of the data tag pool for this sample Properties lx adamDataScaleP
65. w for V5 MET 2005 is configuring your new software installation Installing Co Advantech Logi view ye windows CE M dvantech Common smi InstallShield The installation then starts Fasual Studio 2005 Please wait while the control toolbox is configured This operation may require a couple of minutes to complete After the installation finished you will the above window Now the installation is trying to register the LogixView controls and components into the Visual Studio 2005 The process of this registration takes longer time to finish Please be patient to wait for the process done Advantech LogixView User Manual Advantech Logix View for YS NET 2005 InstallShield Wizard InstallShield Wizard Complete The InstallShield Wizard has successfully installed Advantech LogixView for S NET 2005 Click Finish to exit the wizard nali Em Camel Now the installation and registration have been done Click Finish to finish the installation 5 Advantech LogixView User Manual Jajdeun uonejejsu UONDNPOJJU Advantech LogixView User Manual DAQ Components amp Classes 2 1 Introduction The LogixView offers several components for communication data acquisition and scale and task arrangement This section will describe each component in details The following picture shows the components and the relationship AdamSo
66. ype is set to HoldingRegister as we use ADAM 6024 as the analog output device 2 The property SlaveAddress is set to 1 for this sample If the slave address of the device you are using is set to other number just change the value here to match the real device ID 3 The property StartAddress is set to 11 This value sets the starting address of MODBUS query data The value is based 1 4 The property TotalPoint is the total amount of holding register to query Mod busDataSez Collection Editor Members modbusLatasegl properties U Risi dp BERTI mod busDataSe gl renerateMember True Modifiers Private El Modbus ModbusDataType HoldingRe gister slave Address 1 starti ddress 11 TotalPoint 1 Click on SegScanlnterval to modify the interval between each data segment Click on the right arrow button of the DataTagPool property you will see following window In this sample the adamData lagPool1 is using Properties Xx adamModhusDagl Advantech Graph AdambModbu AdamCommunication adamSocketComponenti MaxFailForReconnect D ModbusDatase ge Collection segscanIntereal 50 E Data DataTagFool adamDataTagPooll El Debug none WithDebug Window adambataTagPooll E Design p Mame adamkodbusDagl Crenerate Member True Modifiers Private DataTagPool The AdamDataTagPool which contains the tags collection 51 Advantech LogixVi

Download Pdf Manuals

image

Related Search

Related Contents

Télécharger - DREAL Basse  molegro data modeller  CubeSuite+ V1.03.00 Integrated Development Environment User`s  Bedienungsanleitung - Philips StorageUpdates  handleiding  advarsel - Jacobsen  Radio Shack 12-550 User's Manual  MolWorks2.0 user`s manual  FAD  MLNX_EN for Linux User Manual  

Copyright © All rights reserved.
Failed to retrieve file