Home

User Manual APAX-5520CE - Login

image

Contents

1. 19 21 20 AO SelValues eet e ARES EU e 20 21 21 AO B fVal es iier e eia En entera 20 2 1 22 DIO GOW AUCs 21 2 1 23 DIO iiie cer ier 21 21 24 DI E ER Tetas 22 2 1 25 iet teen exte ER 22 2 1 26 DO rr erede le eec 23 24 27 DO 5 stu tei berita based ka ose eren 23 2 1 28 DO iei arci t mh Ee coe 24 2 1 29 OUT 22 44 44004000 24 2 1 30 Modbus Function esses 24 NET Adam NET Class Library 25 iii APAX 5520 Software Manual 2 1 2 APAX NET Utility Operation 29 APAX NET Utility General 30 31 A12 TOON e 32 A 1 3 Module Tree Display Area 32 A 1 4 Status Display 32 General Configuration 33 Modules Configuration 34 A 3 1 Analog Input 8 34 A 3 2 Analog Output 36 A 3 3 Digital Input
2. 38 A 3 4 Digital Output Module 39 System Backup Functionality 41 MtFOQUCTION 42 Configuratio UD 42 Programming in Visual Studio 44 APAX 5520 Software Manual iv Chapter 1 Windows CE NET 1 1 Overview APAX 5520CE is part of Advantech s PC based Controller offering complete open platform with Windows CE NET operating system Leveraging powerful PC technol ogy APAX 5520CE delivers excellent integration ability with rich interface connectiv ity Programmers can develop their applications under Microsoft Visual Studio Advantech Apax NET class library eVC by Advantech C C API environ ment and copy the executives to APAX 5520CE to run the control process 1 2 WinCE Image Advantech has engineered the Windows CE NET embedded image exclusively for this hardware It contains specific drivers for the APAX 5520 and is designed and licensed only for this hardware 1 3 Modification of Standard Image While the WinCE image is considered an embedded image it is possible for the developer to add their own developed software to the image if done properly This is possible through the Microsoft Visual Studio programming environment Users can create and deploy their own applications through this tool along with the libraries distributed by Advantech see below for more information Users can also make changes t
3. zamme B User Manual APAX 5520CE Software Manual AD ANTECH eAutomation Copyright The documentation and the software included with this product are copyrighted 2009 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 Lid 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 MULTIPROG and ProConOS are registered trademarks of KW Software GmbH Lemgo Germany All other product names or trademarks are properties of their respective owners Notes on the Manual This is the Software Manual for the Advantech APAX 5520 product This manual will help guide the end user through implementation and use of the software portion of this product What is covered in this manual This manual will give a general overview of the Windows CE operating system most of the applications that
4. 7 1 6 2 Advantech Configuration Utility 8 1 6 3 Advantech Version 10 1 6 4 DiagAnywhere 10 Programming 11 12 2 1 4 ADAMDrVODpeOn araisa ede 12 2 1 2 ADAMDIVCIOSO iet t teet cipes 12 2 1 8 SYS SetlnnerTimeout 12 2 1 4 SYS GelModulelbD cie haee teret enean 13 2 1 5 55 Gt etie REIR AERA 13 216 SYS 13 2417 GetValu e c 14 2 1 8 AIQ GetValues oit ec reete 14 2 1 9 AIO Set Ranges ec 15 2 1 10 AIO 15 2 1 11 AIO 16 2 1 12 AIO GetChannelStatus 2220 16 2 1 13 AI 17 2 1 14 AI SetlntegrationTime 17 2 1 15 AI 5 17 2 1 16 AO SetCalibrationMode 18 2 1 17 AO GetsStartupValues 18 2 1 18 AO 19 24 19 AO SOW
5. Utility WinCE Version 1 01 01 File Tools Setup Help FS W 2 Serial c 8 Ethernet e ai 192 168 1 188 5040 Module Information Hide Setting Panel ange BOOL o d Others DI 1 False BOOL 10 103 113 1 2 False BOOL cz MJ 5520 3 False BOOL I 5040 50 4 False BOOL 6 5060 51 5 False BOOL Favorites group 5 False BOOL 7 False BOOL 8 9 7 APAX 5520 Software Manual 1 6 2 Advantech Configuration Utility Advantech provides a tool called the Configuration Utility which can be accessed from the start menu by selecting Start gt gt Programs gt gt Advantech gt gt Configuration Utility This tool provides the following items W General System and disk information is available here W Network The two LAN port information such as MAC adaress IP address Subnet Mask etc is available here If you configure the LAN port as DHCP click the Renew button to get another ID Click the Ping button to ping another device in the same network Click the Advanced button for further information General Network Watchdog System OS Version Windows CE 500 v2 02 Build 403 CPU Type Intel XScale PXA27x Disk amp Memory HardDisk Total 14 328 KBytes 33 032 KBytes InUse 7 592 KBytes 18 892 KBytes Free 6 736 KBytes 14 140 KBytes such as DHCP server or DNS server APAX 5520 Software Manual Advantech Config
6. 5017 50 M Sinis Setting Panel 6 5040 52 5046 53 Favorites group There are two parts for the I O Information tab 5000 DO module At the bottom is the Channel Status Area You can see all channels type value and mode Above the Channel Status Area is the Setting Panel Area If you don t want see the Setting Panel Area you can click the Hide Setting Panel check box to hide the Set ting Panel Area If you want to change specific output channels output value select those channels by clicking the channel in the Channel Status Area Then define the output value by the Set True button or Set False button in the Setting Panel Area Then click the Apply button to save the configuration You can see the channel output value changed in the Channel Status Area 39 APAX 5520 Software Manual APAX 5520 Software Manual 40 System Backup Functionality Introduction APAX 5520 series delivers system backup functionality To leverage this functionality two CPU modules controllers with the same control program are installed in one system After both controllers backup function is enabled the APAX 5000 system will automatically delegate one of the two controllers as the master controller The master controller will run the control program to execute the control process while another controller the backup controller
7. Fevorites AD ANTECH 37 Devices on LAN 172 16 2 134 a 172 18 3 63 172 18 3 9 ADAM 5550 172 18 3 13 OEM GINB1C60SEM 7 Make New ADAMLAN2 Connection 8 172 18 323 5520 2 172 18 3 47 5520 S 172 18 3 56 0 91305 9224 9 Others Favorites AX88796 Ethernet Driver Settings IP Address An IP address can be O Obtain an IP address via DHCP automatically assigned to this computer If your network 9 Specify an IP address does not autornatically assign IP addresses ask your network Address 10 0 administrator for an address Subnet Mask ou 225 7 and then type it in the space provided Default Gateway E 3 APAX 5520 Software Manual 1 5 1 5 1 WinCE Remote Tools WinCE Remote tools are a set of Microsoft administration tools provided via web server on the 5520 The remote tools are accessed by web browser The address of the APAX 5520 must be known in order to use the remote tools It is important that you find your IP address either by setting a static address or getting the DHCP assigned address Remote Admin Setup Administrator Password The first time remote admin is connected to the user must enter an administrator password It is important that this step is done to keep the APAX 5520 protected If the registry is lost or if the defaults are loaded then this step must be d
8. OS Build installa tions from Advantech This is an important tool for determining what versions of Advantech Added software are on the APAX 5520 and may help during troubleshoot ing Launch the Version Information Tool by selecting Start gt gt Programs gt gt Advan tech gt gt Version Information F My Device 9 Recycle Bin Internet Explorer AD ANTECH Microsoft WordPad 14 td Mv 1 6 4 DiagAnywhere Server APAX 5520 provides the DiagAnywhere Server to allow a connection from the Diag Anywhere client The application is automatically started If you choose not to use this program you can disable the startup by using the Configuration Utility to remove it from startup Refer to Section 2 5 2 APAX 5520 Software Manual 10 Chapter 2 Programming 2 1 2 1 1 2 1 2 2 1 3 C C Advantech provides C C for eVC development environment to control 5000 I O modules Remember to install SDK to the eVC environment on your development computer The eVC SDK is included in CD After you launch the CD select the APAX Software button and click the VC Example button then you can find it under SDK folder On APAX 5520CE the runtime DLL has been installed already You also can upgrade the runtime DLL ApaxSys cab by execute a new cab file on APAX 5520CE You always can find the latest runtime DLL by linking to Advantech website at http www advante
9. be bufferred The LSB indi cates the channel 32 i dwLowValue the DI values from channel 0 to 31 to be bufferred The LSB indi cates the channel 0 Return 1 ERR SUCCESS bufferring values succeeded 2 ERR_INTERNAL_FAILED Call GetLastError to get extended error information 2 1 29 OUT FlushBufValues LONG ADS API OUT FlushBufValues LONG handle DWORD dwSlotMask Purpose Flush the bufferred values This triggers all buffered values to write simultaniously Parameters handle driver handle i dwSlotMask the flush slot enable mask The LSB indicates the slot 0 Return 1 ERR SUCCESS flushing values succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 2 1 30 Modbus Function All Modbus functions reference manual is located in the CD offered by APAX 557X When you launch the CD click the Browser Manual button and the you can see the document APAX Modbus Library Manual pdf there APAX 5520 Software Manual 24 2 2 API Adam NET Class Library Advantech provides a NET API for developing NET applications for many Advan tech products This API interface is called Adam NET Class library All the functions described in Section 3 1 are supported by Adam NET class library You can leverage Advantech Adam NET class library to develop application controlling APAX 5000 I O modules under Microsoft Visual Studio NET environment such as VB NET or C The installation file is contai
10. i wValues the AO values to be bufferred Return 1 ERR SUCCESS bufferring values succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information APAX 5520 Software Manual 20 2 1 22 DIO GetValue LONG ADS API DIO GetValue LONG handle WORD wSlot WORD i wChannel BOOL o bValue Purpose Get a single DIO value of the indicated slot and channel Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i wChannel the channel ID which is ranged from 0 to 31 o bValue the variable to hold the DIO value Return 1 ERR SUCCESS geting value succeeded o wValue contains DIO value 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 2 1 23 DIO GetValues LONG ADS API DIO GetValues LONG handle WORD wSlot DWORD o_dwHighValue DWORD o dwLowValue Purpose Get the all DIO values of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 o dwHighValue the variable to hold the returned DIO values from channel 32 to 63 The LSB indicates the channel 32 o dwLowValue the variable to hold the returned DIO values from channel 0 to 31 The LSB indicates the channel 0 Return 1 ERR SUCCESS Get values succeeded The o dwHighValue and dwLowValue contain DIO values from channel 0 to the last channel 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 21 APAX 5520 Softw
11. information APAX 5520 Software Manual 22 2 1 26 DO SetValue LONG ADS API DO SetValue LONG handle WORD wSlot WORD wChannel BOOLi bValue Purpose Set a single DO value of the indicated slot and channel Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i wChannel the channel ID which is ranged from 0 to 31 i bValue the DO value to be set Return 1 ERR SUCCESS setting value succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 2 1 27 DO SetValues LONG ADS API DO SetValues LONG handle WORD wSlot DWORD i dwHighValue DWORD dwLowValue Purpose Set all DO values of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i dwHighValue the DI values from channel 32 to 63 to be set The LSB indicates the channel 32 i dwLowValue the DI values from channel 0 to 31 to be set The LSB indicates the channel 0 Return 1 ERR SUCCESS setting values succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 23 APAX 5520 Software Manual 2 1 28 DO BufValues LONG ADS API DO BufValues LONG handle WORD wSlot DWORD i_dwHighValue DWORD i dwLowValue Purpose Buffer the DO values of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i dwHighValue the DI values from channel 32 to 63 to
12. is put on standby The master control ler will periodically send living message to the backup controller If the backup con troller dose not receive living message from master controller over 500 milliseconds it will automatically become master controller and take the control responsibility and restarts the control process execution The maximum operation time for the backup controller to become master controller the take over time won t be greater than 1 5 second Changing master controller means there is something wrong for the previous master controller Therefore engineers can check or change the previous master controller with a new one and enable it to have backup functionality becoming second backup controller Then if the new master controller fails again the second backup controller will automatically take the control responsibility This mechanism ensures the control system will continuously run the control pro cess And the system won t be stopped even if controller fails B 2 Configuration As you can see in the figure above two APAX 5520 CPU modules are installed in one system APAX 5000 series will automatically decide which one is the master controller APAX 5520 Software Manual 42 Warning The controller ID of the APAX 5520 module is auto identified by the location where the module is inserted on the APAX 5002 backplane A Slot 1 or Slot 2 Thus be sure NOT to insert two APAX 5520 modules in the same location o
13. it as reference to build your own application program These examples can also be found by selecting Start gt gt All Programs gt gt Advantech Automation gt gt ADAM gt gt Adam NET Class Library gt gt VS2003 gt gt APAX samples gt gt Apax5520 WinCE after you have installed Adam NET Class library Or you can find these examples by C Program Files Advantech Adam NET Class Library Internet L My Documents Internet Explorer Tj computer Cook Express Apes NET Utity 1 5520 wince 1 5570 win32 02 t MO 247 C Program Files Advantech Adam NET Class Library Address C Program Files Advantech Adam NET Class Library E 23 Advantech ActiveDAQ Pro ADAM 4000 5000 Utility 5000 6000 Utility ADAM 5510 Series Utility 5 Adam NET Class Library 52003 El Samples Pocket PC El win32 El C3 5000 C ApaxAIOModule C ApaxDIOModule ApaxGetModules C ApaxModuleConfig E vc C ApaxAIOModule C ApaxDIOModule ApaxGetModules ApaxModuleConfig APAX 5520 Software Manual 26 27 5520 Software Manual APAX 5520 Software Manual 28 APAX NET Utility APAX NET Utility General Window After you install the APAX NET utility you can launch it through Start gt gt Pro grams gt gt Advantech gt gt ApaxNET Uti
14. the same range setting for all channels click the ApplyAll check box before you click the Apply button Note In order to remove the noise from the power supply Al modules TZN feature built in filter Filters are used to remove noise generated from E environment The integration time is used to configure the filter fre quency You can define specific channels reading or not by the Enable and Disable button Refer to figure below channel 3 and channel 4 are disabled that no data will be read Advantech Apax NET Utility WinCE Version 1 01 10 Serial Ethernet 5520 Module Information AI Hide Setting Panel Show Raw Data 6 5028 51 6 5040 22 6 5046 53 Favorites group oat 0 10 1 0 000 10V 2 0 002 10 Disable 10 4 Disable 10 5 0 001 10V 6 0 001 10 7 0 002 10 E nosse By clicking on the Auto button you can perform auto calibration to the Al module The module will automatically calibrate itself 35 APAX 5520 Software Manual A 3 2 Analog Output Module Advantech Apax NET Utility WinCE Version 1 01 10 File Tools Setup Help Serial Ethernet amp MJ 5520 Module Information 5028 50 e Setting Panel Show Raw Data 6 5046 53 l Favorites group 0 000 1 0 000 2 0 000 3 0 000 4 Pollin
15. 172 21 6 112 WebAdmin Google jen 2 8 rasblocked SP check Home Instructions Logging SSL Configuration Restart Web Server Web Server Configuration The Web Server Administration WebAdmin page for the Windows CE Web Server enabl The web server configuration comes with its own instructions and help files Please see these documents for further information 1 5 3 Remote System Admin Windows CE provides a remote system administration This is located on a virtual root by typing in the address xxx xxx xxx xxx sysadmin The login and password will be the same as the Remote Admin login and password This interface includes the following tools W System Information viewer W Process Management view and control W File browser WB Registry editor APAX 5520 Software Manual 6 1 6 WinCE Applications 1 6 1 APAX NET Utility Advantech provides the APAX NET utility which allows the developer end user to interrogate the APAX bus see connected modules and do simple testing of the I O This software can be helpful when checking wiring inputs prior to installing the runt ime project It is also able to detect and test other Advantech supported hardware for this product The installation file is contained in the CD and on our website at http www advan tech com in the download area under the support page Detailed operation for APAX NET utility can be found in Appendix A Advantech
16. ADS API AI SetlntegrationTime LONG handle WORD wSlot DWORD i dwlntegration Purpose Set Al integration time of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i_dwintegration the Al integration time to be set Two settings are availabled 0 60Hz 1 50Hz Return 1 ERR SUCCESS setting integration time succeeded 2 ERR_INTERNAL_FAILED Call GetLastError to get extended error information 2 1 15 SetAutoCalibration LONG ADS API AI SetAutoCalibration LONG handle WORD wSlot Purpose Set to run the auto calibraion of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 Return 1 ERR SUCCESS setting auto calibration succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 17 APAX 5520 Software Manual 2 1 16 SetCalibrationMode LONG ADS API AO SetCalibrationMode LONG handle WORD i wSlot Purpose Set to switch to the AO calibraion mode of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 Return 1 ERR SUCCESS setting calibration mode succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 2 1 17 AO GetStartupValues LONG ADS AO GetStartupValues LONG handle WORD wSlot WORD i_wChannelTotal WORD o wValues Purpose Get the AO startup values of the indicated slot
17. Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i wChannelTotal the channel total of the module in the indicated slot o wValues the variables array to hold the AO startup values The size of this array must be at least 32 WORDs Return 1 ERR SUCCESS Geting values succeeded o wValues contains AO startup values from channel 0 to the last channel 2 ERR INTERNAL FAILED Call GetLastError to get extended error information APAX 5520 Software Manual 18 2 1 18 AO SetStartupValues LONG ADS API AO SetStartupValues LONG handle WORD wSlot WORD i wChannelTotal WORD wValues Purpose Set the AO startup values of the indicated slot These values are stored in onboard flash and are initialized to the slot upon boot up of the hardware Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i wChannelTotal the channel total of the module in the indicated slot i wValues the values array to be set The size of this array must be i wChannelTotal WORDs Return 1 ERR SUCCESS setting values succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 2 1 19 AO SetValue LONG ADS API AO SetValue LONG handle WORD wSlot WORD i_wChannel WORD i wValue Purpose Set a single AO value of the indicated slot and channel Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i wChann
18. SB of the value indicates the slot 0 to slot 31 status If the bit is 1 it means that the slot has no module present Return 1 ERR SUCCESS 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 13 APAX 5520 Software Manual 2 1 7 2 1 8 AlO_GetValue LONG ADS API AIO GetValue LONG handle WORD wSlot WORD wChannel WORD o wValue Purpose Get a single analog input or output value from the indicated slot and channel Parameters handle driver handle i wSlot the slot ID which has a range of 0 to 31 i wChannel the channel ID which has a range of 0 to 31 o wValue the variable to hold the returned AIO value Return 1 ERR SUCCESS o wValue contains AIO value 2 ERR INTERNAL FAILED Call GetLastError to get extended error information AIO GetValues LONG ADS API AIO GetValues LONG handle WORD wSlot WORD o wValues Purpose Get the all analog input or output values of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 o wValues the variables array to hold the returned AIO values The size of this array must be at least 32 WORD s Return 1 ERR SUCCESS o wValue contains AIO values from channel 0 to the last channel 2 ERR INTERNAL FAILED Call GetLastError to get extended error information APAX 5520 Software Manual 14 2 1 9 AIO SetRanges LONG ADS API AIO SetRanges LONG handle WORD wSlot WORD
19. are Manual 2 1 24 DI GetFilters LONG ADS API DI GetFilters LONG handle WORD i_wSlot DWORD o dwHighMask DWORD o dwLowMask DWORD dwWidth Purpose Get the DI filter mask and width of the indicated slot All channels use the same filter Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 o dwHighMask RESERVED dwLowMask If set to zero filter is disabled Non zero indicates that filter is applied dwWidth the variable to hold the DI filter width Filter is in 1 msec units and value of filter width must be in multiples of 5 Return 1 ERR SUCCESS get filters succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 2 1 25 DI SetFilters LONG ADS API DI SetFilters LONG handle WORD wSlot DWORD i_dwHighMask DWORD i_dwLowMask DWORD i dwWidth Purpose Set the DI filter mask and width of the indicated slot Filter is amount of time needed to verify a change of state This is to reduce noise Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i dwHighMask RESERVED i dwLowMask If set to zero filter is disabled Non zero indicates that filter is applied i dwWidth the variable to hold the DI filter width Filter is in 1msec units and value of filter width must be in multiples of 5 Return 1 ERR SUCCESS setting filter succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error
20. are included with Windows CE as well as the applications added and or created by Advantech Corporation in the Windows CE image This manual will also cover installation and use of development and utility software that is needed It will also reference optional software that can be used by the end user with the Windows CE Operating system What is not covered in this manual This manual will reference the hardware but does not contain hardware setup infor mation wiring information electrical specifications or any detailed hardware informa tion Please refer to the hardware manual for this information Edition 1 September 2009 APAX 5520 Software Manual ii Contents Chapter Chapter 1 2 ROM 1 5 1 6 2 2 1 2 2 Windows 1 SUL H 2 WINCE 2 Modification of Standard 2 Connecting to the 2 1 4 1 2 1 4 2 tee eee ee 3 WinCE Remote 4 154 Remote AGIT corte bee tende e eu enu 4 1 5 2 Remote Web 6 1 5 8 Remote System 6 WinCE 7 LET APAX NETU
21. avorite Group You can configure your favorite group including add one new device only for remote device modify or delete one current device sort current devices and diagnose connection to one device Refresh COM and LAN node APAX NET utility will refresh the serial and LAN network connection situation ShowTreeView Check this option to display the Module Tree Display Area or not Add COM Port Tree Nodes This option is used to add serial COM ports in APAX NET Utility Delete the COM Port This option is used to delete serial COM ports in APAX NET Utility The Help menu Check Up to Date on the Web Choose this option it will automatically con nect to Advantech download website You can download the latest utility there About Apax NET Utility Choose this option you can see version of APAX NET Utility installed on your computer 31 APAX 5520 Software Manual A 1 2 A 1 3 A 1 4 Toolbar The six buttons on the toolbar represent the six commonly used items from the Menu Refer to figure below for the definition of each button 22 2 Monitor Stream Event Data Terminal for Command Testing Add Device to Group Search Save Favorite Group Open Favorite Group Module Tree Display Area APAX NET Utility is one complete software tool that all APAX and ADAM I O module can be configure and operated in this utility The Module Tree Display Area is on the left part of th
22. can save your favorite group into one configuration file Auto Initial Group If you want to have the same favorite group configuration when you exit APAX NET utility and launch it again you need to check this option Exit Exit APAX NET Utility The Tools menu Search Search if there are any remote I O modules connected For I O mod ules communicated by serial such as ADAM 4000 modules click the COM1 item COM 2 is an internal COM port under Serial item in the Module Tree Dis play Area first before you click this button For I O modules communicated by Ethernet such as ADAM 6000 modules click the Ethernet item in the Module Tree Display Area first before you click this button Add Devices to Group You can add any I O modules to your favorite group by this option You need to select the device you want to add in the Module Tree Display Area it will be described below first and then select this option to add Terminal for Command Testing ADAM modules support ASCII commands and Modbus as communication protocol You can launch the terminal to com municate with remote module by these two kinds of protocols directly Refer to ADAM 4000 ADAM 5000 and ADAM 6000 manual for ASCII and Modbus com mand Monitor Stream Event Data ADAM 6000 modules support Data Stream func tion You can use this to configure related setting for the connected ADAM 6000 modules connected Refer to ADAM 6000 manual for more detail The Setup menu F
23. ch com in the download area under Sup port page The following sections will explain these API functions In order to save your development time Advantech provides several examples that you can use it as reference to build your own eVC application program These exam ples can be found in the CD offered by APAX 5520CE or from Advantech website at http www advantech com in the download area under Support page When you launch the CD select the APAX Software button and click the VC Example but ton to find these examples ADAMDrvOpen LONG ADS ADAMDrvOpen LONG handle Purpose Initialize the driver Parameters handle driver handle Return 1 ERR SUCCESS Driver initialization succeeded the handle will be valid for function use until closed 2 ERR INTERNAL FAILED Call GetLastError to get extended error information ADAMDrvClose LONG ADS ADAMDrvClose LONG handle Purpose Initialize the driver Parameters handle driver handle Return 1 ERR SUCCESS Driver termination succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information SYS SetlnnerTimeout LONG ADS SYS SetlnnerTimeout LONG handle WORD i wTimeout Purpose Set the inner timeout of the configuration functions that use internal communication channel All functions with the exception of Get Set values use the internal communi cation network When using any of those functions they must wait for c
24. e installed the Advantech Adam NET class libraries Refer to Section 2 2 for the instal lation procedure you can find related example programs by selecting Start gt gt All Programs gt gt Advantech Automation gt gt ADAM gt gt Adam NET Class Library gt gt VS2003 gt gt APAX samples gt gt Apax5520 WinCE Administrator Internet Internet Explorer 474 E mail Outlook Express Documents My Computer ge control pant Utility pp seach E Command Prompt Ff Accessories L Paink Advantech Advantech Automation Shortcut to Tesi startup Internet Explorer 1 adam NET GQ Outlook Express AdwMotion NET chm Remote Assistance ADAM samples fi samples 1 5520 WinCE 5570 Win32 55 247 Rename this 00 Move the folder Copy this Pubis this fodder to the Web Share thes folder E Emal this fclder s Hes Delete this folder 2 0 Sutility D SAROB 2 50am APAX 5520 Software Manual 44 45 APAX 5520 Software 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
25. e Module Tree Display Area the Status Dis play Area should look similar to the figure below Advantech Apax NET Utility WinCE Version 1 01 11 Hle Tools setup t s a Serial 8 Ethernet 6 5060 s0 6 5018 51 Favorites group 5060 12 Relay Output Module 5018 12 CH Thermocouple Input Module 0 1 2 3 4 5 6 7 8 It is ready Version 104 All I O modules with its ID number are listed the Description tab in the Module Tree Display Area the left tab and Description tab on Status Display Area the right tab You can see all I O modules supported by APAX 5520 by the Support Modules tab on Status Display Area The Backup Setting check box is used to enable or disable APAX 5520 backup function Refer to Appendix B for more detail about backup functionality 33 APAX 5520 Software Manual Modules Configuration When you click any I O module in the Module Tree Display Area the Status Dis play Area at the right side will automatically change to show the module s informa tion There will be two tabs displayed Module Information and I O Information Refer to the figure below Advantech Apax NET Utility WinCE Version 1 01 10 fet 5 87 5520 5017 50 5028 51 504062 5046 53 m Favorites group Description Firmware AD Version Module Information Information On the Module Informa
26. e utility operation window There are four categories in the Module Tree Display Area Serial All serial remote I O Modules connected to APAX 5520 will be listed in this category You also can configure COM port parameter such as baud rate parity stop bit etc here B Ethernet All Ethernet remote I O Modules connected to APAX 5520 will be listed in this cate gory APAX 5520 All APAX 5000 local I O modules in the same system will be listed in this category Simply click this item all related modules will be displayed automatically m Favorite Group You can define which devices listed in Serial or Ethernet categories above into your personal favorite group This will make you easier to find your interested modules Click on the ADAM device item under Favorite group item and select Favorite gt gt New in Setup menu to create a new group After you create your own group click on your group and select Favorite gt gt New in Setup menu to add any remote devices into your group You can also select Diagnose connection to check the communica tion Status Display Area Status Display Area on the right part of utility operation window is the main screen for operation When you select different items in Modules Tree Display Area Status Display Area will change dependently You can do all configurations and tests on this area APAX 5520 Software Manual 32 A 2 General Configuration If you click the APAX 5520 item in th
27. el Counts to trim 100 10 1 1 10 100 Apply 37 APAX 5520 Software Manual A 3 3 Digital Input Module Advantech Apax NET Utility Version 1 01 10 Serial Ethernet 5520 5017 50 5028 51 5040 52 6 5046 53 Favorites group Qc Cc Form Polling Interval 500ms 12 times There are two parts for the I O Information tab of APAX 5000 DI module At the bot tom is the Channel Status Area You can see all channels type value and mode Above the Channel Status Area is the Setting Panel Area If you don t want see the Setting Panel Area you can click the Hide Setting Panel check box to hide the Set ting Panel Area If you want to configure specific output channels filter status or minimum acceptable pulse width select the channels in the Channel Status Area Click the DI Filter Enable check box in the Setting Panel Area to enable filter for that channel Type the appropriate value unit 0 1 ms into the Minimum signal width text box to con figure acceptable minimum pulse width in the Setting Panel Area After you com plete the configuration click the Apply button to save the configuration APAX 5520 Software Manual 38 A 3 4 Digital Output Module Advantech Apax NET Utility WinCE Version 1 01 10 Serial 8 8 Ethernet amp MJ 5520 Module Information
28. el the channel ID which is ranged from 0 to 31 i wValue the AO value to be set Return 1 ERR SUCCESS 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 19 APAX 5520 Software Manual 2 1 20 AO SetValues LONG ADS API AO SetValues LONG handle WORD wSlot DWORD i dwMask WORD wValues Purpose Set multiple AO values of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i dwMask the channels mask From LSB to MSB of the value indicate the slot O to slot 31 mask If the bit is 1 it means that the channel must change value i wValues the AO values to be set This is a pointer to an array of 32 words Return 1 ERR SUCCESS setting values succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 2 1 21 AO BufValues LONG ADS API AO BufValues LONG handle WORD i wSlot DWORD i dwMask WORD wValues Purpose Buffer the AO values of the indicated slot This function is used along with OUT FlushBufValues for a synchronized write Output Once all slots are buffered then OUT FlushBufValues function triggers the synchronized buffer write of all masked slots Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i dwMask the channels mask From LSB to MSB of the value indicate the slot O to slot 31 mask If the bit is 1 it means that the channel must buffer value
29. g Interval 500ms 2155 times There are two parts for the I O Information tab of APAX 5000 AO module At the bot tom is the Channel Status Area You can see all channels type value range and startup value the initial value when the AO module is power on Above the Channel Status Area is the Setting Panel Area If you don t want see the Setting Panel Area you can click the Hide Setting Panel check box to hide the Setting Panel Area If you want to see the raw data presented in Hexadecimal format from the output channels click the Show Raw Data check box If you want to configure specific output channels range select the channels in the Channel Status Area Choose appropriate range by the Range combo box in the Setting Panel Area and then click the Apply button to save the configuration If you want to save the same range setting for all channels click the ApplyAll check box before you click the Apply button If you want to change specific output channel output value select that channel by clicking the channel in the Channel Status Area or choosing it from Channel combo box in the Setting Panel Area Then define the output value by the Value text box or the horizontal slide below in the Setting Panel Area Then click the Apply button to save the configuration You can see the channel output value changed in the Chan nel Status Area Similarly you can save the value in the Value text box to become the startup value by the Set as Sta
30. i_wChannelTotal i wRanges Purpose Set the channel ranges of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i wChannelTotal the channel total of the module in the indicated slot i wRanges the ranges to be set The size of this array must be i wChannelTotal WORDs See APPENDIX A for valid range settings Return 1 ERR SUCCESS setting ranges succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 2 1 10 AIO SetZeroCalibration LONG ADS API AIO SetZeroCalibration LONG handle WORD wSlot WORD i_wChannel WORD Purpose Run the zero calibraion of the indicated slot and channel Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i wChannel the channel ID which is ranged from 0 to 31 i wType the type value to be set Currently it is ingnored Return 1 ERR SUCCESS setting zero calibration succeeded 2 INTERNAL FAILED Call GetLastError to get extended error information 15 APAX 5520 Software Manual 2 1 11 AlO_SetSpanCalibration LONG ADS API AIO SetSpanCalibration LONG handle WORD wSlot WORD wChannel WORD Purpose Run the span calibraion of the indicated slot and channel Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i wChannel the channel ID which is ranged from 0 to 31 i wType the t
31. lity Refer to Section 1 6 1 for installation informa tion Or you can click the shortcut in the HarDisk folder under My Device Internet Explorer Lg Utility Mirrnsnft GB Programs Advantech Note We suggest to close APAX NET utility after you complete your configu ration to release system memory for other applications After you launch the utility you should see the operation window as figure below Except APXA 5000 I O modules other devices such as ADAM 4000 ADAM 5000 and ADAM 6000 modules can also be searched and configured in this utility Menu Toolbar Adesntech Amau MET Litility Nan EN 1 10 rie Tous a Seria amp 8 Ethernet 87 5520 Favorites group Module Tree Display Area Status Display Area Proconos wince _ fgqyadivantech Apax 119 am The operation window consists of four areas the Menu the Toolbar the Module Tree Display Area and the Status Display Area APAX 5520 Software Manual 30 A 1 1 Menu The menu at the top of the operation window contains The File menu Open Favorite Group You can configure your favorite group and save the configuration into one file Using this option you can load your configuration file for favorite group Save Favorite Group You can configure your favorite group and save the con figuration into one file Using this option you
32. means electronic photocopying recording 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 2009
33. n two backplanes For example if you insert one APAX 5520 on slot 1 of one APAX 5002 backplane and insert the sec ond APAX 5520 on slot 1 of another APAX 5002 backplane in the same system APAX 5000 series cannot distinguish the two modules APAX 5520 insert on the same slot of different backplanes APAX 5000 Modules Incorrect Installation APAX 5002 APAX 5520 insert on the different slot of different backplanes Correct Installation APAX 5002 Backup functionality needs to be enabled for both the two APAX 5520 modules in the APAX utility Refer to figure below Click the Backup Setting check box in Set ting Panel Area and then click the Apply button to enable backup functionality for APAX 5520 Advantech Apax NET Utility WinCE Version 1 01 11 2 KJ APAX 5520 V 5060 S0 8 Favorites group 1 12 CH Relay Output Module E It is ready APAX Driver Version 104 Note After applying the configuration for the backup system remember to power cycle the whole system to run the backup functionality 43 APAX 5520 Software Manual B 3 Programming in Visual Studio After you enable backup functionality by utility you can leverage the backup function ality in your application written in Microsoft Visual Studio NET program Related libraries are provided with Advantech Adam NET class libraries After you hav
34. ned in the CD When you launch the CD select the APAX Software button and click the Class Library button to find the installation file Besides you also can link to the website http www advantech com and click into the Download Area under the Support website to get the latest version of the Adam NET class library After you complete the installation you can find Adam NET class library help docu ment by selecting Start gt gt All Programs gt gt Advantech Automation gt gt ADAM gt gt Adam NET Class Library gt gt VS2003 gt gt Adam NET Help Internet Internet Explorer A Ema Outlook Express Bene 2 449 an 2 Help a 8 Hide Sorters Seach amp Advantech Protocet __The ADAM 4000 configuration class The ADAM 5000 canfiguranon class ADAM ASCII bate library for ADAM serial library for ADAM tenes The ADAM COM configuration das AdamContrcl the ADAM controller class Class for event 5996 Summary descripbon tor AdamEventServerThresd ADAM class to stroe information about a module The claes ot uted for comparing the MAC address for ADAM Adam PIP clase ADAM ethernet communication class library for ADAM senes a start Adam HET Help 6 SOM 25 APAX 5520 Software Manual Besides there are many examples offered that you can use
35. o an image and have that image deployed on subsequent purchased images through a Configure To Order specification CTO There may be a situation where a user needs modification of the standard image Since the image is created by Advantech this may be possible depending on the user requirements A non reoc curring engineering fee NRE would most likely be required to create a custom image Please check with your sales person for more information about the CTO and NRE services 1 4 Connecting to the Device 1 4 4 DiagAnywhere DiagAnywhere an abbreviation of Diagnostic Anywhere is a networking solution for remotely monitoring and controlling other Windows based devices It is very simi lar to a remote desktop application with some additional features Currently Diag Anywhere includes the utility on client side and the server on the other The main technology is based on Microsoft NET Framework for the client For this reason the PCs using this solution must have the Microsoft NET Framework installed for Win32 platform You can find the NET Framework and DiagAnywhere client trial version on the CD that comes with the APAX 5520 DiagAnywhere server can only run on Advantech s TPC UNO AMAX APAX and ADAM Windows based devices The supported platforms include Windows XP Win dows XPe and Windows CE However the server can accept only one connection from the utility at a time and other connection attempts will be rejected if there i
36. ompletion before returning This sets the timeout value for returning Parameters handle driver handle i wTimeout inner timeout in millisecond Default is 50 milliseconds APAX 5520 Software Manual 12 2 1 4 Return 1 ERR SUCCESS Set timer succeeded 2 INTERNAL FAILED Call GetLastError to get extended error information SYS GetModulelD LONG ADS SYS GetModulelD LONG handle WORD i wSlot DWORD o dwModulelD Purpose Get the module ID of the indicated slot Parameters handle driver handle i_wSlot the slot ID which is ranged from 0 to 31 o dwModulelD returned module ID Return 1 ERR SUCCESS Module ID was found and returned 2 ERR INTERNAL FAILED Call GetLastError to get extended error information SYS GetSlotlnfo LONG ADS SYS GetSlotlnfo LONG handle WORD i wSlot struct Slotlnfo stSlotlnfo Purpose Get the module information of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 stSlotlnfo returned Slotinfo structure Return 1 ERR SUCCESS o stSlotlnfo contains slot information 2 ERR INTERNAL FAILED Call GetLastError to get extended error information SYS GetAllSlotErrorFlag LONG ADS API SYS GetAllSlotErrorFlag LONG handle DWORD o wError Purpose Get the presence of a module for each slot Parameters handle driver handle wError Return value for all slots status From LSB to M
37. one again Connect to the APAX 5520 via a web browser with the IP address that was previ ously set Using the path xxx xxx xxx xxx RemoteAdmin For the first time log on the page will be redirected to the DeviceConfig htm to set up the Admin password Enter the Admin password and click the apply button NAS Admin k Windows Internet Explorer provided by Advantech Automation File Edit View Favorites Tools Help Q x E PN J search 5 Favorites 53 Address http 172 21 6 125 RemoteAdmin DeviceConfighhtm 11 Google O Br 2 Windows Remote Management Tool NAS Admin Device Log On To access the device type your password and then click Log On Your base station Password mm Verification Apply Cancel When the Apply button is clicked the gateway will reset and the user is then prompted to log in with the new password APAX 5520 Software Manual 4 Connect to 172 21 6 125 Connecting to 172 21 6 125 User name e Admin mem Remember my password o ce Once logged in the user must change the device name The device name box may have a sample such as 5520 A suggestion is to change the name to 5520 1 Other controllers on the same network can have subsequent numbers or dif ferent names but all controller names on the same network must be unique Windows CE Remo
38. rtup button And you also can see the startup value changed in the Channel Status Area APAX 5520 Software Manual 36 By clicking the Span button and Zero button you can perform span calibration zero calibration separately When you click the Zero button you will see a dialog popping up as figure below The specific channel will generate output signal using the minimum value within range which is shown in the Calibration Value text box Connect that channel to an external accurate instrument and measure the output sig nal Using the Counts to trim buttons to adjust until the output value real matches the value in the Calibration Value text box Then click the Apply button to save the calibration configuration CalibrationAO Calibration Zero Meter attachs to Slot i chawet p crm va Counts to trim 100 20 1 1 10 100 Apply When you click the Span button you will see a dialog popping up as figure below The specific channel will generate output signal using the maximum value within range which is shown in the Calibration Value text box Connect that channel to an external accurate instrument and measure the output signal Using the Counts to trim buttons to adjust until the output value real matches the value in the Calibration Value text box Then click the Apply button to save the calibration configuration AO CalibrationAO Calibration Span Meter attachs to Slot Chann
39. s a live connection This server is set up to automatically start when Windows CE starts APAX 5520 has built in DiaAnywhere server and the server will launch automatically after the system boots You can use DiagAnywhere client The trial version is provided in the CD to connect to the APAX 5520 You need to type password when you connect to the APAX 5520 There is no default password Users can remotely control the APAX 5520 through Ethernet including file transferring APAX 5520 Software Manual 2 1 4 2 IP Address The APAX 5520 will come with a default IP address set to 10 0 0 1 and 10 0 0 2 This IP address can be changed through or local VGA display to suit the users specific requirements Refer to figure below Double click the LAN port icon you want to change IP through Start gt gt Setting gt gt Control Panel gt gt Network and Dial up Connec tion You will see the configuration window as shown below It is not recommended to use DHCP for the APAX 5520 because the project and other items connecting to the APAX 5520 will be programmed to specific IP address Note You must save the registry after you update the IP address or your changes will discarded upon reboot This can be done from the start menu at Start Programs Advantech Registry Saver 17218 363 89 172 18 39 ADAM 5550 59 17218 3 13 89 17218 323 5520 172 18 3 47 APAX 5520 172 18 3 56 OEM M913USFO224
40. te Management Tool Home Ds Please name your device gt Device Management Add Del Network Adapter SMB Server Statistics Device Name Configure FTP Server APAX 5520 1 Configure TELNET Server Add Del Users Add Del Share Apply Cancel D Printer Once the device name is saved the remote admin page will be displayed From this page the following functions can be managed Enable Network Adaptors for file share Configure FTP Server Configure TELNET Server Add Delete Users Add Delete file shares Add Delete Printers 5 APAX 5520 Software Manual 1 5 2 Remote Web Admin Windows CE provides remote web server administration This is located on a virtual root by typing in the address xxx xxx xxx xxx webadmin The login and password will be the same for Remote Web Admin as the Remote Admin that was set in the previ ous section The Web Server Administration WebAdmin page for the Windows CE Web Server enables you to remotely administer your Web server using your Web browser Use WebAdmin to manage the accessibility security and file sharing features of your Web server including the following tasks W Configure which files are shared and how they are accessed W Configure which users have access to which files W Configure the authentication protocols the Web server will use W View and configure the Web server log T ix O search 5 Favorites 63 ia L4 Address amp http
41. tion tab information such as module name switch ID mod ule description and firmware version is displayed You also can update related firm ware to the specific module by the Download button On the I O Information tab you can write or read all channels status and perform related configuration and calibration Refer to the sections below for more detail A 3 1 Analog Input Modules Advantech Apax NET Utility WinCE Version 1 01 10 8 8 Serial Ethernet 5 5520 Module Information Hide Setting Panel 5017 50 V 5028 51 6 5040 52 6 5046 53 t amp l Favorites group APAX 5520 Software Manual 34 There are two parts for the I O Information tab 5000 AI module At the bot tom is the Channel Status Area You can see all channels type value and range Above the Channel Status Area is the Setting Panel Area If you don t want see the Setting Panel Area you can click the Hide Setting Panel check box to hide the Set ting Panel Area If you want to see the raw data presented in Hexadecimal format from the input channels click the Show Raw Data check box If you want to configure specific input channels range or integration time select the channels in the Channel Status Area Choose appropriate range and integration time by the Range and Integration Time combo boxes in the Setting Panel Area and then click the Apply button to save the configuration If you want to save
42. urator Ver 1 0 General Network Watchdo Ethernet Adapter IP Address Number 00 00 9 6 40 Adapter Description ADAMLAN2 IP Address 0 0 0 0 Subnet Mask 0 0 0 0 Host Name APAX 5520 Adapter 0 Watchdog 5520 offers built in watchdog timer It will continuously check the system and automatically reset the system if the system fails Choose the periodical checking time for watchdog timer by the Response Time combo box and then enable the watchdog timer by the Enable button Here you also can test the watchdog timer Test Reboot Machine By Watchdog When Watchdog is enabled if user clicks the Test button NO periodically resetting signal will be sent unless user clicks Strobe button Miscellaneous You can define which program application should execute auto matically when system boot up by including it in the Startup Program Use Add and Delete to decide which programs become startup programs There are other configuration for system such as Register Web Server Root and FTP Server root Click the Reboot button can help to reboot the system without power off the system Web Server Root fi windows www wwwpub zd Ftp Server root firempi xl 9 APAX 5520 Software Manual 1 6 3 Advantech Version InformationTool Advantech provides a simple reporting tool that will provide necessary version infor mation for the Windows CE operating system as well as any post
43. ype value to be set Currently it is ingnored Return 1 ERR SUCCESS setting span calibration succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 2 1 12 AIO GetChannelStatus LONG ADS API AIO GetChannelStatus LONG handle WORD wSlot BYTE byStatus Purpose Get all channels status of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 o byStatus the array to hold the returned channels status The size of this array must be at least 32 BYTEs Return 1 ERR SUCCESS channel status succeeded The value of byStatus indicates 0 None 1 Normal 2 Over current 3 Under current 4 Burn out 5 Open loop 6 Not ready 2 ERR INTERNAL FAILED Call GetLastError to get extended error information APAX 5520 Software Manual 16 2 1 13 SetChannelMask LONG ADS API AI SetChannelMask LONG handle WORD wSlot DWORD i_dwMask Purpose Set enabled Al channel mask of the indicated slot Parameters handle driver handle i wSlot the slot ID which is ranged from 0 to 31 i dwMask the enabled Al channel mask to be set From LSB to MSB of the value indicate the slot O to slot 31 enabled mask If the bit is 1 it means that the channel is enabled Return 1 ERR SUCCESS setting channel mask succeeded 2 ERR INTERNAL FAILED Call GetLastError to get extended error information 2 1 14 SetlntegrationTime LONG

Download Pdf Manuals

image

Related Search

Related Contents

Collecting Router Information for Error Diagnosis and  取扱説明書 - オンキヨー株式会社  

Copyright © All rights reserved.
Failed to retrieve file