Home

EPC-1800 EPC-1800 User Manual

image

Contents

1. 9 BAR Columns Name Condition Hit Count MO Platform_demoDlg cpp line 97 no condition break a Lo LC S Autos Z Locals 3 Threads s Modules Eg Watch 1 a Find Results 1 Call Stack O Breakpoints E Output I Error List Ready Ln 100 Col 12 Ch 9 Figure 6 7 the debugging window 31 EPC 1800 User Manual 7 Function Reference 7 1 Hardware Initialization The program starts with initialization of the EPC 1800 hardware If the system needs to use the Motionnet functions it is necessary to link the library by calling _ezpac_link_mnet After linking the library users also need to do a reset and start the Ring by calling _mnet_reset_ring ring_number and _mnet_start_ring ring_number correspondingly Initialize EPC 1800 _ezpac_initial Need Motionnet Link Motionnet Lib _ezpac_link_mnet Figure 7 1 hardware initialization interface 7 2 Library Initialization Motionnet library can be initialized by hardware device driver library call With the Linkage between hardware and function library user can use different types of communication masters by the same software interface User Application Process Motionnet DLL Hardware Driver DLL Figure 7 2 library relationship 32 TS TPM lt z EPC 1800 User Manual 7 3 Motionnet Master The operation of Motionnet extension is divided into the following 2 groups One is the Motionnet master device the
2. the function and pin definition of these interfaces will be illustrated 2 1 Mechanical Dimensions EPC 1800 Dimension 28 50 46 50 13 25 124 Unit mm L 131 Figure 2 1 dimensions EPC 1800 User Manual 2 2 Interfaces The I O interface arrangement of EPC 1800 is introduced by the following figures RS1 CN1 USB Motionnet Figure 2 2 main interface of EPC 1800 24V DC Figure 2 3 side view of EPC 1800 TAS TPM lt lt EPC 1800 User Manual 2 3 Pin Assignment for Each Connector In the following subsections the pin assignment for each connector would be introduced 2 3 1 CN1 The CN1 26 pin definition is shown below Pin No Definition Description Pin No Definition Description 1 4 RS232 RX 2 4 RS232 TX 3 4 RS232 DGND 4 RS422 485 R 5 DGND I RS232DGND 18 R RS422 485R 6 RS422 485 T 7 RS422 485 T 8 os TN DGND RS422 485 DGND 9 Re Ringindiatr 22 DI Digitalimput3 10 Digital input 2 U Digital input 1 12 Digital input 0 13 DGND 3 RS232 DGND 26 GND DI ground Table 2 1 pin assignment of DI O interface Digital GPIO input signal circuit in SINK mode NPN is illustrated as follows Internal Circuit SINK Teo IN_O Figure 2 4 DI NPN logic circuit 11 TAS TPM EPC 1800 User Manual 2 3 2 Side 24V DC Input Description 24V DC power input Ground 3 FG Frame
3. EPC 1800 User Manual DeviceApplicationl Microsoft Visual Studio File Edit View Refactor Project Build Debug Data Tools Test Window Community Help IA aiea X gt i m RR af se t z 2089 i E Solution Explorer Solution DeviceAppli SE SARA 3 od Solution DeviceApplicationl 1 project S E FE DeviceApplicationl ES H Ea Properties 3 Code Snippets Manager ChhK ChhB Fy H E References i i Choose Toolbox Items ra ES Forml cs las 8 c Program cs Lusi Add in Manager d Macros Create GUID Dotfuscator Community Edition External Tools Performance Tools ay Device Emulator Manager Find Results 1 Import and Export Settings pex Figure 6 4 tools options 3 Configure the target device IP address It is necessary to configure the target IP address before making a connection This could be done through Device Tools gt Devices from the option window as the 1 step in Figure 6 5 4 Select the target device EPC 1800 for this example as marked as the 2 step in Figure 6 5 and hit the Properties button as the 3 step 5 The EPC 1800 properties dialog will be popped up Click the Configure button to configure as the 4 step in Figure 6 5 6 Specify the target IP address and click OK button to finish the configuration process as shown as the 5h and 6 step in Figure 6 5 28 EPC 1800 User Manual A Solu
4. after the system initialization using function _ezpac_verify_aes_key ezpac_write_fram_byte Hereafter when the system is brought up it reads the flag from FRAM If the read value matches the pre defined value the system bypasses the check AES key procedure and operates normally as the system integrator designed If the values from the designated address in FRAM do not match the system could only run certain time or some advanced functions are locked Only with the correct activation code can bring the system up with full functionalities and unlimited running time 24 CS TPM EPC 1800 User Manual 6 Software Development Environment 6 1 System Requirements The sections below describe the system and software requirements for developing EPC 1800 applications 6 1 1 Hardware Requirements Processor 1 GHz RAM 256MB Available hard disk space 3GB 6 1 2 Software Requirements Operating system Microsoft Windows XP or 7 SDK Microsoft Visual Studio 2005 B Need service pack 1 and NET compact framework 2 0 service pack 1 installed SDK Microsoft Visual Studio 2008 B Need service pack 1 installed If there are connection problems on online debugging please copy the 5 online debug files from developing PC to EPC 1800 and try again Once the files are copied to the specified location on EPC 1800 it will be copied to folder Windows automatically after restart the system The location of
5. get mnet baud rate Description Get the baud rate of the Motionnet master Syntax I16 ezpac get mnet baud rate U16 RingNo U8 BaudRate Argument output U16 RingNo Specify the ring number of the master In EPC 1800 it is 0 input U8 BaudRate The current baud rate Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 48 CS SS EPC 1800 User Manual 7 5 3 3 ezpac set mnet baud rate Description Set the baud rate of the Motionnet master Syntax I16 ezpac set mnet baud rate U16 RingNo U8 BaudRate Argument output U16 RingNo Specify the ring number of the master In EPC 1800 it is 0 output U8 BaudRate The baud rate to be set Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 49 EN TPM EPC 1800 User Manual 7 5 4 Platform AES Functions Function name Description ezpac_get_secure_id Get the SECURE_ID of the system in 8 bytes array format Generate the AES KEY with SI KEY and SECURE ID ezpac verify aes key Check the validity of the generated AES KEY ezpac generate aes key 50 TAS TPM lt EPC 1800 User Manual 7 5 4 1 _spc2_get_secure_id Description Get the SECURE_ID of t
6. ground Table 2 2 power connector pin definition 2 3 3 Motionnet Interface Figure 2 5 Motionnet extension connector Ring Pin Pin Mark Pin Description 1 NC Reserved 2 NC Reserved 3 RS485 Motionnet protocol 4 NC Reserved 5 NC Reserved 6 RS485 Motionnet protocol 7 NC Reserved 8 NC Reserved Table 2 3 pin definition of the Motion Ring EPC 1800 User Manual 3 Motionnet Introduction 3 1 What Is Motionnet Motionnet is a super high speed serial communication system The G9000 devices provide input output control motor control CPU emulation and message communication with high speed serial communications up to 20Mbps all of which are required by current Factory Automation techniques Motionnet always transfers 4 bytes of data in 15 1yusec using cyclic communication to control input and output While this data is being transferred it can communicate a maximum of 256 bytes such as motor control data and the LSI controls the data transmission using interrupts Communication times can be calculated using formulas allowing users to see that Motionnet guarantees the real time oriented support needed by FA industries 3 2 Motionnet Functions G9001A equipped Serial communications 20 M bps RS 485 half duplex multi drops pulse transformer center device o 64 devices max Figure 3 1 Motionnet system architecture Prov
7. input U32 Val Return the value of the retainable memory Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 58 CAS TPM EPC 1800 User Manual 7 5 5 4 ezpac write fram byte Description Write a byte data to a retainable memory Syntax 16 ezpac write fram byte U16 Offset U8 Val Argument output U16 Offset Specify the offset the retainable memory output U8 Val Set the value of the retainable memory Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 59 CS SS EPC 1800 User Manual 7 5 5 5 ezpac write fram word Description Write a word data to a retainable memory Syntax I16 ezpac write fram word U16 Offset U16 Val Argument output U16 Offset Specify the offset the retainable memory output U16 Val Set the value of the retainable memory Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 60 TS SS EPC 1800 User Manual 7 5 5 6 ezpac write fram dword Description Write a double word data to a retainable memory Syntax I16 ezpac write fram dword U16 Offset U32 Val Argument output U16 Offset Specify the offset the retaina
8. 234567890123456 AES Key Figure 4 13 insufficient digits 4 1 2 5 Modbus Parameter The Modbus Parameters page let users edit Modbus related parameters for KW applications of EasyPAC Modbus requires settings of slave ID TCP and RTU parameters MyConfig provides sets of default settings in advance Users can change the settings and press the Save Settings button to transmit the settings to EasyPAC Next time when users login to MyConfig the settings set last time or the default values will be shown in the Modbus parameters page Users can always login to check in this page This page is shown in the following figure 21 EPC 1800 User Manual MyConfig V13 830 0 1 PAC Info Auto Execute Update AES Code Modbus Paramete t About MyConfig Slave ID TCP Parameters Port 502 TimeOut 3000 RTU Parameters a o a co l PortName Baudrate 115200 y DataBit StopBit Save Settings E 1 lt Parity none y Figure 4 14 setting of Modbus parameter dialog 4 1 2 6 Recover Factory Default Settings If users forget the changed password of admin or guest or the changed settings of the IP Modbus etc is not working a solution is to recover factory settings The step by step recovery from factory settings is as follows R F 1 Press the recovery button and then reboot 2 The EPC 1800 would roll back to the default IP address 192 16
9. 8 0 100 Now we could connect to it with MyConfig 3 The PAC info tab has previous set IP address shown in Saved IP Address 22 TS TPM SEZ EPC 1800 User Manual 5 Project Encryption This chapter is intended to give a brief overview of the project encryption for EPC 1800 The following section will give background information that is necessary to fully understand the functions and how to achieve hardware encryption of the system 5 1 Benefits TPM is a development system provider with EPC 1800 as one of the products System integrators could adapt EPC 1800 as the base system to develop applications for their customers However customers could find the top source vendor which is TPM and perhaps the worst case clone the storage in the system and purchase extra systems from TPM directly In case of customers bypass the original system provider which would cut down benefits for the system integrators cooperating with TPM EPC 1800 introduces a method called project encryption Through project encryption the system integrators can lockup certain functionalities or set timers to constrain the system running time Only the authorized products can be working properly The authorization is hold by the one and only one system integrator With the project encryption technology the system integrators cooperating with TPM and TPM will be tightly coupled cooperating relationship instead of vicious competition to make a win win par
10. 9 output US AES KEY 16 Input the 16 byte array indicating the AES KEY input U8 Validity The result of the checking 0 invalid 1 valid Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 53 EPC 1800 User Manual AES Key Example U8 SID 8 U8 SIK 16 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 every element is an integer ranged from 0 to 9 U8 AesKey 16 U8 Validity Generate AES Key _ezpac_initial ezpac_get_secure_id SID _ezpac_generate_aes_key SIK SID AesKey Check AES Key ezpac verify aes key SIK AesKey ref Validity Secure ID Array 09 es Ib f6 05 00 00 05 7 6 5 4 3 2 1 0 SI Key Array 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 15 14 13 12 1 10 9 8 7 I6 5 4 I3 I2 I 0 AES Key Array 9507 f73e 8bb9 5a78 d4a7 48dc bb4a 537b 15 14 131112 11 10 9 8 7116 5 4 3 2 1 0 54 GS TPM EPC 1800 User Manual 7 5 5 Platform Retain Functions Function name Description ezpac_read_fram_byte Read a byte data from a retainable memory ezpac_read_fram_word Read a word data from a retainable memory ezpac_read_fram_dword Read a double word data from a retainable memory ezpac_write_fram_byte Write a byte data to a re
11. TAS TPM E EPC 1800 User Manual EPC 1800 EPC 1800 User Manual Version V1 0 2013503 To properly use the product read this manual thoroughly is necessary Part No 81 OOEPC10 010 GS EPC 1800 User Manual Date Revision Revision History Description 2013 9 09 1 0 Document Creation TS TPM EPC 1800 User Manual O Copyright 2013 TPM The product including the product itself the accessories the software the manual and the software description in it without the permission of TPM Inc TPM is not allowed to be reproduced transmitted transcribed stored in a retrieval system or translated into any language in any form or by any means except the documentation kept by the purchaser for backup purposes The names of products and corporations appearing in this manual may or may not be registered trademarks and may or may not have copyrights of their respective companies These names should be used only for identification or explanation and to the owners benefit should not be infringed without any intention The product s name and version number are both printed on the product itself Released manual visions for each product design are represented by the digit before and after the period of the manual vision number Manual updates are represented by the third digit in the manual vision number Trademark B MS DOS and Windows 95 98 NT 2000 XP CE Visual Stu
12. ble memory output U32 Val Set the value of the retainable memory Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 61 RN TPM EPC 1800 User Manual 3 Appendix A 8 1 The Platform Error Code List Table PLATFORM_NoError 0 PLATFORM_NotReady_Error 9000 PLATFORM_CheckDeviceNotMatch_Error 9001 PLATFORM_Unknown_Error 9005 PLATFORM_DeviceUnknown_Error 9006 PLATFORM_Version_Error 9010 PLATFORM_Open_File_Error 9011 PLATFORM_Write_File Error 9012 PLATFORM_Read_File_Error 9013 PLATFORM Out Of Range Error 9020 PLATFORM InvalidParameter Error 9021 PLATFORM GetSecureIdFailed Error 9022 PLATFORM_GenAesKeyFailed_Error 9023 PLATFORM_InformationType_Unknown_Error 9030 PLATFORM_Debug_Infomation_0 9040 PLATFORM_Debug_Infomation_1 9041 PLATFORM_Debug_Infomation_2 9042 PLATFORM_Debug_Infomation_3 9043 PLATFORM_NotSucceed_Error 9090 62 RN e SF EPC 1800 User Manual 8 2 The Motion Error Code List Table ERR_NoError 0 ERR_BoardNotInit Yet 14001 ERR_BoardInitializedAlready 14002 ERR InvalidBoardNumber 14003 ERR InvalidAxisNumber 14004 ERR_InvalidParameter 1 14011 ERR_InvalidParameter2 14012 ERR_InvalidParameter3 14013 ERR_InvalidParameter4 14014 ERR_In
13. cocococococococononononononanononconononononononononononononononononononononononononononona 26 6 2 2 Created NEW Project A O EEEE E 26 6 23 Connect oO SHR E e 27 7 FUNCTION REFERENCE E A T T T T E T T T UE 32 Til HARDWARE INITIALIZATION TT 32 7 2 EIBRARY INI TALAT O Nr ea a aaa a E Aa ord eel Fine ado lad GE PER dE pea d 32 EPC 1800 User Manual Z 3 MOTIONNET MASTER tata 33 7 4 DATA DEFINITION m 33 7 5 PLATFORM aUe di ia e 34 7 3 1 Platform Information Punctions o ir E erai eek i eevee ction ee he ees 34 IAEA 40 7 5 3 Motionnet Related Functions sese sese eee 46 7 5 4 Platform ABS T Le 50 Tos Platform Reta Functions auo oe ber Fs a obs 55 7 AAA o sasas tsesa ease idorreri arose e eorr e NESE oS E IENE Enine aea 62 8 1 THE PLATFORM ERROR CODE LIST TABLE 55 5 5 5 nain ro pir Fe dived ena aenda en a aS aasa AaS aaa SAEs ideo 62 8 2 THE MOTION ERROR CODE LIST TABLE TTT 63 EPC 1800 User Manual 1 Introduction Utilizing the DMP Vortex86DX chipsets EPC 1800 is a compact size and powerful PAC Programmable Automation Controller EPC 1800 provides features including a Motionnet master a USB interface 10 100T Ethernet LAN port and a local DIO 8 DI and 8 DO EPC 1800 with fanless design offers noise free ultra reliable operating in the most demanding of industrial environment Motionnet is a high speed serial communication sy
14. dicated as the 1 circle to start debugging 2 Users could set breakpoints as show in the 2 circle 3 The 3 circle is the watch window Users can monitor variables in this frame 30 EPC 1800 User Manual File Ka View Project Build Debug PInvoke net Tools Window Community Help ib ou m dio CES Hex d gt lt dl E3 07 d BM EE a yq AS gt x3 S a Be ae HE S amp 3 gf SlavelP y SPC 2000 DAA Platform demoDlg cpp y X ia od E Platform demo 1 project B m Platform demo m A Header Files a E Resource Files Bl Platform demo ico A Platform demo rc GB Platform demo rc2 L S Source Files P 4 Platform deWo cpp Platform demoDlg cpp stdafx cpp YA Platform lib ReadMe txt s CPlatform demoDlg gt Y OnBnClickedplatformreadplatfor MAKEINTRESOURCE IDD PLATFORM DEMO DIALOG WIDE MAKEINTRESDURCE IDD PLATFORM DEMO DIALOG fendif avoid CPlatform demoDlg nBnClickedplatformreadplatform TODO Add your control notification handler code here TCHAR Platform 100 0 116 rc re _platform_read_platform Platform if re wsprintf msg T executed error code V rc else wsprintf msg T executed success Platform s Platform m msg SetllindowTextlW msg avoid CPlatform_demoDlg OnBnClickedplatformreadmachinename NEB less View AY Solution Properties New X
15. dio Visual C Visual BASIC are registered trademarks of Microsoft B Other product names mentioned herein are used for identification purposes only and may be trademarks and or registered trademarks of their respective companies TS TPM EPC 1800 User Manual Electrical safely B To prevent electrical shock hazard disconnect the power cable from the electrical outlet before relocating the system E When adding or removing devices to or from the system ensure that the power cables for the devices are unplugged before the signal cables are connected Disconnect all power cables from the existing system before you add a device B Before connecting or removing signal cables from motherboard ensure that all power cables are unplugged B Seek professional assistance before using an adapter or extension card These devices could interrupt the grounding circuit W Make sure that your power supply is set to the voltage available in your area B If the power supply is broken contact a qualified service technician or your retailer Operational safely E Please carefully read all the manuals that came with the package before installing the new device B Before use ensure all cables are correctly connected and the power cables are not damaged If you detect and damage contact the dealer immediately E To avoid short circuits keep paper clips screws and staples away from connectors slots sockets and circuitry B Avoid dust humi
16. dity and temperature extremes Do not place the product in any area where it may become wet E If you encounter technical problems with the product contact a qualified service technician or the dealer EPC 1800 User Manual Contents A A 5 1 INTRODUCTION mo 7 TIV OVERVIEW ERNEUT 7 1 2 HARDWARE aea el Te L 7 1 3 MOTIONNET COMPATIBLE DEVICES sss sees ee eee 8 2 DIMENSIONS AND INTERFACES isis cvivsscscsiscccovssvcucvessscscessccevdscdasvesvcctvev sdsassscecdevendecsseouceedeseedecdscaavuscddutececsdpisveussuiseuesusestuesdeccssy 9 2 1 MECHANICAL DIMENSIONS me EH PEREEEMTSES 9 2 2 INTERFACES IM M 10 2 3 PIN ASSIGNMENT FOR EACH CONNECTOR sese sees eee 11 DN EN teca 11 EEES ENDS edepvevs GRE ERE CER EE cal paysctae caus aeaaneatevdvencobweunsatessorssedeedesotewaees 12 2 3 3 Motiorinet tera dias 12 3 MOTIONNET INTRODUCTION sicssscdecsieccdicadeasddccessdiwatvacciuasavcdansavacdencdaeadeuccetedevesuaedeccdutedawcdveedeuakessennbevcadavbtostddubaaceaevsduebavescans 13 IL WHAT IS IMOTIONNET Parc dido 13 3 2 MOTIONNET FUNCTIONS iss sedsaevacsesccnacscacabevienaiadavayedeaseunccdedevaigedhoxeuadsaavedeacvensceaseauaibeauovaiuadadhoduasvevacaaaneuadbechanaiaduaabsdsatnuseceaabenaipeay 13 3 3 ADVANTAGE OF MOTIONNET a dsc 14 4 SOFTWARE UTILITIES siscsssv
17. en the communication cycle is interrupted by data communications refer to the calculation formulas in the user s manual to calculate the time latency 7 CYCLE TIME 64 Slaves lt 1 04ms 1 04ms 0 56ms 32 512 DI 512 DO 1024 DI 1024 DO x Slave Module x 64 Slave L 64 NODE On 20Mbps Max Cycle Time 15 1 x NODE 71 4 FIFO Time in us HIGH SPEED TIME DETERMINISTIC Figure 3 3 high speed and time deterministic support CS TPM SEZ EPC 1800 User Manual 4 Software Utilities There are two software utilities are provided to help users easily make use of EPC 1800 1 MyConfig for configuring the settings in EPC 1800 2 MyLink for diagnosing and testing functionalities Motionnet modules 4 1 MyConfig MyConfig is a software utility designed for EPC 1800 Besides providing basic hardware information MyConfig also support online update so that users could set and view the hardware status though Ethernet Recommended Hardware Requirement PC Hardware PC or laptop with Intel Centrino or above CPU Memory 1GB RAM OS Windows XP or Win7 LAN card RJ 45 10 100 1000 Mbps Software Installation EasyPAC needs 2 files MyConfigSvr exe and EZPACSDK dll PC needs 1 file MyConfig exe 4 1 1 Server on EPC 1800 Before powered up EPC 1800 please make sure the SW 1 is switched to position 1 PC is supposed to have the same network section a
18. etmask 255 255 25 0 Save Gateway 952 168 1 3 Admin Password Re Enter Password Save User Password Re Enter Password Save Date Figure 4 2 system information of EasyPAC 4 1 2 2 PAC Info Users can see the EPC 1800 basic hardware information at the top half of the page At the bottom half users could set up IP address subnet mask gateway admin password and guest password EPC 1800 User Manual Information CPLD Version soc Type Vortex86DX OS Version 12 S05 0 1 CPU Version DIP ISA Figure 4 3 Hardware basic information Settings IP Address rrer 7 Subnetmask 255 255 25 0 Save Gateway 92 168 33 Admin Password Po Re Enter Password Save User Password Re Enter Password NEN Save ste Date Figure 4 4 change settings of IP subnet mask gateway admin and guest password Note that only if the user is in the same network section can change the EPC 1800 IP address The IP address subnet mask and gateway settings could be saved if the Save button is hit and will take effect after restarting the system The admin and guest password would change immediately when new a password is input and Save button is pressed 4 1 2 3 Update It provides online software update Please make sure the PC is connected to the internet before online update If the Check for Updates button is p
19. he system in 8 bytes array format Syntax I16 ezpac get secure id U8 SecureID 8 Argument Pointer to an 8 byte array indicating the Secure ID If Secureld is input U8 SecureID 8 not null the data read from security ASIC will be used to generate AES_KEY Return PLATFORM_NoError The API is successfully returned Others Please refer to the error code table at Appendix A 51 CAS TPM EPC 1800 User Manual 7 5 4 2 ezpac generate aes key Description Generate the AES KEY with SI KEY and SECURE ID Syntax I16 ezpac generate aes key U8 SI Key 16 U8 SecureID 8 U8 AES Key 16 Argument Pointer to a 16 element byte array indicating SI key Every output U8 SI KEY 16 l element is an integer ranged from 0 to 9 output U8 Secureld 8 Input the 8 byte array indicating the Secure ID input US AES_KEY 16 The generated AES_KEY in 16 byte array format Return PLATFORM_NoError The API is successfully returned Others Please refer to the error code table at Appendix A 52 CS TPM EPC 1800 User Manual 7 5 4 3 ezpac verify aes key Description Check the validity of the generated AES KEY Syntax I16 ezpac verify aes key U8 SI Key 16 U8 AES Key 16 U8 Validity Argument Pointer to a 16 element byte array indicating SI key Every output U8 SI KEY 16 l element is an integer ranged from 0 to
20. hers Please refer to the error code table at Appendix A 43 TAS TPM EPC 1800 User Manual 7 5 2 4 ezpac set led3 Description Set the status of LED 2 Syntax I16 ezpac set led3 US OnOff Argument output US Data Set the value of LED 2 Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 44 aN TPM EPC 1800 User Manual 7 5 2 5 ezpac read lio Description Read local DI Syntax I16 ezpac read lio U8 Val Argument input U8 Val Return the status of local DI Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 45 EN TPM EPC 1800 User Manual 7 5 3 Motionnet Related Functions Function name Description _ezpac_link_mnet Activate the Motionnet master ezpac_get_mnet_baud_rate Get the baud rate of the Motionnet master ezpac_set_mnet_baud_rate Set the baud rate of the Motionnet master 46 SN TPM EPC 1800 User Manual 7 5 3 1 ezpac link mnet Description Activate the Motionnet master Syntax 116 ezpac link mnet Argument None Return PLATFORM NoBHrror The API is successfully returned Others Please refer to the error code table at Appendix A 47 TAS SS EPC 1800 User Manual 7 5 3 2 ezpac
21. ides a communication protocol based on the RS485 standard Can communicate variable length of data from 1 to 128 words when a 16 bit CPU is used An LSI central device G9001 controls the bus I O wiring can be greatly reduced by using a G9002 I O device Motor control wiring can be reduced by using a G9003 PCL Using a G9004 CPU emulation device reduces the wiring for general devices connected to a CPU Data can be exchanged between CPUs by changing the G9004 mode New devices can be added to the system on the fly Systems can be isolated using pulse transformers Transfer speed up to 20 Mbps EPC 1800 User Manual Maximum 64 slave devices for each serial line on a master device Input output control of up to 256 ports 2048 points motion control of up to 64 axes and LSI control of up to 128 devices Input output and status communication time for each device when inputting outputting and reading status data for each device the system automatically refreshes the center device RAM each communication cycle Cyclic communication 15 1 usec local device When 32 local devices are connected 1024 points of input output 0 49 msec When 64 local devices are connected 2048 points of input output 0 97 msec Data communication time cyclic communication can be interrupted with a command from the CPU Data communication time 19 3 usec to send or receive 3 bytes e g when writing feed amount data to the G9003 Data communicati
22. isccecdccceccvsccatevcteetessecevedavctedssadeusvacawceyseacusvesaduesveeensceteustvecdsevecedusvicssauveunabusduscseseucens succstessuncbaveieesess 16 4 1 io dc 16 4 1 I Server on EA 800 isch tein eta ne ve FUE ep d beni Seo ERE IN NS 16 4 1 2 PC Side DD M 16 5 PROJECT ENCRYPTION Ps 23 ENIM DIC 23 5 2 AES BRIEF INTRODUCTION sai ccacsscactncoecacdneaveacaece vad scnccnedcteaaasgeaneanaieaaus augccacenadseasancnaaboausdedanssdicdudanadcdncancacapeaneaceauauaasdenceasetedavesacneds 23 5 3 FUNCTIONAL ARCHITECTURE saviveussusccadsuwaoavacva sad os Qv v Ve wk E ER Ye E RV D ee v Eve dada 23 6 SOFTWARE DEVELOPMENT ENVIRONMEENT ccccsssscccssssecccsssccccsssecccessecccecseccceceecccusseccuecseeceusceccesececeuesesceuesecccesesccecseseees 25 6 1 SYSTEM REQUIREMENTS 22 ceo var cv eoe kv reca eura voa ro voa vw it iw FUSE T Fu VERE VES Ee VR 25 6 1 1 Hardware REGuireMents carioca 25 oM BA Software nicum 25 6 2 ONLINE DEBUGGING assis a rra ee ee proe e o sel ree Een eo b ba e ERE d EXP xa eda vede e a ku E EP ERE PN Xn E e bra d E Ea ER d d RR STENA TaN 26 6 2 1 Check the Ethernet IP Address of the EPC 1800 00oo
23. on time 169 3 usec to send or receive 256 bytes Serial communication connection cable Multi drop connections using LAN cables or dedicated cables Total cable length of one line 100 m 20 Mbps 32 local boards 10 Mbps 64 local boards Cable length between local boards 0 6 m or longer 3 3 Advantage of Motionnet It is possible to connect from center to terminal controller parts by one cable P UN re MOTOR Motion NET 4 100m gt d y A i seed Analog E da i Motion Il Il Il Ill rid emen ACTUATOR i M WIRE SAVING LONG DISTANCE Figure 3 2 wire saving and long distance support EPC 1800 User Manual Incyclic communication a communication cycle is as follows when a 20 Mbps speed is selected Number of local devices Communication cycle Remarks 8 0 12 ms If all of the local devices connected are I O devices 256 input output points can be used 16 0 24 ms If all of the local devices connected are I O devices 512 input output points can be used 32 0 49 ms If all of the local devices connected are I O devices 1024 input output points can be used 64 0 97 ms If all of the local devices connected are I O devices 2048 input output points can be used If a different number of local devices are connected or wh
24. other is the slave device Last slave module needs Terminator setting Slave riera Slave NO 1 NO Last 100 Meters Figure 7 3 illustration of master slave 7 4 Data Definition Name Description Range U8 8 bit ASCII character 0 to 255 16 16 bit signed integer 32768 to 32767 Ul6 16 bit unsigned integer 0 to 65535 132 32 bit signed long integer 2147483648 to 2147483647 U32 32 bit unsigned long integer 0 to 4294967295 32 bit single precision F32 3 402823E38 to 3 402823E38 floating point 64 bit double precision F64 1 797683134862315E308 to 1 797683134862315E309 floating point Boolean Boolean logic value TRUE FALSE 33 FAS TPM EPC 1800 User Manual 7 5 Platform Functions 7 5 1 Platform Information Functions Function name Description _ezpac_initial Initialize EPC 1800 platform ezpac_get_device_type Retrieve the type of the platform It will return EPC 1800 for this case _ezpac_beep Set the buzzer on for specified time _ezpac_beep_start Turn on or off the buzzer ezpac_read_rotary_switch_1 Read the number of the rotary switch 34 TS SS EPC 1800 User Manual 7 5 1 1 ezpac initial Description Initialize EPC 1800 platform Syntax I16 ezpac initial Argument None Return PLATFORM NoError The API is successfully returned Others Please refer to the erro
25. r code table at Appendix A 35 CS TPM EPC 1800 User Manual 7 5 1 2 ezpac_get_device type Description Retrieve the type of the platform It will return EPC 1800 for this case Syntax 16 _ezpac_get_device_type U8 Type Argument input U8 Type Return the type of the controller Return PLATFORM_NoError The API is successfully returned Others Please refer to the error code table at Appendix A 36 CS TPM EPC 1800 User Manual 7 5 1 3 ezpac beep Description Set the buzzer on for specified time Syntax I16 ezpac beep U32 Duration Argument output U32 Duration Duration that the buzzer is set to on Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 37 TS TPM EPC 1800 User Manual 7 5 1 4 ezpac beep start Description Turn on or off the buzzer Syntax I16 ezpac beep start US OnOff Argument output U8 OnOff Set on or off of the buzzer Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 38 CS TPM EPC 1800 User Manual 7 5 1 5 ezpac read rotary switch 1 Description Read the number of the rotary switch Syntax I16 ezpac read rotary switch 1 U8 Val Argument input U8 Val The number of the rotar
26. ressed it will show up the software versions on EPC 1800 and user s PC at the top half At the bottom half shows the latest software versions provided from TPM File UpdateInfo xml Figure 4 5 connect to FTP server The upper frame shows information including 1 PC side version 2 EasyPAC side version and 3 the latest version in FTP site If the older version displays means there is one or more components do not match with the newer version ones TPM EPC 1800 User Manual MyConfig V13 830 0 1 PAC Info Auto Execute Update AES Code Modbus Parameters About MyConfig The version The version of EPC The newest version of E New Version PC Version E EPC Version Check For MsgDevCE dll 12 828 0 1 iz 716 O 1 Updates HMI_RTU_1 exe 11 914 0 1 0 0 0 0 Start Update HMI_TCP_l exe 11 923 0 1 0 0 0 0 MyLink exe 13 0902 0 1 Figure 4 6 update software page In this Update tab it would show up the software versions that are out of date There is also a hint message informing software needs to be updated After OK button is pressed MyConfig starts connecting to the FTP server and downloading files File FwLib exe FIERET ERE Figure 4 7 download from FTP Upload to EPC 1800 File HMI TCP l exe BEEE Figure 4 8 update to EasyPAC Select files needed to be updated and press the Start Update button and then it
27. rom the above figure the hardware id is obtainable within EPC 1800 taken as the content for AES algorithm The SI key hard coded by the system integrator is the key to calculate the output value the registration key The registration key is like the activation code to activate the full functionalities of the EPC 1800 and it is not invertible Even though the whole data including the registration key could be cloned the end user or the system integrator s customer cannot obtain the SI key If an end user wants to buy a replacement from other resources instead of the designated system integrator is not doable since the hardware id would be different with the original one Therefore the calculated registration key with the original SI key and different hardware id as content would not match so that the specific functionalities could not be working or the system could only run for certain time period Once the system integrator gets EPC 1800 a very important thing need to do is to assign a set of SI key with a byte array of length 8 to it With this SI key the system integrator could generate the AES key byte array of length 16 using the provided function application interface _ezpac_generate_aes_key This function will be introduced later The generated AES key should be given to end users as the activation code when the user brings up the system at first time An EPC 1800 should check the validity and set the corresponding flag in the FRAM right
28. s EPC 1800 IP address 192 168 1 100 when the network cable is hooked up If these two settings are correct we can power up the EPC 1800 It will beep an alert sound if the system is successfully brought up and MyConfigSrv exe will be started automatically If there is no beep for a while means Ethernet failure or the IP address is in conflict with someone else 4 1 2 PC Side Settings 4 1 2 1 Login Users can login MyConfig with EPC 1800 IP address and password MyConfig provides two kinds of login account which have different privilege Default password for administrator is admin and default password for guest is guest The password could be updated after login The administrator has the privilege to view and change settings and the guest only could view the current settings Below only shows the case that sign in as administrator at the first time logging in with rotary switch set to 0 using default IP address 192 168 1 100 EPC 1800 User Manual IP address 192 168 1 100 Password e Figure 4 1 MyConfig login page After logging in there are 6 tabs PAC info Auto Execute Update AES code Modbus Parameters and About MyConfig 71 jl X PAC Info Rotary Switch Execute Update AES Code Modbus Parameters About MyConfig A Information CPLD Version MD SOC Type Fortesa OS Version 280 0933 CPU Version PE Settings IP Address 192 168 1 100 Subn
29. ss of the EPC 1800 Configure the IP address by using MyConfig In the following instances 192 168 1 130 is used as example Please make sure the IP address of EPC 1800 and the SDK machine are in the same network subnet SmartPAC is the server of the running application and connected with the SDK machine to achieve online debugging The Sequence to establish a connection to the EPC 1800 will be introduced next 6 2 2 Create a New Project When create a new EPC 1800 project please select Smart Device Windows CE 5 0 as the project type as shown in the follow figure 26 EPC 1800 User Manual lt Visual CH Visual Studio installed temp H Office f E Smart Device Fi Control Library z Pocket PC 2003 AEmpty Project My Templates search Online Templates Figure 6 2 select Windows CE 5 0 as the project type Go to the properties of the project and uncheck the checkbox of Deploy the latest version of NET Compact Framework including Service Packs as shown below Application Build Build Events Debug Resources Reference Paths Sieni Code Analysis Figure 6 3 uncheck the checkbox highlighted There are several steps to establish a connection to EPC 1800 1 Open the sample project for EPC 1800 Example C TPM EPC 1800 Samples VS2005_VC Platform_demo VC Platform_demo sIn 2 Configure the device option by selecting Tools gt Options in the function menu 27 wa
30. stem digital serial control interface for communication between host algorithm and axis controllers I O devices and other devices The EPC 1800 is an ideal system for industrial automation machine automation and motion control markets 1 1 Overview Figure 1 1 overview of the EPC 1800 1 2 Hardware Specifications CPU s DMP Vortex86DX 800MHz Memory e SDRAM 256MB DDR2 Operating System e WinCE 5 0 e RS 232 COM1 3 x 3 D SUB Male C t ale Connector RS 422 485 COMA x 1 USB e 1x USB2 0 Motionnet e Motionnet Master x 1 Ethernet s 1x RJ45 for 10 100T based LAN e 24V DC 300mA Power consumption 7W DIO Isolation 2 5KVDC 4 channel input Storage e 2GB onboard flash memory with operating system occupied Power Requirements TS TPM lt lt EPC 1800 User Manual 1 3 Motionnet Compatible Devices EPC 1800 equipped a Motionnet master with one Ring which is designed for users to quickly and easily develop applications such as motion control and controls of I O Motionnet is a new series of products designed for versatile automation applications especially with motion control requirements The built in Motionnet master is equipped in EPC 1800 will be introduced later EPC 1800 User Manual 2 Dimensions and Interfaces EPC 1800 provides necessary I O interfaces Besides often used serial communication ports there are user friendly interfaces including LAN and USB In this section
31. tainable memory ezpac_write_fram_word Write a word data to a retainable memory ezpac_write_fram_dword Write a double word data to a retainable memory 55 TS TPM EPC 1800 User Manual 7 5 5 1 ezpac read fram byte Description Read a byte data from a retainable memory Syntax 16 ezpac read fram byte U16 Offset U8 Val Argument output U16 Offset Specify the offset the retainable memory input U8 Val Return the value of the retainable memory Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 56 CAS TPM EPC 1800 User Manual 7 5 5 2 ezpac read fram word Description Read a word data from a retainable memory Syntax I16 ezpac read fram word U16 Offset U16 Val Argument output U16 Offset Specify the offset the retainable memory input U16 Val Return the value of the retainable memory Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 57 TAS TPM EPC 1800 User Manual 7 5 5 3 ezpac read fram dword Description Read a double word data from a retainable memory Syntax I16 ezpac read fram dword U16 Offset U32 Val Argument output U16 Offset Specify the offset the retainable memory
32. the online debug files would be located at described below Windows XP 7 32 bit OS source as shown in figure 7 1 C Program Files Common Files microsoft shared CoreCon 1 0 Target wce400 x86 Windows 7 64 Bit OS source as shown in figure 7 1 C Program Files x86 Common Files microsoft shared CoreCon 1 0 Target wce400 x86 25 EPC 1800 User Manual L CAProgram Files Common Files microsoft shared CoreCon 1 0 Target wce400 x86 a 1 ARABE y MASA y RAH lt L MIS E 122 ABA a Git H W 1 clientshutdown exe 2007 11 7 o Ma E HL CMAccept exe 2007 11 7 EF O ConmanClient2 exe 2007 11 7 E O eDbgTL dll 2007 11 7 E O TcpConnectionA dll 2007 11 7 EF O qo m H G pre r r t mi mi H imt Ml OQ itt Figure 6 1 file path for remote debugger files EPC 1800 destination USB Project Transfer the files from PC to EPC 1800 using FTP software The destination location of EPC 1800 is USB Project The account to log in FTP service of the EPC 1800 is account admin and password admin 6 2 Online Debugging Online debugger is a very useful tool when developers are developing their projects EPC 1800 also provides an online debugger mechanism to help user easily online debug and monitoring variables There are some preliminaries need to prepare of both developing PC and EPC 1800 before starting the online debugging 6 2 1 Check the Ethernet IP Addre
33. tion DeviceAppli E wl DeviceApplicat Environment Performance Tools Projects and Solutions Source Control Text Editor Database Tools r Debugging Device Tools Properties a factors E References Y HTML Designer EE Fort s E Microsoft Office Keyboard Settings E Program cs S Test Tools d H Windows Forms Designer Windows CE 5 0 TCP Connect Transport ActiveSync Startup Provider Figure 6 5 step sequence to configure the target device IP address for SDK machine Launch the EPC 1800 debugging service using telnet and execute the following programs in order 1 Clientshutdown exe 2 ConmandClient2 exe 3 CMAccept exe Note the IP address of the EPC 1800 is configured by MyConfig The three executables are in the in the folder created in previous section USB Project 8 Connect to EPC 1800 with the sequence in the following figure 29 La xoqpoo 7 samradorg Ez EPC 1800 User Manual 92 DeviceA pplication Ea Properties H E References H ES Forml cs i GF Program cs InitializeComponent gt y Error List Output ig Find Results 1 5 Find Symbol Results Figure 6 6 sequence to connect to SmartPAC Also users could select hit the Close button to disconnect from EPC 1800 as well 9 Start debugging as illustrated in the following figure Note 1 Press the button in
34. tnership 5 2 AES Brief Introduction This standard specifies the Rijndael algorithm a symmetric block cipher that can process data blocks of 128 bits using cipher keys with lengths of 128 192 and 256 bits Rijndael was designed to handle additional block sizes and key lengths However they are not adopted in this standard Throughout the remainder of this standard the algorithm specified herein will be referred to as the AES algorithm The algorithm may be used with the three different key lengths indicated above and therefore these different flavors may be referred to as AES 128 AES 192 and AES 256 Since the AES encryption decryption algorithm is not the main function of EPC 1800 the detailed introduction is not introduced in this manual Please refer to Wikipedia for more information 5 3 Functional Architecture Each EPC 1800 equipped an identification chip with unique serial number The unique serial number plays the role as the content for AES algorithm We call the unique serial number the hardware id from now on Another key held by the system integrator is called the SI key used for encryption decryption for the AES algorithm to make the registration key The illustration of the making of the registration is as the following figure 23 TS TPM SS EPC 1800 User Manual Sman PACO 1A Registration key Figure 5 1 generation of the registration key F
35. validParameter5 14015 ERR_InvalidParameter 6 14016 ERR_InvalidParameter7 14017 ERR _InvalidParameter8 14018 ERR InvalidParameter9 14019 ERR InvalidParameter10 14020 ERR InvalidParameter11 14021 ERR InvalidParameter12 14022 ERR SlowDownPointError 14031 ERR Err3PointsInput 14032 ERR GetCenterFailed 14033 ERR CompareBufferFull 14034 ERR AxisNotStoppedYet 14035 63
36. will start updating and pop up a progress bar like below EPC 1800 User Manual UpdateClient age eS Figure 4 9 progress bar of software updating If the update includes PC only the following dialog will pop up Information M O Update completed Figure 4 10 update complete dialog If the software update completes including EasyPAC it will pop up a dialog saying the update completed EPC 1800 needs to reboot to apply new software E Information O Update completed V Please reboot EasyPAC Figure 4 11 update complete dialog 4 1 2 4 AES Code Key16 Key15 Keyl4 Keyl Hex only Secure ID 600002af6e1da09 Get Secure ID Key16 Key15 Keyld Keyl Decimal only SI Key AES Key Generate Figure 4 12 dialog window for generating AES key Secure ID display the hardware id of the EPC 1800 Moreover the system integrator could input the hardware id of other EPC 1800 in the Secure ID text box to generate the corresponding AES key EPC 1800 provides an AES key encryption mechanism to protect our customers The SI key is supposed to be 16 numeric digits If the SI key is not 16 digits or it contains non numeric digits an error message will show up as figure below 20 EPC 1800 User Manual Key16 Key15 Eeyld Keyl Hex only Secure ID 5600002af6e1da09 Get Secure ID Key16 Key15 Keyld Keyl Decimal only SI Key 1
37. y switch Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 39 REN TPM EPC 1800 User Manual 7 5 2 Platform I O Functions Function name Description ezpac get ledO Get the status of LED 1 ezpac set ledO Set the status of LED 1 ezpac get led3 Get the status of LED 2 ezpac set led3 Set the status of LED 2 ezpac read lio Read local DI 40 TAS TPM EPC 1800 User Manual 7 5 2 1 ezpac get ledO Description Get the status of LED 1 Syntax I16 ezpac get led0 U8 OnOff Argument input U8 OnOff Return the status of LED 1 Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 41 CS TPM EPC 1800 User Manual 7 5 2 2 ezpac set ledO Description Set the status of LED 1 Syntax I16 ezpac set led0 US OnOff Argument Output U8 Data Set the value of LED 1 Return PLATFORM NoError The API is successfully returned Others Please refer to the error code table at Appendix A 42 SN TPM EPC 1800 User Manual 7 5 2 3 ezpac get led3 Description Get the status of LED 2 Syntax I16 ezpac get led3 U8 OnOff Argument input U8 OnOff Return the status of LED 2 Return PLATFORM NoError The API is successfully returned Ot

Download Pdf Manuals

image

Related Search

Related Contents

Sharp X2 User's Manual  User Manual - nu-beca  TPV-PCS0400A(販売終了品)  End User Manual V4.0 - MA  Manuel d`installation et mode d`emploi des ventilateurs  Manual do Proprietário  Tripp Lite 1.4kW Single-Phase Switched PDU, 120V Outlets (16 5-15R), 5-15P, 100-127V Input, 12ft Cord, 1U Rack-Mount  取扱説明書 - シャープ  MET ONE-Remote-Air-Particle-Counter-4800 Series-Brochure    

Copyright © All rights reserved.
Failed to retrieve file