background image

PISO-DNS100-D/T 

PISO-DNS100U-D/T 

DeviceNet Multi-Slave PCI Board 

User’s 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 

PISO-DNS100(U) DeviceNet Slave API functions User’s Manual (Ver: 1.1)      2010/01/07 

The names used for identification only may be 

registered trademarks of their respective companies.

ГК

 

Атлант

 

Инжиниринг

 – 

официальный

 

представитель

 

в

 

РФ

 

и

 

СНГ

 

+7(495)109-02-08 [email protected] www.bbrc.ru 

Summary of Contents for PISO-DNS100-D/T

Page 1: ...his 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...

Page 2: ...2 3 3 Wire connection 22 2 4 INDICATOR LED 23 2 5 HARDWARE INSTALLATION 24 3 DRIVER INSTALLATION OF THE PISO DNS100 25 4 FLOW DIAGRAM AND SOFTWARE APPLICATION 31 4 1 SOFTWARE ARCHITECTURE 31 4 2 FLOW...

Page 3: ...DNS100_ReadIOInputData 53 5 3 16 DNS100_WriteIOInputData 54 5 3 17 DNS100_ReadIOOutputData 55 5 3 18 DNS100_ClearAllConfig 56 5 3 19 DNS100_ExportEEPROM 57 5 3 20 DNS100_ImportEEPROM 58 6 DEMO PROGRAM...

Page 4: ...tional 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...

Page 5: ...10 virtual slave devices and acts as Group 2 only Server on the DeviceNet network It supports up to 512 bytes of input 512 bytes of output data Each MAC ID can be set by program and would save into th...

Page 6: ...tion please refer to www odva org Production cell builds and tests CPUs Dinnerware production Beer brewery HVAC module production Equipment for food packing Textile machines Fiberglass twist machine T...

Page 7: ...and really increases the work efficiency on DeviceNet network Applying the PISO DNS100 U users don t need to take care of the detail of the DeviceNet protocol The inside firmware implements the Device...

Page 8: ...upports the Predefined Master Slave Connection Set functions to allow users to merge your own data into the DeviceNet network It can help users to establish the connection with DeviceNet master device...

Page 9: ...The DeviceNet Communication Protocol is based on the concept of connections method Master would create connections with slave devices based on the command of exchanging information and I O data The s...

Page 10: ...ter After adding the device into the EEPROM and reset the firmware the virtual slaves would send the Duplicate MAC ID Check Message immediately to find out the duplicate MAC ID If there is no duplicat...

Page 11: ...implements DeviceNet slave protocol automatically when the board is active The firmware always listens to the bus and receives the message at the same time It works as shown in Figure 1 5 1 Figure 1...

Page 12: ...st would be loaded from the 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 5 2 There is more information a...

Page 13: ...indicating LED one for green and another for red z Direct memory mapping to the CAN controllers z 2500Vrms photo isolation protection on CAN bus DeviceNet Firmware Features z Programmable Virtual sla...

Page 14: ...186 compactable CPU z 8K bytes DPRAM 1K bytes for system z 512 K bytes Flash memory 128K bytes for system z 512K bytes SRAM z RTC real time clock inside z 2K EEPROM 256 bytes for system z 31 bytes NV...

Page 15: ...ing the PISO DNS100 U the configuration data would be loaded form the EEPROM automatically 3 Control CPU The CPU inside implementing the DeviceNet slave firmware 4 CAN Controller The CAN controller is...

Page 16: ...e as follows Where you can find the software driver utility and demo programs How to install software utility Where is the diagnostic program FAQ s and answers Attention PISO DNS100 U DeviceNet Slave...

Page 17: ...igure 2 1 2 PISO DNS100U Board LAYOUT PISO DNS100 U DeviceNet Slave API functions User s Manual Ver 1 1 2010 01 07 17 Note PISO DNS100 U T layout is similar with PISO DNS100 U D The only difference is...

Page 18: ...00 D T into download mode Enable Disable JP4 None None DIP switch is used to set the PISO DNS100 board No Switch1 is for bit0 switch2 is for bit1 and so forth For example if the left hand side switch...

Page 19: ...s for bit0 switch2 is for bit1 and so forth For example if the left hand side switch switch 1 is ON the board No is set to 1 The range of board No is from 0 to 15 Be careful that the board No for each...

Page 20: ...connector for the CAN bus is shown in Figure 2 3 1 and the details for the pin assignment are presented in Table 2 2 1 2 3 4 5 CAN L CAN H Shield Figure2 3 1 5 pin screw terminal connector Pin No Sign...

Page 21: ...3 2 9 pin D sub male connector Pin No Signal Description 1 N A No use 2 CAN_L CAN_L bus line dominant low 3 N A No use 4 N A No use 5 CAN_SHLD Optional CAN Shield 6 N A No use 7 CAN_H CAN_H bus line...

Page 22: ...work 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 ref...

