Home

PISO-DNM100 Manual

image

Contents

1. Remote Devices Configuration Remote Devices I O Monitor Searched Devices SS Pol Input 2 Output 2 SS Strobe Input 2 COS Input 2 Output 0 BL Device 30 FT Pol Input 2 Output 2 ma Strobe Input 2 COS Input 2 Output 0 F Device 33 SC Poll Input 1 Output 1 m Strobe Input 1 COS Input 1 Output 0 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 87 5 2 4 How to add VO information into the EEPROM 1 Please activate your board or refer to section 5 2 2 2 Please search all devices or refer to section 5 2 3 3 Please select one of the I O connection items in the Searched Devices field And drag the item into the EEPROM field DNM_UtilityGE V1 0 Total Module fr Firmware Ver 2 00 Master ID dp v Slot No E Master Status 7 Baud Rate ba v active Reset Search Start all Stop al Clear al Module Firmware Network Device Device Device Remote Devices Configuration Remote Devices I O Monitor Searched Devices Devices in EEPROM BL Device 11 SC Poll Input 2 Output 2 SS Strobe Input 2 COS Input 2 Output 0 B E Device 30 m Strobe Input 2 COS Input 2 Output 0 EL Device 33 T Pol Input 1 Output 1 Gates m Strobe Input 1 COS Input 1 Output 0 4 If the mission is successful the users would see the succes
2. I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 9 1 4 DeviceNet Master Characteristics Using the API functions users don t need to take care of the detail of the DeviceNet protocol It can reduce the complexity of users DeviceNet Master Software The firmware mainly supports the Predefined Master Slave Connection Set and UCMM functions to allow users to merge third party s DeviceNet devices into the DeviceNet network It can help users to establish the connection with DeviceNet slave devices easily The general application architecture is demonstrated as Figure 1 3 WP 8000 Sensor p gt P E er es N DCON on RS 485 en gt O 1 7242D e Z Modbus RTU on RS 485 y E L I Figure 1 3 Application architecture 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 10 The DeviceNet protocol firmware provides the DeviceNet Master mechanism to communicate with slave devices by the Predefined Master Slave Connection Set and UCMM Connection Set In the DeviceNet communication protocol can be clarify as two forms One is the Explicit Message and others are I O Messages Here we only provide one explicit message connection and four I O connections as depicted in Figure 1 4 et Bit Strobe Connection I O se ER EE DeviceNet Poll Connection VO Master EE Device Change of State Connection UO j Cyclic Connection UO Figure 1 4 Device
3. Ka Do D S Poll input 2 Output 2 Device 33 S Pol Input 1 Output 1 I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 89 5 2 6 How to read write the I O data form the slave device 1 If the users have no I O configuration in the EEPROM please refer to section 5 2 4 to add at least one I O configuration 2 Please press Start all Device button to communicate with all slave devices The warning message would pop up In this example please click Yes Total Module fi Firmware Ver 2 00 Master ID 9 v Sot No E Master Status 0 Baud Rate 125k v Active Reset Search Start All Stop All Clear All e Firmware Network Device Device Device Remote Devices Configuration Remote Devices WeMoritar DNM_UtilityGE 3 The users can click Remote Device I O Monitor page to view the I O data of the slave devices DNM_UtilityGE V1 0 ie Total Module i Firmware Ver 2 00 Master ID o Slot No E Master Status E Baud Rate 125k v Active Reset Search AN HU Stop al Clear All lodule Firmware Network Device Device Device Remote Devices Configuration Remote Devices 1 0 Monitor J KL Ki KL Device Device Device 11 30 33 Device Name 2727 Status IDC Type IN OUT Input Data Output Data Write Get Attribute bie el ml atf ees Set Attribute fit v el ml aal 1 87124 DeviceNet Master API
4. The users can read or write device s I O data via the DeviceNet I O connections like Poll Strobe COS and Cyclic connection There are four important steps to read and write the I O data easily Firstly the users should know the device s I O input length in Byte and output length in Byte Secondly the users should set these two parameters by calling 187124 AddlOConnection Thirdly the users can set the initial output value by calling 187124 WriteOutputData before starting the specific slave device If the users do not initialize the output value the firmware default output value is 0 Fourthly the users can start communicating with device to read or write I O data If the specific slave device doesn t have any output channel the firmware will start communicating with the device automatically The Figure 3 9 shows the main steps to achieve this function There are more functions described in chapter 4 Call these a RRRRSRSRSR LEE F e 8 functions 2 H one time d a E D a D e e EI T uu EEEEEEE nannnnnnnns Set the initial output value Call these functions continually ONE EEEEEEEEEEEEEEEEEEEE EEEEEEEEE Ou EEEEEEEEEEEEEEEEEEEEEEEEEE EE EE EE EE EE EE EE EE EEEEP Figure 3 9 VO Connection Diagram Note The Strobe connection doesn t support the output channel The users can not use the 187124 WriteOutputData with Strobe connection I 87124 DeviceNet Master API functions User
5. s Manual V 2 3 2015 04 20 32 4 Function description All the functions of the I 87124 can be separated into five groups The idea is shown Figure 4 1 There is more detail description in CH 4 1 Figure 4 1 Five Function Groups Module Functions These functions in this group help users to find I 87124 modules or get module s information The users can use these functions to configure or manage the modules in the WP 8000 or ViewPAC series MCU Firmware Functions These functions in this group help users to operate the firmware or get the status of the firmware inside the I 87124 module Operating Functions These operating functions are the important operation of the DeviceNet master They help users to configure the whole network Searching Functions These searching functions can help user to debug the network including the wire connection the slave device s setting and etc When building the DeviceNet network the user can use these functions to make sure that the network or the slave devices are fine I O Functions These functions help user to read or write the I O data from or to the remote slave devices 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 33 4 1 DLL Function Definition and Description All the functions provided in the 187124 eVC DLL or 187124 DotNET DLL are listed in the following table and detail information for every function is presented in the next
6. 2 FLOW DIAGRAM FOR SLAVE CONFIGURATION ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ke ee 28 3 3 FLOW DIAGRAM FOR ON LINE ADDING REMOVING DEVICE ee ee ee ee ee ee ee ee ee 29 3 5 FLOW DIAGRAM FOR SETATTRIBUTE AND GETATTRIBUTE ee ee ee ee ee ee 31 3 6 FLOW DIAGRAM FOR VO CONNECTION 32 4 FUNCTION DESCRIPTION ees sesse esse ee ee oe oe oe Ge Ge Ge Ge Ge Ge Ge Ge Ge Ge Ge Ge Ge Ge ee ee ee ee ee ee ee ee 33 4 1 DLL FUNCTION DEFINITION AND DESCRIPTION ee ee ee ee ees ee ee ee ee ee ee ee ee ee ee ee 34 4 2 FUNCTION RETURN Con 38 4 3 FUNCTION DESCRIPTION ENNEN ENEE REENEN EENS ANNER NEES 41 4 3 1 187124 TotallS lidAModule a AR ia 41 4 32 STEI ActiveModule snien aa a A N dee 42 433 187124 CloseModule sann a a ee ee ee ee 43 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 3 A34 187124 GetDLI Version 02900 a EEN secu Ge ERG Ee ce vacneees de ede Ee Ee ee 44 4 3 5 N87 AA Get arin are Versoek EE ee ee 45 43 6 87124 ResetPirmware sisie de ees en teas ag es eg gee De DER dosti tated 46 4 3 7 671 A GEMaster MA CDs EE 47 4 3 8 187124 SetMasterMACID ige nege ee DE GR SS Ve Eg RR See Ge Be ge Re Ne Gee Ko ENE 48 SS US 7 EE 49 43 10 187124 setBaadRaie is EE RE NG EG EG Oe GR Ge GE GEE 50 4 3 11 187124 GetMasier Stats VG ee Ge AEN 51 43 12 187124 GetSlave Stats iss de gese ed Eed N ds Ee eed Ee de dee a i aii 32 e AIS 1 24 SEE EE 53 AS 14 IS 7124 SOPDERIGE SR ee Re se ee Re Re EE
7. 87124 DeviceNet Master Module Users Manual Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assumes no liability for damages consequent to the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use or for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2010 by ICP DAS Co LTD All rights reserved worldwide Trademark The names used for identification only may be registered trademarks of their respective companies 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 1 Revision Version Firmware Date Author Description Version 2 3 2 2 2015 Johney Update the figure 1 2 and 4 20 the figure 1 3 22 2 2 2010 Johney Add the function 07 13 187124 GetBackplaneHandle 2 1 2 1 2009 Johney Add the function 10 13 187124 ReadbackOutputData Improve the efficiency New API functions 2009 Add search functions ED 2 0 07 15 YOMMEY support PACs 1 WP 8000 series 2 ViewPAC series 2007 This manual is for the l 1 0 1 0 10 12 Johney 87124 module 1 87124 DeviceNet Master API functions Use
8. AAA 80 5 BAM UTILITY CE FOR UE 82 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 4 Dale ANTRODUCTION ease HEES SE 83 3 2 TUTORIAL DEMOS aio ereecht 84 5 2 1 Where to find the Hardware Information esse esse ee se ee ee ee Re ee ee ee 84 5 2 2 How to start using the TEE 85 5 2 3 How to search the slave devices siese Res sed ege Se ge SS dE 86 5 2 4 How to add I O information into the EEPROM ssseeesseeeeseeeesssssesssssssee 88 5 2 5 How to remove I O information from the EEPROM esse esse se ee es ss se ee ee ee 89 5 2 6 How to read write the I O data form the slave device sesse esse ee ee 90 5 3 DESCRIPTION OF THE BUTTONS jie thin couloir ieee edi een de 92 5 34 th Module Number es Se Eeer 92 5 3 2 Slot ul ET 92 ee Alive Module at Mss a ee ee BE 92 5 3 4 Reser Pitinware sessies see es GE Ge GR Gee Eye see by gee ee E EE Gee 92 31 EE 92 2 6 Stat All DG EE 93 KIr Hip All Devi ES ee 93 5 3 8 Clear All Deeg ies Mei EERS DR eN ee GN S E ER see ER Re GN ee 93 5 390 Eeer 93 3 3 10 Change Master ID TE 94 Deo dl Change E EE 94 5 3 12 Firmware Versionsnr ET 94 TIMI Master ES SEA EE OR GE ER DE le E a 94 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 5 1 General Information 1 1 DeviceNet Introduction The CAN Controller Area Network is a serial communication protocol which efficiently supports distributed real time control with a very high l
9. WORD DataLen BYTE DATA Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 DataLen output The length of the attribute value in byte DATA output The attribute value that returned from the slave device Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 78 4 3 39 187124 ReadbackOutputData e Description The function will read the data according with the consumed connection path of the specific MAC ID device via the I O connection e Syntax DWORD 187124 ReadbackOutputData BYTE BoardNo BYTE DesMACID BYTE ConType WORD TOL en BYTE IODATA e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 ConType input The connection type of the remote slave 0 Explicit connection type Poll connection type Bit Strobe connection type COS connection type Cyclic connection type Ph ON IOLen output The length of the I O data In byte IODATA output The remote VO data e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 79 4 3 40 187124 GetBackplaneHandle e Description The function will get the handle of the Backplane COM port T
10. found e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 70 4 3 31 187124 GetDevicelnfoFromScanList e Description This function will get the ScanList data of certain device in the I 87124 e Syntax DWORD 187124 GetDevicelnfoFromScanList BYTE cSlot BYTE DesMACID WORD ListCount BYTE ConnectionTypeList WORD InputDataLenList WORD OutputDataLenList WORD EPRList e Parameter cSlot input The slot number which the I 87124 is plugged in DesMACID input The MAC ID number ListCount output The amount of all information items ConnectionTypeList output The list of slave s connection type 0 Explicit connection type Poll connection type ND a Bit Strobe connection type COS connection type Cyclic connection type P O InputDataLenList output The list of slave s input length OutputDataLenList output The list of slave s output length EPRList output The list of slave s expected packet rate e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 71 4 3 32 187124 GetScanList e Description This function will get all the ScanList data in the I 87124 e Syntax DWORD 187124 GetScanList BYTE cSlot WORD TotalDevices BYTE DesMACIDList BYTE ConnectionTypeList WORD InputDataL
11. the slave device contains output channels and the initial output value is not set the master will send default value 0 to the output channels 5 3 7 Stop All Device Stop All Device This button would disconnect the communication with all slave devices which have configured in the EEPROM All remote slave devices will change to the off line state 5 3 8 Clear All Device Clear All Device This button can clear all configuration data in the EEPROM The MAC ID of the master would be reset to 0 and the baud rate reset to 125K bps 5 3 9 Write Output Data If the users have started to communicate with the slave device you can edit the Output Data field to change the value to the output channel Finish editing the value press the Write button to send the new data to the slave device 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 93 5 3 10 Change Master ID Master Dn v set If the users want to change the MAC ID of the DeviceNet Master you can select your own setting and then press the Set button After changing the MAC ID please reset firmware the make the change enable 5 3 11 Change Baud Rate Baud Rate 125k v If the users want to change the baud rate of the network you can select your own setting and then press the Set button After changing the baud rate please reset firmware the make the change enable 5 3 12 Firmware Version Firmware Ver 2 00 Thi
12. 63 ConType input The remote slave device s VO connection type 0 Explicit connection type Poll connection type Bit Strobe connection type COS connection type Cyclic connection type Ph ON e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 60 4 3 21 187124 GetAttribute e Description This function is used to send the request command to retrieve the attribute value of the specific device s instance Before calling this function you must start the device After calling this function you should execute the 187124 GetAttributeValue to get the response message returned from remote slave device e Syntax DWORD 187124 GetAttribute BYTE cSlot BYTE DesMACID BYTE Casel BYTE InstancelD BYTE AttributelD e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 ClasslD input The remote slave device s ClassID InstancelD input The remote slave device s InstancelD AttributelD input The remote slave device s AftributelD e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 61 4 3 22 187124 IsGetAttributeOK e Description This function is used to check whether the I 87124 has received the response message or not A
13. Config e Description This function will clear all configurations in the EEPROM of the I 87124 e Syntax DWORD 187124 ClearAllConfig BYTE cSlot e Parameter cSlot input The slot number which the I 87124 is plugged in e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 66 4 3 27 187124 SearchAllDevices e Description This function is used to retrieve all devices in DeviceNet network Attention This function will terminate all communications with remote devices This function is usually used for developing or debugging applications e Syntax DWORD 187124 SearchAllDevices BYTE cSlot e Parameter cSlot input The slot number which the I 87124 is plugged in e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 67 4 3 28 187124 SearchSpecificDevice e Description This function is used to retrieve some devices which specified by the users Attention This function will terminate all communications with remote devices This function is usually used for developing or debugging applications e Syntax DWORD 187124 SearchSpecificDevice BYTE cSlot WORD ListCount BYTE DesMACIDList e Parameter cSlot input The slot number which the I 87124 is plugged in ListCount input The amount of the slave s ID DestMACIDL
14. E Master Status E Baud Rate 125k LSet Clear All e Reset Search Start All Stop All Firmware Network Device Device Remote Devices Configuration Remote Devices UO Monitor Searched Devices Devices in EEPROM Poll Input 2 Output 2 vice 30 SG Poll Input 2 Output 2 mi Poll Input 1 Output 1 2 After finishing the searching procedure the utility shows the information of all the slave devices in the Searched Devices field DNM_UtilityCE V1 0 0k Total Module 1 Firmware Ver Eo Master ID fo v Slot No E Master Status E Baud Rate 125k Reset Search Start AN Stop All Firmware Network Device Device Clear All Device Remote Devices Configuration Remote Devices UO Monitor Devices in EEPROM 4 Device 11 o Device 30 e Device 33 Device 11 s Device 30 Device 33 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 86 3 The users can expand the device to find out more I O connection information of those devices The users can use this I O information to develop your configuration in the EEPROM DNM_UtilityGE V1 0 Total Module i Firmware Ver 2 00 Master ID 9 v Sot No 3 Master Status 0 Baud Rate 125k v Search Network Start All Device Clear All Device Reset Stop All lodule Firmware Device
15. Net Messaging The DeviceNet Communication Protocol is based on the concept of connections method Master should create connections with slave devices based on the command of exchanging information and UO data To establish the master control mechanism there are only four main steps to be followed Figure 1 5 demonstrates the basic process for the DeviceNet master communication The every step function is described in below 1 E Figure 1 5 Four steps to establish connection I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 11 1 Add device into firmware You should provide the slave device s MAC ID to add into firmware by using API function 2 Configure connection You can check the slave device s I O connection type and the VO data length When configuring the I O connection you should provide these parameters 3 Start Device After configuring connections users should start device by using API function The master will communicate with the slave device 4 Access I O data After communicating with slave devices you can access the I O data with corresponding read write function After adding the device into the firmware the master will wait for the I O configuration information Then users can create the I O connections in the next step Once I O connections have been created and started I O data may be exchanged among devices in the DeviceNet network according to master device demand Therefore the m
16. ORD 187124 ActiveModule void e Parameter None e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 42 4 3 3 187124 CloseModule e Description The function is used to stop and close the backplane COM port driver This method must be called once before exiting the user s application program e Syntax DWORD 187124 CloseModule void e Parameter None e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 43 4 3 4 187124 GetDLLVersion e Description The function can obtain the version information of 187124 eVC DLL or 187124 DotNET DLL e Syntax DWORD 187124 GetDLLVersion void e Parameter None e Return The DLL version information For example If 100 hex is return it means firmware version is 1 00 e Error Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 44 4 3 5 187124 GetFirmwareVersion e Description The function can obtain the version information of the firmware inside the 87124 module e Syntax DWORD 187124 GetFirmwareVersion BYTE cSlot e Parameter cSlot input The slot number which the I 87124 is plugged in e Return The firmware version information For example If 100 hex is return it
17. PI functions User s Manual V 2 3 2015 04 20 14 1 6 Features Hardware Features CPU 80186 80 MHz or compatible CAN Port 5 pin screwed terminal block CAN_L CAN SHLD CAN H N A for others CAN Controller NXP SJA1000T with 16M Hz clock CAN Transceiver NXP 82C250 Isolation 3000 VDC for DC to DC 2500 Vrms for photo couple Specification ISO 11898 2 CAN 2 0A and CAN 2 0B 3 indicating LED RUN NS and MS Terminator resistor Switch select 1200 terminator resistor Power Consumption 2W Operating Temperature 25 75 C Storage Temperature 40 80 C Humidity 5 95 RH non condensing DeviceNet Firmware Features Programmable Master MAC ID Programmable transfer rate 125K 250K 500K Each port support maximum nodes up to 64 Support Group 2 Only Server functions Support UCMM functions Predefined Master Slave Connection Set The maximum Fragment number is Input Output up to 64 Support I O Operation Mode Poll Bit Strobe and Change Of State Cyclic Support Auto Scan slave device function Support on line adding and removing devices Support Auto Reconnect when the connection is broken 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 15 1 7 Block Diagram The figure 1 8 shows the block diagram of the I 87124 module 1 UART Driver The UART Driver provides the communication channel between PAC WP 8000 or ViewPAC and I 87124 module 2 EEPROM The EEP
18. ROM stores the configuration information After restarting the PAC WP 8000 or ViewPAC the configuration data will be loaded form the EEPROM automatically 3 Control CPU The CPU inside implementing the DeviceNet firmware 4 CAN Controller The CAN controller is used for sending and receiving the CAN messages There is photo isolation between CAN controller and CAN bus Inside I 87124 Module Photo Isolated Figure 1 8 Block diagram of the I 87124 module I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 16 1 8 Product Check List In addition to this manual the package includes the following items 87124 module Software CD ROM Quick Start manual Release Note It is recommended that users should read the release note first All of the important information needed will be provided in the release note as follows o Where you can find the software driver utility and demo programs o How to install software amp utility o Where is the diagnostic program o FAQ s and answers 0 00 D Attention If any of these items are missing or damaged please contact your local field agent Keep aside the shipping materials and carton in case you want to ship or store the product in the future I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 17 2 Hardware Configuration This section will describe the hardware settings of the 87124 This information includes the wir
19. The 87124 provides the on line adding removing slave device functions The users need not to break the communication between original slaves device when adding or removing the slave devices The users can follow the steps to achieve this function The steps are shown in Figure 3 6 and Figure 3 7 1 On line Adding Devices IWER LEE eS SSSR ERGEEESe Zennnnnnnnnnnnnef tannnnnnnn TT Figure 3 6 On line Add Device Diagram I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 29 2 On line Removing Devices TER A RRRRRRRBR Znnnnnnnnng OUER Figure 3 7 On line Remove Device Diagram I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 SBaeSeeeeeeeumw Zannnnnnnnng 30 3 5 Flow Diagram for SetAttribute and GetAttribute The users can set or get DeviceNet device s property via DeviceNet network The 87124 provides these functions to set or get the properties of the remote devices easily The steps are shown in Figure 3 8 RENEE od SS SSS EEEESEEEEAASSEEKES D D D G D E a KL amp L a H a H a n r m U i a kl a z H H a a B a E B d L a Zasnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnf Figure 3 8 SetAttribute and GetAttribute Diagram I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 31 3 6 Flow Diagram for VO Connection
20. ain DeviceNet application fields include the following application area For more information please refer to www odva org e Production cell builds and tests CPUs e Dinnerware production e Beer brewery e HVAC module production e Equipment for food packing e Textile machines e Fiberglass twist machine e Trawler automation system e Sponge production plant e LCD manufacturing plant e Isolation wall manufacturing e Rolling steel door production e Overhead storage bin production e Bottling line e Pocket bread bakery e Tight manufacturing 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 8 1 3 I 87124 Architecture The 87124 provides users to establish DeviceNet network rapidly by Master Slave connection model I 87124 is a high performance DeviceNet master module with one CPU inside This architecture of the I 87124 almost doesn t cost MCU resource and really increases the work efficiency on DeviceNet network Applying the I 87124 users don t need to take care of the detail of the DeviceNet protocol The inside firmware implements the DeviceNet protocol to help users to establish the connection with DeviceNet slave devices easily The illustration about the idea is shown as Figure 1 2 ViewPAC WP 8000 WinCE 4 5 6 KM 1 87124 DeviceNet firmware DTD eee TPP ET OT hd KM aEEEEEEEEEEEEEEEEEEEEEEE EER EEEEEEEEEEEEEEE EE REED DeviceNet on CAN bus Figure 1 2 87124 architecture
21. aster device can access VO data of the slave devices by one of the four I O connection methods The API functions are not only easy to use but also providing a lot of the DeviceNet Master functions to retrieve and deliver the slave s VO data For more information please refer to functions description and demo programs in section 4 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 12 1 5 I 87124 Firmware Characteristics The l 87124 is a high performance DeviceNet master module The firmware inside the board implements DeviceNet protocol automatically when the module is active The firmware always listens to the bus and receives the message at the same time It works as shown in Figure 1 6 Explicit Bit Strobe Poll C onnection Connection COS Cyclic Connection Connection Connection Figure 1 6 Message Router I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 The 87124 firmware has a ScanList to store the remote slave devices information After power off the information still exists in the EEPROM When the users turn on the WP 8000 ViewPAC next time the ScanList will be loaded from EEPROM The users can easily use the DLL functions to configure it including adding devices or removing devices It works as shown in Figure 1 7 There is more information about the library functions in chapter 4 ScanList Figure 1 7 ScanList data structure I 87124 DeviceNet Master A
22. ceNet Master API functions User s Manual V 2 3 Send the get attribute command to the slave device Check whether the slave has replied fo the getting command or not Get the attribute 187124 GetAttribute Send the set attribute command to the slave device value of the Check whether the slave has replied fo the setting command or not Get specific slave device s I O information form the Scan List within the l 87124 module Get the VO information of all slave devices form the Scan List within the l 87124 module Write the I O information of all slave devices into the EEPROM within the 87124 module Clear all configurations in the EEPROM within the 87124 module 2015 04 20 36 Table 4 1 5 Functions Table Searching Functions 1 1 No Function Name Description 1 187124 SearchAllDevices 87124 will search the DeviceNe network to find out the I O information o all slave devices 2 187124 SearchSpecificDevice 87124 will search the DeviceNe network to find out the I O information o specific slave devices 3 187124 IsSearchOK Check whether the 87124 has searched completely or not 4 87124 GetSearchedDevices Get the result of the searching command and retrieve the slave s I O information Table 4 1 6 Functions Table I O Functions 1 1 Function Name Description 187124 ReadlnputData 187124 WriteOutputData Read the input data via I O connection
23. cription of the Buttons Here is the description of the buttons in the software utility 5 3 1 Total Module Number Total Module fi This field shows the total number of the 87124 module in the WP 8000 It will detect the I 87124 hardware automatically when running this software If the number is 0 the users can not use this software Please check the installation of the I 87124 module 5 3 2 Slot Number Slot No This shows which slot the l 87124 has been plugged in The drop down list will show the entire slots which the l 87124 module plugged in the WP 8000 5 3 3 Active Module Active This button could activate the l 87124 hardware which is selected in the Slot No field The users should click this button before using other functions 5 3 4 Reset Firmware Reset Firmware This button can restart the firmware of the l 87124 If the users have changed the master s ID or baud rate you must restart firmware to make change enable 5 3 5 Search All Device Search Network This button can search all the slave devices in the network 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 92 Notice When the master is communicating with the slave devices please dont use this function to avoid breaking the connection to the slave devices 5 3 6 Start All Device Start All Device This button can start to communicate with all slave devices which have configured in the EEPROM Notice If
24. ction path of the specific MAC ID device via the I O connection e Syntax DWORD 187124 WriteOutputData BYTE cSlot BYTE DesMACID BYTE ConType WORD IO en BYTE IODATA e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 ConType input The connection type of the remote slave 0 Explicit connection type Poll connection type Bit Strobe connection type COS connection type Cyclic connection type Ph ON IOLen Input The length of the I O data In byte IODATA Input The remote UO data e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 75 4 3 36 187124 SendExplicitMSG e Description This function is used to send the explicit request command to retrieve or configure the attribute value of the specific device s instance Before calling this function you must start the device After calling this function you should execute the l87124 GetExplicitMSGRespValue to get the response message returned from remote slave device e Syntax DWORD 187124 SendExplicitMSG BYTE cSlot BYTE DesMACID BYTE ServicelD BYTE ClassID BYTE InstancelD WORD DataLen BYTE DATA e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 ServicelD inpu
25. e connection and terminal resistance configuration for the CAN network 2 1 Board Layout CAN Port Figure2 1 87124 Board LAYOUT Pe NW i 87124 Master 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 18 2 2 Jumper Selection The following table shows the definition of jumpers Users need to refer to this table to configure the I 87124 hardware Description Status Flash Protection Flash Protection If you need to update S the firmware you should make it disable i before you download the firmware Enable Disable Download connector If you need to update the firmware you should use the download cable CA0904 to download the new firmware Resistor Switch CAN Port 1200 terminal resistor Table 2 1 Jumper selections 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 19 2 3 Connector Pin Assignment The 1 87124 is equipped with one 5 pin screwed terminal connector for wire connection of the CAN bus The connector s pin assignment is specified as follows The 5 pin screwed terminal connector of the CAN bus interface is shown in Figure 2 5 and the corresponding pin assignments are given in Table 2 2 Pin 1 Pin 2 Pin 3 Pin 4 Pin 5 Figure2 5 S5 pin screwed terminal connector Pin No Signal Description 1 N A No use 2 CAN_H CAN_H bus line dominant high 3 CAN_SHLD Optional CAN Shield 4 CAN_L CAN_L bus li
26. enList WORD OutputDataLenList WORD EPR List e Parameter cSlot input The slot number which the I 87124 is plugged in TotalDevices output The data count of all the information DestMACIDList output The MAC ID of all the slave devices in the ScanList ConnectionTypeList output The connection type of all the slave devices in the ScanList Explicit connection type Poll connection type Bit Strobe connection type COS connection type Cyclic connection type Ph OND A OH InputDataLenList output The input data length of all the slave devices in the ScanList OutputDataLenList output The output data length of all the slave devices in the ScanList EPR_List output The EPR value of all the slave devices in the ScanList e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 72 4 3 33 187124 ImportEEPROM e Description This function will write all specific devices information in the ScanList to the EEPROM e Syntax DWORD 187124 ImportEEPROM BYTE cSlot WORD ListCount BYTE ConnectionTypeList WORD InputDataLenList WORD OutputDataLenList WORD EPR List e Parameter cSlot input The slot number which the I 87124 is plugged in ListCount input The data count of all the information ConnectionTypeList input The connection type of all slave devices 0 Explicit connection
27. evel of security It is an especially suited for networking intelligent devices as well as sensors and actuators within a system or sub system In CAN networks there is no addressing of subscribers or stations in the conventional sense but instead prioritized messages are transmitted DeviceNet is one kind of the network protocols based on the CAN bus and mainly used for machine control network such as textile machinery printing machines injection molding machinery or packaging machines etc DeviceNet is a low level network that provides connections between simple industrial devices sensors actuators and higher level devices controllers as shown in Figure 1 1 ERHALE gaggggag y 7565 DNM 1 7241D 1 7242D CAN 8124 CAN 8224 CAN 8424 RI hy Figure 1 1 Example of the DeviceNet network 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 6 DeviceNet is a cost effective solution to one kind application of control c area network It reduces the connection wires between devices and provides rapid troubleshooting rejection function The transfer rate can be up to 500Kbps within 100 meters The transfer distance can be up to 500 meters in 125Kbps See Table 1 1 It allows direct peer to peer data exchange between nodes in an organized and if necessary deterministic manner Master Slave connection model can be supported in the same network Therefore DeviceNet is able to facilitate all a
28. ff This shows that all of the slave devices are communicating with the l 87124 normally 2 LED twinkle Yellow This shows that at least one slave device occurs communication errors Maybe the configuration errors or slave devices errors happened 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 23 2 6 Update the I 87124 s firmware When the users want to download the new firmware into the I 87124 the users need to follow the steps as described below A Preparing the hardware 1 General RS 232 cable 2 The specific download cable RS 232 9 pin to 4 pin Part No CA0904 3 The WP 8000 or ViewPAC series MCU B Selecting the jump and connecting the cable 1 The users should make the flash protection jump disable and connect the JP3 CAN Port Swi 87124 Connector 3 Connect the download cable CA0904 with the COM port in the PC 4 Plug the I 87124 into the WP 8000 or ViewPAC series MCU 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 24 1 87124 WP 8000 iPAC 8000 C Preparing the software and the new firmware 1 The download toolkit 7188xw exe 2 The new firmware 87124Vxx exe and autoexec bat D Starting to update the new firmware 1 Turn on the WP 8000 or ViewPAC series MCU 2 Run the 7188xw exe 3 There are seven steps to complete the download process Step 1 key in the command del y Step 2 key in the c
29. fter checking the response message you should execute the l87124 GetAttributeValue to get the response message returned from remote slave device e Syntax DWORD 187124 IsGetAftributeOK BYTE cSlot BYTE DesMACID e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 62 4 3 23 187124 GetAttributeValue e Description This function is used to get the attribute value of the specific device s instance from the remote slave device Before calling this function the users should call 187124 GetAttribute to send request command first e Syntax DWORD 187124 GetAttributeValue BYTE cSlot BYTE DesMACID WORD DataLen BYTE DATA e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 DataLen output The length of the attribute value in byte DATA output The attribute value that returned from the slave device e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 63 4 3 24 187124 SetAttribute e Description The method is used to set the attribute of the specific device s instance Before calling this fu
30. functions User s Manual V 2 3 2015 04 20 90 4 The users can press the device text to display the device information including the device name and input data Total Module fi Firmware Ver 2 00 Master ID fo v Slot No 5 Master Status 0 Baud Rate 125k v Reset Search Start Ai Stop all Clear All Firmware Network Device Device Device Remote Devices Configuration Remote Devices UO Monitor 33 When clicking the text it will shows the I O data below Device Name DICPDAS CAN 8x24 Status DAD Type 1 ING OUT os Input Data Output Data Get Attribute fit Cass Inst attr Ee ere Set atrbute i E D v Class Inst attr 5 The users can press Write button to send the output data to the slave device DNM_UtilityGE V1 0 Total Module fi Firmware Ver Po Master ID dp v Slot No 3 Master Status o Baud Rate 125k Active Reset Search Stop All Clear All Module Firmware Network Device Device Remote Devices Configuration Remote Devices UO Monitor Ki Ki Device Device Device 11 30 33 This button can send the output data to the slave device Device Name DICPDAS CAN 8x24 DAT Type 1 ING Input Data Output Data Get Attribute a 00 m1 v del ml al Lee Hee The user can EE Zei TT Jess es ml ml I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 91 5 3 Des
31. ge ee 54 4 315 ee RE 55 4 3 16 187124_StopAllDevice eise kes e de SS gs Ge HOG gee os GO ee GR eg ede 56 4347 da Id ADRES SEE ER EE GE NE GE asta geese 57 4 3 18 18714 RetioveDEVieE ss RS EE Oe RSG N RR be ee ke el 58 4 3 19 187124_AddIOConnection ss Se EE ee Rd ENEE 59 4 3 20 187124 RemovelOConnmecHOn sesse esse ee ee GR Re GR Re ee 60 4 1 TH eege eene 61 4322 Is7124 IsGetAttributeOK siese es fess eegend debates dase Eege ses 62 4 3 23 ASTIQA AsetA rl Bitte EE 63 43 24 18 124 Set Attribute eessen ER ee N RE ee ere 64 43 29 187124 TSS el AU DUC OK e EE 65 A326 IBIZA Clear Alle Onin EE 66 4 3 27 18124 Search RR Ae 67 4328 187124 SearchS pecilicDeviCe ss deed med og Ee Ge Ge eee dE ee 68 AS 29 TOT ZA ee scien tensor wees ed mane tias 69 4 3 30 Is 7124 GetSearched Devices sss siste Ve SR SR eigene 70 4 3 31 187124 Getevieelotfobromzzcanl jet di 4332 IS7124 GetScanl ist eise RE Ge GE ER sei bo gee se ed be ee SR Ee 72 4 3 33 18 124 MNO TEES EP E is EWE PIA Re al ie Ge Oe DE de ee 73 4 3 34 1871242 Read Input ease ER EG ER Ge EE RRC 74 4 3 35 d8 7124 Write Output ata EE GE Ge Ge 75 4 3 36 187124 SendExplicitMSG is sesse Rees Se ed ge Se de se De Se Age Ee Eed 76 4 3 37 187124_IsExplicitMSGRespOK sesse De EE N Ge EE de DE 77 4 3 38 187124_GetExplicitMSGRespValue ccsccccssscsssssssesscssenescssnescessensennnes 78 4 3 39 187124 Readback Output ata sisie Seg ees AG sees ee be be eg Re ee 79 4 3 40 187124 GetbBackpolane Handle
32. hat would initialize the DeviceNet master device which you have selected in the Slot No field Total Module D Fini Slot No 3 v Mast Active Reset Searc Module Firmware Netw vices Configuratio 2 After activating the board the utility will read all configurations from the EEPROM After reading the configuration from EEPROM of DeviceNet master device successfully the utility shows the information in the Devices in EEPROM field DNM_UtilityGE V1 0 Total Module i Firmware Ver 2 00 Master D x Slot No E Master Status p Baud Rate 125k Active Reset Search Start AN Stop All Clear All Module Firmware Network Device Device Device Remote Devices Configuration Remote Devices UO Monitor Searched Devices l Devices in EEPROM ai Poll Input 2 Output 2 Device 30 Poll Input 2 Output 2 EL Device 33 SG Poll Input 1 Output 1 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 85 5 2 3 How to search the slave devices 1 After the module has been activated the users can press the Search all Devices button shown below As the users press the button the DeviceNet master device would search the devices It takes about 30 seconds to search the whole slave devices in the network The number of scanned devices is 64 DNM_UtilityGE V1 0 Total Module fi Firmware Ver 2 00 Master ID jo v Set sot No
33. he users could use uart_xxx function to access the I 87K series modules via this handle If the application has more than one thread the uart and 187124 functions should be protected by critical section function like MUTEX or CRITICALSECTION e Syntax HANDLE 187124 GetBackplaneHandle void e Parameter None e Return The handle of the backplane COM It includes UART Open e Usage Thread of 87K Module Thread of 87124 It includes UART_Close I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 80 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 81 5 DNM_UtilityCE for WP 8000 The utility does not work normally if the DeviceNet master series hardware driver is not installed correctly gu JeviceNet Master Utility An Easy Way to Communicate with DeviceNet Devices After searching the I 87124 modules the screen shoot is shown below DNM_UtilityGE V1 0 Total Module fal Firmware Ver Master ID v Slot No E vi Master Status Baud Rate v Active Reset Search Start All Stop All Clear Al Module Firmware Network Device Device Device Remote Devices Configuration Remote Devices I O Monitor Searched Devices Devices in EEPROM Del lt lt I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 82 5 1 Introduction The software utility includes various useful functio
34. ist input The list of all slave s MAC ID e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 68 4 3 29 187124 IsSearchOK e Description This function will check whether the searching process has finished or not e Syntax DWORD 187124 IsSearchOK BYTE cSlot e Parameter cSlot input The slot number which the I 87124 is plugged in e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 69 4 3 30 187124 GetSearchedDevices e Description This function will get the device which have been searched in the network e Syntax DWORD 187124 GetSearchedDevices BYTE cSlot WORD TotalDevices BYTE DesMACID BYTE Type WORD DevicelnputLen WORD DeviceOutputLen e Parameter cSlot input The slot number which the I 87124 is plugged in the PAC TotalDevices output The amount of all slave device which are found DesMACID output The list of slave s MAC ID which are found Type output The list of slave s connection type which are found 0 Explicit connection type Poll connection type Bit Strobe connection type COS connection type Cyclic connection type Ph ON DevicelnputLen output The list of slave s input length which are found DeviceOutputLen output The list of slave s output length which are
35. like Poll Strobe COS Cyclic Write the output data via I O connection like Poll COS Cyclic The Strobe doesn t support this operation 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 37 4 2 Function Return Code Table 4 2 1 Interpretation of the return code General Error 1 1 Return Error ID Comment Code 0 187124 NoError No error The backplane COM port doesn t be 10008 187124 PortNotActive activated 10015 187124 PortNoResp The backplane COM port replied nothing 10025 187124 PortlnUse The backplane COM port is used by another program 10027 187124 ReStartPort The module has been re plugged Please restart your application 5000 DNMXS_UnKnowError The DeviceNet has some unknown errors 1000 DNMXS_BoardNotActive The l 87124 has not been activated The master MAC ID collides with other 1001 DNMXS_OnlineError slave device in the DeviceNet network The CAN port can t send message 1002 DNMXS_CANBusError Please check the baud rate or the port of the CAN bus 1003 DNMXS _ Booting The I 87124 is still booting 1050 DNMXS_MACIDError The MAC ID is exceed the range 0 63 1051 DNMXS_BaudRateError The baud rate is exceed the range 0 2 The connection type is exceed the range 1052 DNMXS_ConnectionTypeError 0 4 1053 DNMXS_DuplicMasterMACID The MAC ID is the same with the master s ID 1054 DNMXS EEPROME
36. lue 0 125K bps 1 250K bps 2 500K bps e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 50 4 3 11 187124 GetMasterStatus Description The function is used to obtain the firmware status inside the l 87124 The users can call this function to make sure that the DeviceNet master is online successfully Syntax DWORD 187124 GetMasterStatus BYTE cSlot Parameter cSlot input The slot number which the I 87124 is plugged in Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 51 4 3 12 187124 GetSlaveStatus e Description This function is to get the remote slave device s communication status e Syntax DWORD 187124 GetSlaveStatus BYTE cSlot BYTE DesMACID e Parameter cSlot input The slot number which the I 87124 is plugged in DesMACID input The remote slave s MAC ID 0 63 e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 52 4 3 13 187124 StartDevice e Description This function is used to start to communicate with the specific device that the users applying to e Syntax DWORD 187124 StartDevice BYTE cSlot BYTE DesMACID e Parameter cSlot input The slot number which the I 87124 is pl
37. make the change enabled It will save the information in the EEPROM in the 87124 e Syntax DWORD 187124 SetMasterMACID BYTE cSlot BYTE MasterMACID e Parameter cSlot input The slot number which the I 87124 is plugged in MasterMACID input The new MAC ID of the master 0 63 e Return Please refer to the chapter 4 2 for the function return code I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 48 4 3 9 187124 GetBaudRate e Description This function can help you to get the DeviceNet baud rate information of I 87124 e Syntax DWORD 187124 GetBaudRate BYTE cSlot e Parameter cSlot input The slot number which the I 87124 is plugged in e Return The CAN bus baud rate information in the 87124 If the value is 0 the baud rate is 125Kbps If the value is 1 the baud rate is 250Kbps If the value is 2 the baud rate is 500Kbps e Error Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 49 4 3 10 187124 SetBaudRate e Description This function can set the DeviceNet baud rate of the I 87124 After calling this function you must call 187124 ResetFirmware to reset the firmware to make change enabled e Syntax DWORD 187124 SetBaudRate BYTE cSlot BYTE BaudRate e Parameter cSlot input The slot number which the I 87124 is plugged in BaudRate input The new baud rate va
38. means firmware version is 1 00 e Error Return Please refer to the chapter 4 2 for the function return code I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 45 4 3 6 187124 ResetFirmware e Description The function is used to reset the I 87124 firmware When the users have changed the baud rate of CAN bus or changed the Master s MAC ID the function must be called to make the change enable After calling this function the users should wait for 1 or 2 seconds to make the firmware boot up completely e Syntax DWORD 187124 ResetFirmware BYTE cSlot e Parameter cSlot input The slot number which the I 87124 is plugged in e Return Please refer to the chapter 4 2 for the function return code I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 46 4 3 7 187124 GetMasterMACID e Description The function can get the MAC ID of the DeviceNet master 87124 e Syntax DWORD 187124 GetMasterMACID BYTE cSlot e Parameter cSlot input The slot number which the I 87124 is plugged in e Return The MAC ID information 0 64 e Error Return Please refer to the chapter 4 2 for the function return code I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 47 4 3 8 187124 SetMasterMACID e Description The function can set the MAC ID of the DeviceNet master I 87124 After calling this function the users must call 187124 ResetFirmware to
39. nction you must start the device After calling this function you should execute the l87124 IsSetAttributeOK to check the response message returned from the remote slave device e Syntax DWORD 187124 SetAttribute BYTE cSlot BYTE DesMACID BYTE ClassID BYTE InstancelD BYTE AttributelD WORD DataLen BYTE DATA e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 ClasslD input The remote slave device s ClassID InstancelD input The remote slave device s InstancelD AttributelD input The remote slave device s AftributelD DataLen input The length of the attribute value in byte DATA input The attribute value that the users want to send e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 64 4 3 25 187124 IsSetAttributeOK e Description This function is used to get the response value after executing the 187124 SetAttribute function e Syntax DWORD 187124 IsSetAftributeOK BYTE cSlot BYTE DesMACID e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 65 4 3 26 187124 ClearAll
40. ne dominant low 5 N A No use Table 2 2 Pin assignment of the 5 pin screwed terminal connector 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 20 2 4 Wire connection In order to minimize the reflection effects on the CAN bus line the CAN bus line has to be terminated at both ends by two terminal resistances as in the following figure According to the ISO 11898 2 spec each terminal resistance is 1200 or between 1080 1320 The length related resistance should have 70 mQ m Users should check the resistances of the CAN bus before they install a new CAN network NN 120Q CAN_L Figure 2 4 CAN bus network topology Moreover to minimize the voltage drop over long distances the terminal resistance should be higher than the value defined in the ISO 11898 2 The following table can be used as a good reference OO Bus Cable Parameters BusiLength Terminal us Le Length Related i meter GE Cross Section Resisianice Resistance Q Type MO m 0 40 70 0 25 23AWG 124 0 1 0 34mm7 22AWG 40 300 lt 60 0 34 22AWG 127 0 1 0 6mm7 20AWG 300 600 lt 40 0 5 0 6mm 150 300 20AWG 600 1K lt 20 0 75 0 8mm 150 300 18AWG Table 2 4 Relationship between cable characteristics and terminal resistance 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 2 5 Indicator LED NS RUN MS 1 1 1 i 87124 DeviceNet Mas
41. ns These functions help users to diagnose and access the DeviceNet devices There are three main parts of these functions Diagnosis This utility supports to search all devices and specific devices in the network These functions help users to configure the connection of the slave devices Anymore the software also can diagnose the remote slave devices when building the DeviceNet network Configuration This software supports the users to configure the I O connection of the devices by searching devices After configuring the I O connection the information would be saved into the EEPROM of the I 87124 Remote VO access The software utility can easily access the I O data of all the slave devices The users can monitor the input data of the specific slave device and change the output data to the remote slave device with this utility 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 83 5 2 Tutorial Demos 5 2 1 Where to find the Hardware Information 1 The utility would search the number of modules in WP 8000 automatically It shows the count of the modules which have been found 2 The utility also lists the slot number of all modules in the Slot No field 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 84 5 2 2 How to start using the utility 1 Before using this utility the users should click ActiveModule button to activate the DeviceNet master device hardware T
42. ommand load Step 3 press ALT E Step 4 key in the firmware name 87124Vxx exe xx is the version No Step 5 key in the command load Step 6 press ALT E Step 7 key in the firmware name autoexec bat 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 25 Begin Key Thread Current set Use COM1 11526 N 8 1 AutoRun 87124 exe Autodownload files None otal File number is 2 do you really want to delete lt y n gt StartAddr gt 7600 FFFF Press ALT E to download file Input filename 87124U20 exe Load file 87124U26 exe cre 8243 60061 Send file info total 611 blocks Block 611 ransfer time is 19 547000 seconds 829 lt 8KCAN gt gt load File will save to A625 66085 Start ddr gt A000 6254 Press ALT_E to download filet Input filename autoexec bat Load file autoexec hbat cre C574 0000 end file info total 1 blocks Block 1 Transfer time is 0 047000 seconds C829 lt 8KCAN gt gt 4 Turn off the WP 8000 or ViewPAC series MCU 5 Make the flash protection enable and disconnect the JP3 CE 1 87124 Connector 6 Turn on the WP 8000 or ViewPAC series MCU and enjoy the new firmware of the I 87124 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 26 3 Flow Diagram for DeviceNet Application 3 1 Flow Diagram for Searching Devices Before developing the DeviceNet applications users should diagnose the connecti
43. on between the slave devices First the users can search the slave devices in the network by using the searching functions If the connection between the master with other slave devices is fine the uses can find the information of the corresponding slave devices When the users have no idea to communicate with the slave devices users can follow these steps shown in figure 3 2 The following functions can help users to get the DeviceNet information of the slave devices The users can find out the problem of the slave devices by using these functions The detail information about those functions is in the next chapter Figure 3 2 Searching Diagram I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 27 3 2 Flow Diagram for Slave Configuration After getting the DeviceNet I O information of the slave devices users should save the parameters into the EEPROM within the I 87124 module The firmware in the 1 87124 module will load the previous configuration from the EEPROM in the next boot up When the devices in the DeviceNet network are changed the users must set the configuration data to fit the application The configuration diagram is shown in Figure 3 3 There is more information about those functions in the next chapter Store into EEPROM Figure 3 3 Slave Configuration Diagram I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 28 3 3 Flow Diagram for On line Adding Removing Device
44. pplication communications based on a redefine a connection scheme However DeviceNet connection object strands as the communication path between multiple endpoints which are application objects that is needed to share data Baud rate bit s Max Bus length m 500 K 100 250 K 250 125 K 500 Table 1 1 The Baud rate and the Bus length 87124 can represent an economic solution of DeviceNet application and be a DeviceNet master device on the DeviceNet network I 87124 supports Group 2 only Server and UCMM functions to communication with slave devices It has an independent CAN bus communication port with the ability to cover a wide range of DeviceNet applications Besides 87124 uses the new CAN controller Phillips SJA1000T and transceiver 82C250 which provide bus arbitration error detection with auto correction and re transmission function It can be installed on the WP 8000 and ViewPAC system It is popularly applied in the industrial automation building automation vehicle marine and embedded control network Therefore that is an easy way to develop the DeviceNet network with I 87124 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 7 1 2 DeviceNet Applications DeviceNet is the standardized network application layer optimized for factory automation It is mainly used in low and mid volume automation systems Some users have also implemented DeviceNet for machine control systems The m
45. r s Manual V 2 3 2015 04 20 2 Contents REVISION EE EE EE N EN 2 1 GENERAL INFORMATION 0 cccssssssssssssssssssssssssssssssssssssssssssssssssssesssessseseses 6 1 1 DEVICENET INTRODUCTION ee ee ee ee ee ee ee se se ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee 6 1 2 DEVIGENET ee 8 REDER Eet ee ee Ge Ge oe ee Ge Ge EA 9 1 4 DEVICENET MASTER CHARACTERISTICS ee ee ee ee ee ee ee se se ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee 10 1 5 I S7124 FIRMWARE CHARACTERISTICS ees ee ee ee ee ee ee ee se ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee 13 EE 15 LF BEOGCK DIAGRAM SS ESEG EE e DR fe bce ee EE 16 L138 PRODUCE GHEGK EE 17 2 HARDWARE CONFIGURATION 2 cccccscscscscscscscscscscsescccscscscscscsscscscscessesees 18 DAGBOARDEAY OUT EE 18 2 2 SUMPERIS ELECTION oa eege Neie ee eege 19 2 3 CONNECTOR PIN ASSIGNMENT 1 ccssssssssceccccccccssssssceccccccssssucssesccscsessusussesccscseseuneueess 20 2 ASWIRE CONNECTION N ccs ss Castes ee Ee eeh 21 DiS UNDI CAT ORT Dis e202 fo OLE LASS EME NS ELSE RE 22 ERA ASE AA ER EE ee ah EE RO EE OR es Ee 22 DDD RUIN AGED EE 22 DDS MS TD EE 23 2 6 UPDATE THE I 87124 S FIRMWARE ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee 24 3 FLOW DIAGRAM FOR DEVICENET APPLICATION uuu cccccccccrcrcccceeeeee 27 3 1 FLOW DIAGRAM FOR SEARCHING DEVICES ees ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee Ee 27 3
46. rror The EEPROM is out of order 1055 DNMXS_NowScanning The I 87124 is searching the slave 1056 DNMXS ScanListError The Scan List has some errors 1057 DNMXS DeviceExist The information of the slave device already exists 1058 DNMXS DeviceNotExist The information of the slave device 8 doesn t exist 1059 DNMXS_MapTableError The MapTable has some errors 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 38 Table 4 2 2 Interpretation of the return code I O Error 1 1 Return Code MapTable Error Comment shes The Explicit connection is not 1100 DNMXS ExplicitNotAllocate established The Poll connection is not 1101 DNMXS PollNotAllocate established The Strob nection is not 1102 DNMXS BitStrobeNotAllocate TT TOE Connection Is no a established The COS connection is not 1103 DNMXS COSNotAllocate NEE ME established The Cyclic connection is not 1104 IDNMXS CyclicNotAllocate established The Poll connection has been 1105 DNMXS PollAlreadyExist established The Poll connection has been 1106 DNMXS_BitStrobeAlreadyExist S established The COS connection has been 1107 DNMXS_COSAlreadyExist established The Cyclic connection has been 1108 DNMXS_CyclicAlreadyExist y established The communication between l 1109 IDNMXS CommunicationPause 87124 and all slave devices has been suspended 1 87124 DeviceNet Master API function
47. s User s Manual V 2 3 2015 04 20 39 Table 4 2 3 Interpretation of the return code Slave Error 1 1 Return Code DeviceNet Error Comment 1150 DNMXS_SlaveNoResp The slave has no any response 1151 DNMXS_WaitForSlaveResp The l 87124 is waiting for the response form the slave device 1152 DNMXS_SlaveRespError The slave replied some errors 1153 DNMXS_OutputDataLenError The output length of the I O connection doesn t match the device s output length 1154 DNMXS_InputDataLenError The input length of the I O connection doesn t match the device s input length 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 40 4 3 Function Description 4 3 1 187124 Totall87124Module Description The function can get the count of total 87124 modules in the user s WP 8000 or ViewPAC series MCU Syntax DWORD 187124 Total 187124Module BYTE TotalModules BYTE SlotNoList Parameter TotalModules output The amount of total modules SlotNoList output The list of all slot No of each modules Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 41 4 3 2 187124 ActiveModule e Description The function is used to activate the entire 87124 module It must be called once before using the other functions of I 87124 APIs e Syntax DW
48. s shows the firmware version 5 3 13 Master Status Master Status fo This shows the current status of the I 87124 Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 94
49. sful message below And you can find the selected item has been added into the EEPROM field Elei Total Module fi Firmware Ver Po Master ID fo ze LSet Slot No F Master Status p Baud Rate 125k w Set Active Reset Search Start All Stop al Clear All Module Firmware Network Device Device Device Remote Devices Configuration Remote Devices HO Monitor Searched Devices Devices in EEPROM Device 11 EL Device 30 TE Poll Input 2 Output 2 m Strobe Input 2 COS Input 2 Output 0 EL Device 33 SS Poll Input 1 Output 1 m Strobe Input 1 Se COS Input 1 Output 0 sities Device 11 DNM _UtilityCE fok bii Device 30 Device 33 1 33 Device add OK Del lt lt 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 88 5 2 5 Howto remove I O information from the EEPROM 1 Please activate your board or refer to section 5 2 2 2 Please select one of the device items in the EEPROM field And then click the Del lt lt button DNM_UtilityGE V1 0 Total Module fi Firmware Ver Po Slot No TE Master Status E Master pb Set Baud Rate 125k v Search Start All Network Device Reset Firmware Stop All Device Clear All Device Searched Devices Remote Devices Configuration Remote Devices UO Monitor Devices in EEPROM
50. sub section However in order to make the descriptions more simply and clear the attributes for the both the input and output parameter functions are given as input and output respectively as shown in the following table Keyword Set parameter by user before Get the data from this parameter calling this function after calling this function input Yes No output No Table 4 1 1 Functions Table Module Functions 1 1 No Function Name Description 1 187124 Totall87124Module Get total 87124 modules in the MCU 2 187124 ActiveModule Make I 87124 module active 3 187124 CloseModule Close all the 87124 modules 4 187124 GetDLLVersion Get the DLL version of the 187124 eVC DLL or 187124 DotNET DLL Table 4 1 2 Functions Table Firmware Functions 1 1 No Function Name Description 1 187124 GetFirmwareVersion Get the version of the firmware inside the 87124 module 2 187124 ResetFirmware Reset the firmware in the 87124 module 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 34 Table 4 1 3 Functions Table Operating Functions 1 2 Function Name Description 187124 SetMasterMACID Set the MAC ID of the I 87124 module DeviceNet Master s MAC ID 87124 GetMasterMACID Get the MAC ID of the I 87124 module DeviceNet Master s MAC ID 187124 GetBaudRate Get the baud rate of
51. t The remote slave device s ServicelD ClassID input The remote slave device s ClassID InstancelD input The remote slave device s InstancelD DataLen input The length of the attribute value in byte DATA input The attribute value that the users want to send e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 76 4 3 37 187124 IsExplicitMSGRespOK e Description This function is used to check whether the I 87124 has received the response message or not After checking the response message you should execute the 187124 GetExplicitMSGRespValue to get the response message returned from remote slave device e Syntax DWORD 187124 _IsExplicitMSGRespOK BYTE cSlot BYTE DesMACID e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 71 4 3 38 187124 GetExplicitMSGRespValue Description This function is used to get the attribute value of the specific device s instance from the remote slave device Before calling this function the users should call 187124 SendExplicitMSG to send request command first Syntax DWORD 187124 GetExplicitMSGRespValue BYTE cSlot BYTE DesMACID
52. ter 2 5 1 NS LED Red The NS LED means Network Status It indicates that there are errors on the bus or there is any slave device s MAC ID collides with the 87124 s MAC ID There are two situations in NS LED 1 LED off This indicates that there is no error on the bus and about the MAC ID 2 LED twinkle Red This indicates that there are errors on the bus which maybe the situations as shown bellow a The CAN connector doesn t connect to the slave devices b The power of the slave devices is off c The MAC ID collision between master and slave devices is occurring 2 5 2 RUN LED Green The RUN LED indicates the I 87124 s firmware status There are three situations in RUN LED 1 LED off This indicates that there are some errors on the bus or in the 87124 module The DeviceNet firmware is not running 2 LED twinkle Green This indicates that the CAN bus works fine But there is no any slave devices configuration in the I 87124 s EEPROM The DeviceNet firmware I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 22 is waiting for configuration 3 LED solid on Green This indicates that the DeviceNet firmware is running The l 87124 module is communicating with the slave devices 2 5 3 MS LED Yellow The MS LED means Module Status It indicates any slave devices which is disconnecting with the 87124 module There are two situations in MS LED 1 LED o
53. the CAN bus 187124 SetBaudRate Set the baud rate of the CAN bus 187124 GetMasterStatus Get the status of the I 87124 module DeviceNet Master s status at present 187124 GetSlaveStatus Get the slave device s status 187124 StartDevice 187124 StopDevice 187124 StartAllDevice 187124 StopAllDevice 187124 AddDevice 187124 RemoveDevice 187124 AddlOConnection 187124 RemovelOConnection I 87124 will start to communicate with the specific slave device 87124 will stop to communicate with the specific slave device I 87124 will start to communicate with all slave devices I 87124 will stop to communicate with all slave devices Add the specific slave device s information into the l 87124 module DeviceNet Master Remove the specific slave device s information from the l 87124 module DeviceNet Master Add UO information of the specific slave device into the I 87124 module DeviceNet Remove specific slave device s I O information from the l 87124 module DeviceNet Master 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 35 Table 4 1 4 Functions Table Operating Functions 2 2 Function Name Description 187124 GetAttribute 187124 IsGetAftributeOK 187124 GetAttributeValue 187124 SetAttribute 187124 IsSetAttributeOK 187124 GetDevicelnfoFromScanL ist 187124 GetScanList 187124 ImportEEPROM 187124 ClearAllConfig 1 87124 Devi
54. type 1 Poll connection type Bit Strobe connection type COS connection type Cyclic connection type Ph OO N InputDataLenList input The input data length of all slave devices OutputDataLenList input The output data length of all slave devices EPR List input The EPR value of all slave devices e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 73 4 3 34 187124 ReadlnputData e Description This function is to get the data according with the produced connection path of the specific MAC ID device via the I O connection e Syntax DWORD 187124 ReadinputData BYTE cSlot BYTE DesMACID BYTE ConType WORD lOLen BYTE IODATA e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 ConType input The connection type of the remote slave 0 Explicit connection type Poll connection type Bit Strobe connection type COS connection type Cyclic connection type Ph ON IOLen output The length of the I O data In byte IODATA output The remote VO data e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 74 4 3 35 187124 WriteOutputData e Description The function will set the data according with the consumed conne
55. ugged in DesMACID input The remote slave s MAC ID 0 63 e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 53 4 3 14 187124 StopDevice e Description This function is used to stop to communicate with the destination device that the users appointed to e Syntax DWORD 187124 StopDevice BYTE cSlot BYTE DesMACID e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 54 4 3 15 187124 StartAllDevice e Description This function is used to start to communicate with all slave devices in ScanList e Syntax DWORD 187124 StartAllDevice BYTE cSlot e Parameter cSlot input The slot number which the I 87124 is plugged in e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 55 4 3 16 187124 StopAllDevice e Description This function is used to stop to communicate with all destination devices in ScanList e Syntax DWORD 187124 StopAllDevice BYTE cSlot e Parameter cSlot input The slot number which the I 87124 is plugged in e Return Please refer to the chapter 4 2 for the f
56. unction return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 56 4 3 17 187124 AddDevice e Description This function can add the slave devices into the ScanList of the I 87124 and save the information into the EEPROM Before communicating with any slave devices the users should call this function to add these devices e Syntax DWORD 187124 AddDevice BYTE cSlot BYTE DesMACID WORD Explicit_EPR e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 Explicit_EPR input The Expected Packet Rate Usually is 2500 e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 57 4 3 18 187124 RemoveDevice e Description This function is used for removing the specified slave device from the ScanList in the 87124 And the information of the device in EEPROM is erased at the same time e Syntax DWORD 187124 RemoveDevice BYTE cSlot BYTE DesMACID e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 e Return Please refer to the chapter 4 2 for the function return code 1 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 58 4 3 19 187124 AddlOConnection e Description This method is used to config
57. ure the I O connection of the specific MAC ID device The I 87124 can get set the data via the connection which connects to the specific slave according to the produced consumed connection path of this slave device This configuration data will be saved into EEPROM within the l 87124 e Syntax DWORD 187124 AddlOConnection BYTE cSlot BYTE DesMACID BYTE ConType WORD DevicelnputLen WORD DeviceOutputLen WORD EPR e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0 63 ConType input The remote slave device s VO connection type 0 Explicit connection type Poll connection type Bit Strobe connection type COS connection type 4 Cyclic connection type DevicelnputLen input The remote slave device s input length Byte DeviceOutputLen input The remote slave device s output length Byte EPR input The expected packet rate mSec WO N gt e Return Please refer to the chapter 4 2 for the function return code I 87124 DeviceNet Master API functions User s Manual V 2 3 2015 04 20 59 4 3 20 187124 RemovelOConnection e Description The function is used to remove the I O connection configuration e Syntax DWORD 187124 RemovelOConnection BYTE cSlot BYTE DesMACID BYTE ConType e Parameter cSlot input The slot number which the I 87124 is plugged in DestMACID input The remote slave device s MAC ID 0

Download Pdf Manuals

image

Related Search

Related Contents

GXV340 · GXV390  Manuale di istruzioni KHS 1  ISTRUZIONI D`USO  総合カタログ vol.5  Massive Table lamp 39704/29/10  descargar manual  DOSIFICADOR SENSOR DE JABÓN  Bedienungsanleitung  Data Sheet - Test Equipment Depot  Samsung DH24ZA1 User Manual  

Copyright © All rights reserved.
Failed to retrieve file