Home

PCI-L122-DSF PCI-L122

image

Contents

1. Note The offset must be within the range 0 Oxffff Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 3l TPM Motionnet Programming Manual 4 3 10 1122 dsf read fram word Format 116 status 1122 dsf read fram word U16 SwitchCardNo U16 Offset U16 Val Purpose Read a word data from the FRAM Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF Offset U16 The offset related to the accessible FRAM address Val U16 Word value in the FRAM with designated offset Note The offset must be within the range 0 Oxffff Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 32 TPM Motionnet Programming Manual 4 3 11 1122 dsf read fram dword Format 116 status 1122 dsf read fram dword U16 SwitchCardNo U16 Offset U32 Val Purpose Read a double word data from the FRAM Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF Offset U16 The offset related to the accessible FRAM address Val U32 Double word value in the FRAM with designated offset Note
2. AES relation functions Get the secure id from the security ASIC on PCI L122 DSF 1122 dsf get secure id board Generate AES key by inputting SI key using Rijndael algorithm 1122 dsf gen aes key This key plays the role of password 1122 dsf check aes key Check the validity of the calculated AES key 22 TPM Motionnet Programming Manual 4 3 1 1122 dsf open Format 116 status 2 1122 dsf open U16 existcards Purpose Initialize hardware and resources Parameters Name Type Description existcards U16 Get master card count in your PC Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 23 TPM Motionnet Programming Manual 4 3 2 1122 dsf close Format 116 status 122 dsf close Purpose Release hardware resources Parameters N A Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 24 TPM Motionnet Programming Manual 4 3 3 1122 dsf check switch card num Format 116 status 122 dsf check switch card num U16 SwitchCardNo U8 IsExist Purpose Check the existence of the PCI L122 DSF with a card number Paramet
3. OTE EEE ER EON EaR 38 4 3 17 122 dsf sCheCk ACS Key tetro terrere rt rr E te ree EERO E EARE 39 5 APPENDIX ess d 40 51 DEFINITION OF ERROR CODES ane 40 TPM Motionnet Programming Manual 1 Introduction 1 1 Motionnet Devices PCI L122 DSF master control card is designed for users who need to quickly and easily develop applications such as motion control and controls of I O PCI L122 DSF is a standard PCI master control card with high speed real time network extension called Motionnet Motionnet is a new series of communicating system designed for versatile automation applications PCI L122 DSF is designed following the Standard PCI form factor This master can connect up to 64x2 128 slave modules There are 3 categories of the slave modules for motion control digital and miscellaneous functions For motion control slave modules there are 3 types l axis 2 axes or 4 axes For digital I O slave modules there are 3 types 32 IN 32 OUT and 16 IN amp 16 OUT For miscellaneous slave modules there are AD DA models counter modes or the other customized type models The more detailed introduction of PCI L122 DSF is in the following subsection The functional block is illustrated in Figure 1 1 PCHL122 DSF Function Block Ring1 64 Modules
4. Ring2 64 Modules Figure 1 1 PCI L122 DIO functional block TPM Motionnet Programming Manual 1 1 1 Placement of the Board PCI LI22 DSF Figure 1 2 placement of PCI L122 DSF control board 1 1 2 Motionnet Extension Connector Figure 1 3 Motionnet extension connector Ring0 Ring1 for PCI L122 DIO Pin Label Description 1 Filed Ground 2 FG Filed Ground 3 RS485 High Speed RS 485 protocol 4 FG Filed Ground 5 Filed Ground 6 RS485 High Speed RS 485 protocol 7 FG Filed Ground 8 FG Filed Ground TPM Motionnet Programming Manual 1 1 3 Digital I O Connector Figure 1 4 digital I O connector Pin Label Description Pin Label Description 1 EXT INO GPIO Input 0 11 EXT OUTO GPIO Output 0 2 EXT INI GPIO Input 1 12 EXT OUTI GPIO Output 1 3 EXT IN2 GPIO Input 2 13 EXT OUT2 GPIO Output 2 4 EXT IN3 GPIO Input 3 14 EXT OUT3 GPIO Output 3 5 EXT IN4 GPIO Input 4 15 EXT OUT4 GPIO Output 4 6 EXT IN5 GPIO Input 5 16 EXT 5 GPIO Output 5 7 EXT IN6 GPIO Input 6 17 EXT OUT6 GPIO Output 6 8 EXT IN7 GPIO Input 7 18 EXT OUT7 GPIO Output 7 9 DI COM GPIO COM 19 Reserved NC 10 EGND GPIO GND 20 E24V External 24V DC 1 1 3 1 GPIO Input of Connection for NPN Sink Mode TLP280 or 220 Kohm equivalent INCOM IN1 1 8 W 4 7 Kohm i TLP280 or 220 Kohm equivalent IN8 1 8 W 4 7 Kohm i
5. 4 1 2 Library Initialization Motionnet library can be initialized by hardware device driver library call With the Linkage between 18 TPM Motionnet Programming Manual hardware and function library user can use different types of communication masters by the same software interface User Application Process g Motionnet DLL Hardware Driver DLL Figure 4 3 library relationship The hardware needs to be initialized by calling the following software function calls 1122 dsf open 1122 dsf set ring config Y mnet start ring Y mnet get ring active table Figure 4 4 software function call sequence to initialize hardware 4 1 3 Motionnet Master The operation of Motionnet extension is divided into the following 2 groups One is the Motionnet master device the other is the slave device Last slave module needs Terminator setting D ART CS FF OCT 100 Meters Figure 4 5 illustration of master slave 19 TPM Motionnet Programming Manual 20 TPM Motionnet Programming Manual 4 2 Data Definition Name Description Range U8 8 bit ASCII character 0 to 255 16 16 bit signed integer 32768 to 32767 U16 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 F32 32 bit single precision floating point 3 402823E38 to 3 4028
6. ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 37 TPM Motionnet Programming Manual 4 3 16 1122 dsf gen aes key Format 116 status 2 1122 dsf gen aes key U16 SwitchCardNo U8 51 Key 16 U8 SecureID 8 U8 AES Key 16 Purpose Generate AES key by inputting SI key using Rijndael algorithm This key plays the role of password Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF Pointer to a 16 element byte array indicating SI key every element is an SI Key 8 U8 integer ranged from 0 to 9 Pointer to a 8 element byte array indicating Secure ID if SecureID is SecureID 8 U8 NULL the data read from Security ASIC will be used to generate AES Key AES 16 U8 Pointer to a 16 element byte array indicating AES key Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 38 TPM Motionnet Programming Manual 4 3 17 1122 dsf check aes key Format I16 status 1122 dsf check aes key U16 SwitchCardNo U8 51 Key 16 U8 AES Key 16 U8 Validity Purpose Check the validity of the calculated AES key Parameters Name Type Description SwitchCardNo U16 The rotary switch se
7. BaudRate U8 Baud rate settings Argument Baud rate 0 2 5Mbps 1 5Mbps 2 10Mbps 3 20Mbps Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 27 TPM Motionnet Programming Manual 4 3 6 1122 dsf read local input Format 116 status 1122 dsf read local input U16 SwitchCardNo U8 Val Purpose Obtain the input ON OFF status of 8 local digital input channels which are in the CN3 port Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF Val U8 8 channel entrance point ON OFF condition feedback value 0x00 Oxff Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table Note BitO Bit7 represents the status of the GPIO in Channel 0 7 Bit 1 gt Ch 0 is ON Bit 0 gt Ch 0 is OFF 28 TPM Motionnet Programming Manual 4 3 7 1122 dsf read local output Format I16 status 2 1122 dsf read local output U16 SwitchCardNo U8 Val Purpose Obtain the output ON OFF status of 8 local digital output channels which are in the CN3 port Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF Val U8 8 channel entrance po
8. Figure 1 5 GPIO input of connection for NPN Sink mode TPM Motionnet Programming Manual 1 1 3 2 GPIO Input of Connection for PNP Source Mode TLP280 or 220 Kohm equivalent i INCOM IN1 1 8 W 4 7 Kohm 1 TLP280 220 Kohm equivalent IN8 1 8 W 4 7 Kohm i Figure 1 6 GPIO Input of connection for PNP Source mode 1 1 3 3 GPIO Output of Connection for Transistor TLP280 or equivalent 1 8 W 3 3 Kohm OUTCOM1 OUT1 TD62081AF or bod equivalent a TLP280 or equivalent 1 8 W 3 3 Kohm OUTS 1 TD62081AF or 2 5A equivalent Figure 1 7 GPIO output of connection for transistor 10 TPM Motionnet Programming Manual 1 1 4 Card Number Switch RSW1 If there are 2 PCI L122 DSF cards installed in the system it is necessary to specify the ID for each card respectively by configuring the DIP rotary switch as shown below Figure 1 8 DIP rotary switch on PCI L122 DSF Label Description 0 7 Card 0 to card 7 8 Reserved 11 TPM Motionnet Programming Manual 2 Motionnet Introduction 2 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 techni
9. The offset must be within the range 0 Oxffff Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 33 TPM Motionnet Programming Manual 4 3 12 1122 dsf write fram byte Format 116 status 2 1122 dsf write fram byte U16 SwitchCardNo U16 Offset U8 Val Purpose Write a byte data to the FRAM Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF Offset U16 The offset related to the accessible FRAM address Val U8 Byte value to be written to the FRAM Note The offset must be within the range 0 Oxffff Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 34 TPM Motionnet Programming Manual 4 3 13 1122 dsf write fram word Format I16 status 122 dsf write fram byte U16 SwitchCardNo U16 Offset U16 Val Purpose Write a word data to the FRAM Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF Offset U16 The offset related to the accessible FRAM address Val U16 Word value to be written to the FRAM Note The offset must be within the
10. 0 Mbps speed is selected Number of local Communication Remarks devices cycle 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 when the communication cycle is interrupted by data communications refer to the calculation formulas in the user s manual to calculate the time latency 20Mbps Slave Module 2 64 Slave CYCLE TIME 64 Slaves 1 04ms ES 1 04ms 0 56ms ODE 32 64 N 512 DI 512 DO 1024 01 1024 DO On 20Mbps Max Cycle Time 15 1 x NODE 71 4 FIFO Time in us HIGH SPEED TIME DETERMINISTIC Figure 2 3 high speed and time deterministic support 14 TPM Motionnet Programming Manual 2 4 Motionnet Product Family 107 D1xx Series 107 D2xx Series EZM D1xx Series 106 A180 Series 106 A104 Series 108 A122 RRR 108 T140 f 4 cb R 102 1 1 Series 108 104 Figure 2 4 Motionnet product family 15 TPM Motionnet Programmi
11. 23E38 64 bit double precision F64 1 797683134862315E308 to 1 797683134862315E309 floating point Boolean Boolean logic value TRUE FALSE 21 TPM Motionnet Programming Manual 4 3 PCI L122 DSF API List Function Name Description Card resource functions 1122 dsf open Initialize hardware and resources _1122 dsf close Release hardware resources 1122 dsf check switch card num Check the existence of the PCI L122 DSF with a card number 1122 dsf get start ring num Get the amount of the Motionnet Rings of the specified card 1122 dsf set ring config Set the baud rate of Motionnet Rings in the specified card Local digital I O Obtain the input ON OFF status of 8 local digital input channels 1122_dsf_read_local_input which are in the CN3 port Obtain the output ON OFF status of 8 local digital output 1122 dsf read local output channels which are in the CN3 port 1122 dsf write local output Set the 8 channels output data to the CN3 output port FRAM relation functions 1122 dsf read fram byte Read a byte data from the FRAM 1122 dsf read fram word Read a word data from the FRAM 1122 dsf read fram dword Read a double word data from the FRAM 1122 dsf write fram byte Write a byte data to the FRAM 1122 dsf write fram word Write a word data to the FRAM 1122 dsf write fram dword Write a double word data to the FRAM
12. ERIS See dud ene ROTE eva quee dn EROS a Pu ov ARD ann 12 2 2 MOTIONNET FUNCTIONS da andre M 12 2 3 ADVANTAGE OF enfe je 13 24 MOTIONNET PRODUCT EAMILYO vise ee eei vea vaso scart even ob vote VU ver 15 3 iegiemmlebilemete 16 3 1 a dat LV da a da a dou he REV date dada data das 16 3 2 AES BRIEF INTRODUCTION ttn e t nto cuo lo ceat de te dde nes aeo dde d die cle nde nodo x de xut xus dedi 16 3 3 FUNCTIONAL ARCHITECTURE r 16 4 FUNCTION REFERENCES cono naa ea ao Yu kbe EP ae Eo aeu cg psa ko c anstaesdan nan da A e FER ERE EEBRIERNKERNNRESNREERNEESRRUR 18 Z3 MOTIONNETINITIADIZATION 18 4 1 1 Hardware Initialization 18 4 1 2 Labrary Initialization eee ERROR REN AE ENDE ERI EGRE 18 41 3 Mouonnet Master eee PII e EE eee Efe edic Cei 19 4 2 DATA D FINITION NEE 21 Lacan 22 43 12 1122 dsf Oper
13. TPM Motionnet Programming Manual PCI L122 DSF PCI L122 DSF User Manual Version V1 1 2014A08 To properly use the product read this manual thoroughly is necessary Part No 81 02L122F 011 TPM Motionnet Programming Manual Revision History Date Revision Description 2012 6 30 1 0 Document creation 2014 4 8 1 1 Reformat API introductions and append some functions TPM Motionnet Programming Manual O Copyright 2010 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 Tr
14. ademark MS DOS and Windows 95 98 NT 2000 XP Visual Studio Visual C Visual BASIC are registered trademarks of Microsoft Borland C Builder is registered trademark of Borland MULTIPROG is registered trademark of KW software Other product names mentioned herein are used for identification purposes only and may be trademarks and or registered trademarks of their respective companies TPM Motionnet Programming Manual Electrical safely To prevent electrical shock hazard disconnect the power cable from the electrical outlet before relocating the system B 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 M 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 If the power supply is broken contact a qualified service technician or your retailer Operational safely Please carefully read all the manuals that came with the package before installing the new device E Before use ensure all cables are correctly connected and the power cables are not damaged If you d
15. ch 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 communication 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 2 3 Advantage of Motionnet Itis possible to connect from center to terminal controller parts by one cable C N rm IN MOTOR Motion NET 0m Mw di _ MIL MIL meon MOTOR WIRE SAVING LONG DISTANCE Figure 2 2 wire saving and long distance support 13 TPM Motionnet Programming Manual Incyclic communication a communication cycle is as follows when a 2
16. ers Name Type Description SwitchCardNo U16 The number of the card to be checked with the rotary switch setting IsExist U8 Equal to 1 if the card exists 0 if the card does not exist Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 25 TPM Motionnet Programming Manual 4 3 4 1122 dsf get start ring num Format 116 status 1122 dsf get start ring num U16 SwitchCardNo U16 RingNo Purpose Get the amount of the Motionnet Rings of the specified card Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF RingNo U16 The amount of the Motionnet Rings Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 26 TPM Motionnet Programming Manual 4 3 5 1122 dsf set ring config Format 116 status 1122 dsf set ring config U16 SwitchCardNo U16 RingOfCard U8 BaudRate Purpose Set the baud rate of Motionnet Rings in the specified card Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF RingOfCard U16 Ring Number 0 1
17. etect and damage contact the dealer immediately avoid short circuits keep paper clips screws and staples away from connectors slots sockets and circuitry Avoid dust humidity and temperature extremes Do not place the product in any area where it may become wet If you encounter technical problems with the product contact a qualified service technician or the dealer TPM Motionnet Programming Manual Contents CONTENU lemen 5 DEINTRO DUCTION anses ados MIR 7 15 1 MOTIONNET DEVICES ices sossscvscavsicassateicassawencsesacav anetsica eseten s ere re matt ilansatet ete catidennat ete a sen 7 1 1 1 Placement of the Board nn n n n n nennen 8 1 1 2 Motionnet Extension Connector 8 1 1 3 Digital Connector ete DW DRE ERE DE RE RD EE RR PUE 9 1 1 4 Number Switch RS WT eiae eo pedore ba 11 2 MOTIONNET INTRODUCTION eee aoa ea eae Yee e aeu nee pe a sene eee a cuneo Ren PN SEEN EUR NE ERE ERUX SERERE 12 2 1 WBAT ISIMIOTIONNET P none ERO ons eee
18. g 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 PCI L122 DSF the detailed introduction is not introduced in this manual Please refer to Wikipedia for more information 3 3 Functional Architecture Each PCI L122 DSF 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 16 TPM Motionnet Programming Manual Registration key Figure 3 1 generation of the registration key From the above figure the hardware id is obtainable within PCI L122 DSF taken as the content for AES algorithm The SI key hard coded by the system integrator is the key to calculate the output value
19. he 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 17 TPM Motionnet Programming Manual 4 Function Reference Motionnet is a low cost digital serial control interface for communications between host algorithm and axis controllers I O devices and other function devices Most physical or data layer tasks are completed by the ASIC hardware together with user friendly software under Windows operating system This chapter describes the operating principle and application interfaces of the Motionnet This chapter is helpful to users want to know more details about the operational principle of the motion control card 4 1 Motionnet Initialization The system initialization is divided into two parts hardware initialization and library initialization The hardware and system layer is as shown in the following figure User Application Motionnet Library Master Address Motionnet System Layer Hardware Layer Figure 4 1 Motionnet system and hardware layer 4 1 1 Hardware Initialization ExistCard 1 L122DSF open Figure 4 2 hardware initialization interface
20. i Pee eb co e ete 23 AD Dien 1122 dsfcloSe RD RD Iu rives 24 4 3 3 1122 dsf check switch card num eeeeeeeeeeeeeeeeeeee ener rnnt reni EEEn erenneren 25 4 3 4 1122 dsf get start ring MUM eee EP Corne eio HR ME ERI LE en ul ER Foe EEE CE ee tete 26 4 3 5 1122 dsE COMMS iced res ORE GE ORO NIS RE ED EE BEES EH tee teinte id tassel 27 4 3 6 1122 dsf Jocal imputable Man ini 28 4 3 T 1122 dSE readTocal Pert eec orto tese ones te oae dee dote 29 43 6 1122 write local output eee reri et ter ee rn re e Pe eei A EE 30 4 3 9 1122 457 read fram byte eee et eee te eR eh ee t d eG tee iet 31 4 3 10 1122 dsf read fram ZOLCISORTCTERNCTRRE 32 4 3 11 1122 dsf read amp 33 43 12 1122 dsf write fram byte cust teet ehe rehus Er SERE tirer dns 34 4 3 13 1129 df write tram ee nn entente l 35 TPM Motionnet Programming Manual 43 14 M22 dsf write fram oc PER OE PESE 36 4 3 15 21122 457 petrsecure AM Mr EEE EE EEE antennes 37 4 8 16 1192 dst AES airetan a E ie E
21. int ON OFF condition feedback value 0x00 Oxff Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table Note BitO Bit7 represents the status of the GPIO in Channel 0 7 Bit 1 gt Ch 0 is ON Bit 0 gt Ch 0 is OFF 29 TPM Motionnet Programming Manual 4 3 8 1122 dsf write local output Format 116 status 1122 dsf write local output U16 SwitchCardNo U8 Val Purpose Set the 8 channels output data to the CN3 output port Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF Val U8 Output value 0x00 Oxff to be set to the output port Status Return Function Name Description ERR_NoError The function finished execution successfully Other Please reference to the Appendix error table 30 TPM Motionnet Programming Manual 4 3 9 1122 dsf read fram byte Format 116 status 2 1122 dsf read fram byte U16 SwitchCardNo U16 Offset U8 Val Purpose Read a byte data from the FRAM Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF Offset U16 The offset related to the accessible FRAM address Val U8 Byte value in the FRAM with designated offset
22. ng Manual 3 Project Encryption This chapter is intended to give a brief overview of the project encryption for PCI L122 DSF The following section will give background information that is necessary to fully understand the functions and how to encrypt a project of the system 3 1 Benefits TPM is a development system provider with PCI L122 DSF as one of the products System integrators could adapt PCI L122 DSF 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 PCI L122 DSF introduces a technology 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 partnership 3 2 AES Brief Introduction This standard specifies the Rijndael algorithm a symmetric block cipher that can process data blocks of 128 bits usin
23. ques Motionnet always transfers 4 bytes of data in 15 1usec 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 2 2 Motionnet Functions G9001A equipped center device 9 Figure 2 1 Motionnet system architecture Provides 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 center 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 Maximum 64 slave devices for each serial line on a master device Input output control of up to 256 ports 12 TPM Motionnet Programming Manual 2048 points motion control of up to 64 axes and LSI control of up to 128 devices Input output and status communication time for ea
24. range 0 Oxffff Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 35 TPM Motionnet Programming Manual 4 3 14 1122 dsf write fram dword Format 116 status 1122 dsf write fram dword U16 SwitchCardNo U16 Offset U32 Val Purpose Write a double word data to the FRAM Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF Offset U16 The offset related to the accessible FRAM address Val U32 Double word value to be written to the FRAM Note The offset must be within the range 0 Oxffff Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 36 TPM Motionnet Programming Manual 4 3 15 1122 dsf get secure id Format 116 status 2 1122 dsf get secure id U16 SwitchCardNo U8 SecureID 8 Purpose Get the secure id from the security ASIC on PCI L122 DSF board Parameters Name Type Description SwitchCardNo U16 The rotary switch set number of the PCI L122 DSF SecureID 8 U8 The pointer to an 8 byte array indicating Secure ID Status Return Function Name Description
25. t number of the PCI L122 DSF Pointer to a 16 element byte array indicating SI key every element is an SI Key 8 U8 integer ranged from 0 to 9 AES 16 U8 Pointer to a 16 element byte array indicating AES key Pointer to a variable that receives the validity of the AES Key 1 valid 0 Validity U8 invalid invalid Status Return Function Name Description ERR NoError The function finished execution successfully Other Please reference to the Appendix error table 39 TPM Motionnet Programming Manual 5 Appendix 5 1 Definition of Error Codes ERR NoError 0 ERR InvalidSwitchCardNumber 1 ERR SwitchCardNumberRepeated 2 ERR_OpenCardFailed 3 ERR CardNotExist 4 ERR_InvalidParameter 1 5 ERR InvalidParameter2 6 ERR InvalidParameter3 7 ERR InvalidParameterA 8 ERR InvalidParameter5 9 ERR InvalidParameter6 10 ERR InvalidParameter7 11 ERR_InvalidParameter8 12 ERR InvalidParameter9 13 ERR GetSecureldFailed 14 ERR GenAesKeyFailed 15 ERR OpenlInterruptEventFailed 16 40
26. the registration key The registration key is like the activation code to activate the full functionalities of the PCI L122 DSF 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 PCI L122 DSF 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 L122DSF gen 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 A PCI L122 DSF should check the validity and set the corresponding flag in the FRAM right after the system initialization using function L122DSF check aes key LI122DSF fram write word Hereafter when the system is brought up it reads the flag from FRAM If the read value matches t

Download Pdf Manuals

image

Related Search

Related Contents

EWCM8400/8600/8900 • EWCM9100  Programmation Journées scolaires  Incident Reporter™ Quick  User Manual  ATD Tools ATD-5840 User's Manual  mise en garde  MESSAGERIE 5 sur 5 séjour- MODE D`EMPLOI Séjour du 03 au 06  Nero Mobile - ftp.nero.com  Anneaux de levage  

Copyright © All rights reserved.
Failed to retrieve file