Page 23: ...rmware is working All virtual slave devices in the PISO DNS100 U are communicating with the master successfully 4 ON ON This indicates that the firmware works fine But there is no any virtual slave de...

Page 24: ...detail information could be found on the figure 2 1 and table 2 1 3 Check JP3 status of PISO DNS100 U D T If necessary enable it 4 Find an empty PCI slot for your PISO DNS100 U D T on the mother boar...

Page 25: ...master application The driver of PISO DNS100 U can be used in 2000 XP Windows environments For these Windows operation systems the recommended installation procedure is given as follows Step 1 Insert...

Page 26: ...de of the window Please click PISO DNS100 item Step 4 After changing to the following picture the users can read more information about the PISO DNS100 U board Step 5 Click install Toolkit for Windows...

Page 27: ...Press Next button The screen shoot is shown below After reading the license the users can accept it or not If the users accept it please select I accept and press Next button Step 9 After accepting t...

Page 28: ...ion the next screen shoot is shown as follows Please select Complete item and press Next button Step 11 The next screen shoot is shown as follows Please press Install button The setup process would st...

Page 29: ...d material to the indicated directory and register the driver on your computer The driver target directory is different according to the different systems as follows Windows NT 2000 WINNT SYSTEM32 DRI...

Page 30: ...t virtual slave devices You can refer to DeviceNet Virtual slave Utility manual to know the detail The next sections in this manual explain how to implement the DeviceNet virtual slave station by API...

Page 31: ...et DLL driver would throughout the CM100 dll into the KP_CM100 sys and windrvr6 sys to access the hardware system as shown in the following Figure 4 1 1 Figure 4 1 1 Software architecture in the Windo...

Page 32: ...load the previous configuration from the EEPROM in the next boot up After setting the configuration data the users should reset the firmware in the PISO DNS100 U to make new configuration active The c...

Page 33: ...ta from or to the remote DeviceNet master device The users don t need to know about the DeviceNet protocol The main steps are shown in Figure 4 3 1 Figure 4 3 1 Virtual slave I O Operation Diagram PIS...

Page 34: ...mware Functions These functions in this group help users to operate the firmware or get the status of the firmware inside the PISO DNS100 U Operating Functions These operating functions provide the us...

Page 35: ...No input No Yes output Table 5 1 1 Functions Table Board Functions Function Name Description No DNS100_GetBoardInf Get the information of the PISO DNS100 U 1 DNS100_TotalDNS100Board Get total PISO DNS...

Page 36: ...O information from the PISO DNS100 U 6 DNS100_ClearAllConfig Clear all configuration in PISO DNS100 U 7 DNS100_ExportEEPROM Export all configuration from PISO DNS100 U 8 DNS100_ImportEEPROM Import ne...

Page 37: ...icMsgFailure The cyclic messages are over 5 counts This is special function for CAN 10025 DNS100_DpramOverRange The command length is over 512 bytes 10026 DNS100_NoDpramCmd There is no command in DPRA...

Page 38: ...The board doesn t be activated 1006 DNSXS_SlaveError The virtual slave device has some errors 1101 DNSXS_DeviceAlreadyExist The virtual slave device already exists in the EEPROM 1102 DNSXS_DeviceNotE...

Page 39: ...which is used to receive the vendor ID dwDID output The address of a variable used to receive device ID dwSVID output The address of a variable applied to receive sub vendor ID dwSDID output The addre...

Page 40: ...DNS100_TotalDNS100Board BYTE TotalBoards BYTE BoardIDList z Parameter TotalBoards output The count of total board BoardIDList output The list of all DIP Switch No in each board z Return Please refer...

Page 41: ...e using the other functions of PISO DNS100 U D T APIs z Syntax DWORD DNS100_ActiveBoard BYTE BoardNo z Parameter BoardNo input PISO DNS100 U board number 0 15 z Return Please refer to Table 5 2 1 PISO...

Page 42: ...ource This method must be called once before exiting the user s application program z Syntax DWORD DNS100_CloseBoard BYTE BoardNo z Parameter BoardNo input PISO DNS100 U board number 0 15 z Return Ple...

Page 43: ...DNS100_GetDLLVersion void z Parameter None z Return The DLL version information For example If 100 Dec is return it means driver version is 1 00 z Error Return Please refer to Table 5 2 1 and Table 5...

Page 44: ...FirmwareVersion BYTE BoardNo z Parameter BoardNo input PISO DNS100 U board number 0 15 z Return The firmware version information For example If 100 Hex is return it means firmware version is 1 00 z Er...

Page 45: ...on 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 z Syntax DWORD DNS100_ResetFirmware BYTE BoardN...

Page 46: ...SO DNS100 U board number 0 15 z Return The baud rate information in the PISO DNS100 U 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 r...

Page 47: ...rmware It would make the changes enabled z Syntax DWORD DNS100_SetBaudRate BYTE BoardNo BYTE BaudRate z Parameter BoardNo input PISO DNS100 U board number 0 15 BaudRate input The new baud rate value 0...

Page 48: ...Net virtual slave is working successfully z Syntax DWORD DNS100_GetSlaveStatus BYTE BoardNo BYTE SlaveID z Parameter BoardNo input PISO DNS100 U board number 0 15 SlaveID input The DeviceNet slave s M...

Page 49: ...should call this function to add the virtual slave device z Syntax DWORD DNS100_AddDevice BYTE BoardNo BYTE SlaveID z Parameter BoardNo input PISO DNS100 U board number 0 15 SlaveID input The DeviceN...

Page 50: ...the same time the information of the device in EEPROM is erased z Syntax DWORD DNS100_RemoveDevice BYTE BoardNo BYTE SlaveID z Parameter PISO DNS100 U DeviceNet Slave API functions User s Manual Ver...

Page 51: ...dIOConnection BYTE BoardNo BYTE SlaveID BYTE Type WORD DeviceInputLen WORD DeviceOutputLen z Parameter BoardNo input PISO DNS100 U board number 0 15 SlaveID input The DeviceNet virtual slave s MAC ID...

Page 52: ...BoardNo input PISO DNS100 U board number 0 15 SlaveID input The remote virtual slave device s MAC ID 0 63 Type input The I O Connection type 1 4 1 Poll connection PISO DNS100 U DeviceNet Slave API fu...

Page 53: ...0 15 SlaveID input The virtual DeviceNet slave s MAC ID 0 63 Type input The I O Connection type 1 4 1 Poll connection 2 Bit Strobe connection PISO DNS100 U DeviceNet Slave API functions User s Manual...

Page 54: ...a WORD InputDataLen z Parameter BoardNo input PISO DNS100 U board number 0 15 SlaveID input The virtual DeviceNet slave s MAC ID 0 63 Type input The I O Connection type 1 4 1 Poll connection 2 Bit Str...

Page 55: ...DataLen z Parameter BoardNo input PISO DNS100 U board number 0 15 SlaveID input The virtual DeviceNet slave s MAC ID 0 63 Type input The I O Connection type 1 4 1 Poll connection 2 Bit Strobe connecti...

Page 56: ...the baud rate would be set to the default value 125K bps z Syntax DWORD DNS100_ClearAllConfig BYTE BoardNo z Parameter BoardNo input PISO DNS100 U board number 0 15 PISO DNS100 U DeviceNet Slave API f...

Page 57: ...nputDataLenList WORD OutputDataLenList z Parameter BoardNo input PISO DNS100 U board number 0 15 TotalDevices output The amount of total data SlaveIDList output The buffer of the virtual slave ID Type...

Page 58: ...dNo input PISO DNS100 U board number 0 15 TotalDevices input The amount of total data SlaveIDList input The buffer of the virtual slave ID TypeList input The buffer of the connection type InputDataLen...

Page 59: ...Driver The window driver of the PISO DNS100 Manual The user manual of the PISO DNS100 Utility The DeviceNet Slave utility Demo Demo program Demo BCB 6 Demo Demos for Borland C Builder 6 Demo VC 6 Dem...

Page 60: ...evices by CAN bus The virtual slave devices should be connected to form the serial type which is shown as Figure 6 2 1 Figure 6 2 1 Correct wire connection The following wire connection is wrong which...

Page 61: ...h the wire connection between the Master and virtual slave device See Figure 6 2 1 Figure 6 3 1 the screen shoot of VC 6 Demo After running the program the users would see the TotalBoard information o...

Page 62: ...utton should be clicked firstly After clicking the button the return message would be OK It is shown as Figure 6 3 2 Otherwise please check the windows driver has been installed successfully Figure 6...

Page 63: ...e network It is shown as Figure 6 3 3 One ID is 12 with 1 byte length of input and output The other ID is 53 with 2 bytes length of input and output When pushing the Add Device 12 and Add Device 53 bu...

Page 64: ...unicate with these two devices If these two virtual slave devices have communicated with the master device successfully the users can not go to next step until the connection of the virtual slave devi...

Page 65: ...ata to the master device in this step It is shown as Figure 6 3 5 It would obtain the output I O data and show them in byte The users can change the check box to write the input data The output filed...

Page 66: ...e and finish the wire connection between the Master and virtual slave device See Figure 6 2 1 Figure 6 4 1 The screen shoot of VC 6 Demo After running the program the users would see the TotalBoard in...

Page 67: ...fter clicking the button the return message would be OK It is shown as Figure 6 4 1 Otherwise please check the windows driver has been installed successfully Figure 6 4 1 Active Board OK Step 3 Set Ba...

Page 68: ...slave device into the PISO DNS100 U It is shown as Figure 6 4 2 and Firugre 6 4 3 After adding it the uses should reset the firmware in PISO DNS100 U by clicking the ActiveBoard button again Wait for...

Page 69: ...icating with the virtual slave device successfully the users can read the output I O data from the master device and write the input I O data to the master device in this step It is shown as Figure 6...

Reviews: