background image

PISO-DNM100 DeviceNet Master API functions User’s Manual (Ver: 1.0)      2008/02/25 

 

PISO-DNM100-D/T 

DeviceNet Master 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 2007 by ICP DAS Co., LTD. All rights 

reserved worldwide. 

 

Trademark 

The names used for identification only may be 

registered trademarks of their respective companies.

Summary of Contents for PISO-DNM100-D

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

Page 2: ...pin D sub male connectorUT 21 TU2 3 3 Wire connectionUT 22 TU2 4 INDICATOR LEDUT 23 TU2 4 1 Green LEDUT 23 TU2 4 2 Red LEDUT 23 TU2 5 HARDWARE INSTALLATIONUT 24 TU3 UT TUDRIVER INSTALLATION AND SOFTWA...

Page 3: ...0_GetMasterStatusUT 74 TU4 4 14 DNM100_StartDeviceUT 75 TU4 4 15 DNM100_StopDeviceUT 76 TU4 4 16 DNM100_StartAllDeviceUT 77 TU4 4 17 DNM100_StopAllDeviceUT 78 TU4 4 18 DNM100_AddDeviceUT 79 TU4 4 19 D...

Page 4: ...ResultUT 112 TU4 4 52 DNM100_CheckBitStrobeConnectionStatusUT 113 TU4 4 53 DNM100_ConfigCOSUT 114 TU4 4 54 DNM100_UpdateCOSConfigUT 115 TU4 4 55 DNM100_ReadCOSInputDataUT 116 TU4 4 56 DNM100_WriteCOSO...

Page 5: ...hin 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 net...

Page 6: ...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 PISO DNM100 can represent an econo...

Page 7: ...s The main DeviceNet application fields include the following application area For more information please refer to HHHTUwww odva orgUTHHH Production cell builds and tests CPUs Dinnerware production B...

Page 8: ...with one CPU inside This architecture of the PISO DNM100 almost doesn t cost CPU resource and really increases the work efficiency on DeviceNet network Applying the PISO DNM100 users don t need to ta...

Page 9: ...reduce the complexity of user s 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 dev...

Page 10: ...e only provide one explicit message connection and four I O connections as depicted in Figure 1 4 Figure 1 4 DeviceNet Messaging The DeviceNet Communication Protocol is based on the concept of connect...

Page 11: ...g 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...

Page 12: ...cteristics The PISO DNM100 is a high performance DeviceNet master board The firmware inside the board implements DeviceNet protocol automatically when the board is active The firmware always listens t...

Page 13: ...power off the information still exists in the EEPROM When the users turn on the PC next time the ScanList will be loaded from EEPROM The users can easily use the DLL functions to configure it includin...

Page 14: ...llers z 33MHz 32bit 5V PCI bus V2 1 plug and play technology z 2500Vrms photo isolation protection on CAN bus UDeviceNet Firmware Features z Programmable Master MAC ID z Programmable transfer rate 125...

Page 15: ...terminal connector or 9 pin D sub male connector z Isolation voltage 2500Vrms on CAN bus z 186 compactable CPU z 8K bytes DPRAM 1K bytes for system z 512 K bytes Flash memory 128K bytes for system z...

Page 16: ...ion channel between PC and PISO DNM100 2 EEPROM The EEPROM stores the configuration information After restarting the PC the configuration data will be loaded form the EEPROM automatically 3 Control CP...

Page 17: ...ers should read the release note first All of the important information needed will be provided in the release note as follows Where you can find the software driver utility and demo programs How to i...

Page 18: ...onnection and terminal resistance configuration for the CAN network 2 1 Board Layout Figure2 1 PISO DNM100 Board LAYOUT Note PISO DNM100 T layout is similar with PISO DNM100 D The only difference is t...

Page 19: ...to update firmware but the process is fail users can enable this jumper to reset the PISO DNM100 D T into download mode Enable Disable JP4 None None DIP switch DIP switch is used to set the PISO CM100...

Page 20: ...in assignment is specified as follows 2 3 1 5 pin screw terminal connector The 5 pin screw terminal connector for the CAN bus is shown in Figure 2 4 and the details for the pin assignment are presente...

Page 21: ...he corresponding pin assignments are given in Table 2 3 2 7 1 3 8 9 5 4 6 CAN L CAN H Shield Figure2 5 9 pin D sub male connector Pin No Signal Description 1 N A No use 2 CAN_L CAN_L bus line dominant...

Page 22: ...they install a new CAN network 120 120 CAN_H CAN_L Device N Device 2 Device 1 Figure 2 4 CAN bus network topology Moreover to minimize the voltage drop over long distances the terminal resistance sho...

Page 23: ...ting for configuration 3 LED on This indicates that the DeviceNet firmware is running The PISO DNM100 is communicating with the slave devices 2 4 2 URedU LED The Red LED means Network Status It indica...

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

Page 25: ...program can call the DNM100 DLL driver to implement DeviceNet network application And then the DeviceNet DLL driver will throughout the CM100 dll into the KP_CM100 sys and windrvr6 sys to access the...

Page 26: ...omized DeviceNet master application The driver of PISO DNM100 can be used in 98 Me NT 2000 XP Windows environments For these Windows operation systems the recommended installation procedure is given a...

Page 27: ...et master products will be shown in the window Step 5 Click install Toolkit for Windows 98 Me NT 2000 XP which is based on the operation system you used Step 6 After finishing the step 5 the users wil...

Page 28: ...it or not If the users accept it please select I accept and press Next button Step 9 After accepting the license the next screen shoot is shown as follows Users can edit your name and company name Af...

Page 29: ...screen shoot is shown as follows Please press Install button The setup process will start Step 12 The setup process is running The screen shoot is shown below Step 13 Wait for the setup process finish...

Page 30: ...ing to the different systems as follows Windows NT 2000 WINNT SYSTEM32 DRIVERS Windows 98 Me XP WINDOWS SYSTEM32 DRIVERS The other data and resource is copied to the following directory C ICPDAS PISO...

Page 31: ...o the slave devices When users have no idea to communicate with them users can follow these steps shown in figure 3 2 The following functions can help users to get the DeviceNet information of the sla...

Page 32: ...n PISO DNM100 The EEPROM will store the configuration data The firmware in PISO DNM100 will load the previous configuration from the EEPROM in the next boot up When the devices in the DeviceNet networ...

Page 33: ...eration After configuring the PISO DNM100 the users can easily read or write I O data from or to the remote DeviceNet slave devices The users don t need to know about the DeviceNet protocol The main s...

Page 34: ...Diagram for On line Adding Removing Device The PISO DNM100 provides the on line adding removing slave device functions The users can follow the steps to achieve this function The steps are shown in Fi...

Page 35: ...PISO DNM100 DeviceNet Master API functions User s Manual Ver 1 0 2008 02 25 35 2 UOn line Removing Devices Figure 3 7 On line Remove Device Diagram...

Page 36: ...am for SetAttribute and GetAttribute The users can set or get DeviceNet device s property via DeviceNet network The PISO DNM100 provides these functions to set or get the properties of the remote devi...

Page 37: ...arameters by calling DNM100_ConfigPoll Thirdly the users can set the initial output value by calling DNM100_WritePollOutputData before starting the specific slave device If the users do not initialize...

Page 38: ...des two functions to read the I O data easily Firstly the users should know the device s I O input length in Byte Secondly the users should set this parameter by calling DNM100_ConfigBitStrobe Thirdly...

Page 39: ...his parameter by calling DNM100_ConfigCOS Thirdly the users can set the initial output value by calling DNM100_WriteCOSOutputData before starting the specific slave device If the users do not initiali...

Page 40: ...eter by calling DNM100_ConfigCyclic Thirdly the users can set the initial output value by calling DNM100_WriteCyclicOutputData before starting the specific slave device If the users do not initialize...

Page 41: ...mware Functions These functions in this group help users to operate the firmware or get the status of the firmware inside the PISO DNM100 U Operating Functions These operating functions are the import...

Page 42: ...ion Get the data from this parameter after calling this function input Yes No output No Yes Table 4 1 1 Functions Table Board Functions 1 1 TNo T TFunction NameT TDescriptionT 1 DNM100_GetBoardInf Get...

Page 43: ...e with the specific slave device 8 DNM100_StartAllDevice PISO DNM100 will start to communicate with all slave devices 9 DNM100_StopAllDevice PISO DNM100 will stop to communicate with all slave devices...

Page 44: ...specific slave device in the PISO DNM100 DeviceNet Master 19 DNM100_ConfigCyclic Add Cyclic I O information of the specific slave device into the PISO DNM100 DeviceNet Master 20 DNM100_UpdateCyclicCon...

Page 45: ...00_GetDevicePollInfo Get the Poll information of the specific slave device 4 DNM100_GetDeviceBitStrobeInfo Get the Bit Strobe information of the specific slave device 5 DNM100_GetDeviceCOSInfo Get the...

Page 46: ...Attribute 7 DNM100_ReadPollInputData Read the input data via Poll connection 8 DNM100_WritePollOutputData Write the output data via Poll connection 9 DNM100_GetPollStatus Get the Poll connection statu...

Page 47: ...tCOSResult Get the COS connection result of the slave device 20 DNM100_CheckCOSConnectionStatus Check the COS connection status is fine or not 21 DNM100_ReadCyclicInputData Read the input data via Cyc...

Page 48: ...ftware buffer is overflow T10023T DNM100_TimeOut The PISO DNM100 has no response T10024T DNM100_SetCyclicMsgFailure The cyclic messages are over 5 counts This is special function for CAN T10025T DNM10...

Page 49: ...DNMXS_MapTableError The MapTable has some errors Table 4 2 3 Interpretation of the return code DeviceNet Error 1 1 TReturn CodeT TDeviceNet ErrorT TCommentT T1300T DNMXS_BoardNotOnline The master is...

Page 50: ...S_DeviceNotExistInEEP The data can t be found in the EEPROM T1405T DNMXS_EEPROMDeviceDuplicate The device already exists in the EEPROM T1406T DNMXS_EEPROMError The EEPROM has some errors T1407T DNMXS_...

Page 51: ...nformation already exists in the EEPROM T2000T DNMXS_COSAlreadyExistInEEP The COS information already exists in the EEPROM T2100T DNMXS_CyclicAlreadyExistInEEP The Cyclic information already exists in...

Page 52: ...XS_CyclicUnConnect The Cyclic connection has not connected Table 4 2 9 Interpretation of the return code Functional Error 3 3 TReturn CodeT TFunctional ErrorT TCommentT T2600T DNMXS_BusError The CAN b...

Page 53: ...tatus_TimeoutActionSetting Explicit connection is setting Watchdog Timeout Action T7T Status_IOReady Ready to allocate I O connection T10T Status_BitStrobeEstablishOK Allocate Bit Strobe connection su...

Page 54: ...23T Status_PollGetingProducedSize Poll connection is getting Produced Connection Size T24T Status_PollGetProducedSizeOK Poll connection gets Produced Connection Size successfully T25T Status_PollGetin...

Page 55: ...uced Connection Size T34T Status_COS_CyclicGetProducedSizeOK COS_Cyclic connection gets Produced Connection Size successfully T35T Status_COS_CyclicGetingConsumedSize COS_Cyclic connection is getting...

Page 56: ...dog Timeout Action responses error T6T Result_SetActionResTMO Setting Watchdog Timeout Action responses timeout T7T Result_ReleaseResOK Releasing connection responses OK T8T Result_ReleaseResERR Relea...

Page 57: ...ion does not reply T23T Result_BitStrobeIOResOK The Bit Strobe I O connection of the slave device replies OK T24T Result_BitStrobeIOResERR The Bit Strobe I O connection of the slave device replies err...

Page 58: ...ce replies error T35T Result_PollIOResTMO The Poll I O connection of the slave device does not reply T36T Result_PollProducedResErr Getting the Produced Size of the Poll connection replies error T37T...

Page 59: ...of COS_Cyclic connection replies error T55T Result_COS_CyclicEPRResTMO Setting the Expected Packet Rate of COS_Cyclic connection does not reply T56T Result_COS_CyclicIOResOK The COS_Cyclic I O connect...

Page 60: ...clicProducedSizeError The input data length parameter of the COS_Cyclic connection which has been set by the users does not match with the length of the slave device T65T Result_COS_CyclicConsumedResE...

Page 61: ...the slave devices automatically The users need not to know what the type of the remote device is If the slave device is UCMM capable the PISO DNM100 will communicate with it by the UCMM mode automati...

Page 62: ...output The address of a variable 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...

Page 63: ...can get the count of total PISO DNM100 boards in the user s PC z Syntax DWORD DNM100_TotalDNM100Board BYTE TotalBoards BYTE BoardIDList z Parameter TotalBoards output The count of total board BoardIDL...

Page 64: ...other functions of PISO DNM100 D T APIs z Syntax DWORD DNM100_ActiveBoard BYTE BoardNo z Parameter BoardNo input PISO DNM100 board number 0 15 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Ke...

Page 65: ...vice resource from computer device resource This method must be called once before exiting the user s application program z Syntax DWORD DNM100_CloseBoard BYTE BoardNo z Parameter BoardNo input PISO D...

Page 66: ...5 66 4 4 5 DNM100_GetDLLVersion z Description The function can obtain the version information of DNM100 dll driver z Syntax DWORD DNM100_GetDLLVersion void z Parameter None z Return The DLL version in...

Page 67: ...BoardNo input PISO DNM100 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 Error Return DNM100_NoError 0 OK DNM100_Drive...

Page 68: ...1 or 2 seconds to make the firmware boot up completely z Syntax DWORD DNM100_ResetFirmware BYTE BoardNo z Parameter BoardNo input PISO DNM100 board number 0 15 z Return DNM100_NoError 0 OK DNM100_Driv...

Page 69: ...t the PISO DNM100 D T is in download mode If 1 it is in firmware mode When PISO DNM100 D T is in download mode it can only update the firmware and the firmware will not work at the same time z Return...

Page 70: ...dNo input PISO DNM100 board number 0 15 z Return The Master s MAC ID 0 63 z Error Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_ActiveBoardError 10002 This boa...

Page 71: ...00 z Syntax DWORD DNM100_SetMasterMACID BYTE BoardNo BYTE MasterMACID z Parameter BoardNo input PISO DNM100 board number 0 15 MasterMACID input The DeviceNet master s MAC ID 0 63 z Return DNM100_NoErr...

Page 72: ...rmation in the PISO DNM100 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 z Error Return DNM100_NoError 0 OK DNM100_Dr...

Page 73: ...ate BYTE BoardNo BYTE BaudRate z Parameter BoardNo input PISO DNM100 board number 0 15 BaudRate input The new baud rate value 0 125K bps 1 250K bps 2 500K bps z Return DNM100_NoError 0 OK DNM100_Drive...

Page 74: ...essfully z Syntax DWORD DNM100_GetMasterStatus BYTE BoardNo z Parameter BoardNo input PISO DNM100 board number 0 15 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DN...

Page 75: ...z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_...

Page 76: ...D z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100...

Page 77: ...ice BYTE BoardNo z Parameter BoardNo input PISO DNM100 board number 0 15 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_ActiveBoardError 10002 This board can...

Page 78: ...evice BYTE BoardNo z Parameter BoardNo input PISO DNM100 board number 0 15 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_ActiveBoardError 10002 This board ca...

Page 79: ...BoardNo BYTE DesMACID WORD Explicit_EPR z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 Explicit_EPR input The Expected Packet Rate Usuall...

Page 80: ...RemoveDevice BYTE BoardNo BYTE DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10...

Page 81: ...x DWORD DNM100_GetExplicitStatus BYTE BoardNo BYTE DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK D...

Page 82: ...ACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM...

Page 83: ...sMACID BYTE ClassID BYTE InstanceID BYTE AttributeID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 ClassID input The remote slave device...

Page 84: ...TE DATA z Parameter BoardNo input PISO DNM100 board number 0 15 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...

Page 85: ...er BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 ClassID input The remote slave device s ClassID InstanceID input The remote slave device s Instance...

Page 86: ...rameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_Activ...

Page 87: ...ACID input The remote slave device s MAC ID 0 63 Type input The I O Connection type 1 4 1 Poll connection 2 Bit Strobe connection 3 COS connection 4 Cyclic connection z Return DNM100_NoError 0 OK DNM1...

Page 88: ...ction is broken If the slave device doesn t response or response error The master PISO DNM100 will re connect it If the device was shut down then power on the master will not re connect it 0x02 Re Con...

Page 89: ...f the slave device doesn t response or response error The master PISO DNM100 will re connect it If the device was shut down then power on the master will not re connect it 0x02 Re Connect when device...

Page 90: ...g BYTE BoardNo z Parameter BoardNo input PISO DNM100 board number 0 15 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_ActiveBoardError 10002 This board can no...

Page 91: ...the value is FF hex Err_Type output The connection type of the error slave device If there is no error device the value is FF hex Err_Code output The error code If there is no error device the value...

Page 92: ...Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_Act...

Page 93: ...ons z Syntax DWORD DNM100_DebugDevice BYTE BoardNo BYTE DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0...

Page 94: ...istCount output The data count of all the information ConnectionTypeList output The connection type of the slave device InputDataLenList output The input data length of the slave device OutputDataLenL...

Page 95: ...rdNo BYTE DesMACID WORD PollInputLen WORD PollOutputLen z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 PollInputLen output The input data...

Page 96: ...x DWORD DNM100_GetDeviceBitStrobeInfo BYTE BoardNo BYTE DesMACID WORD BitStrobeInputLen z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 Bi...

Page 97: ...No BYTE DesMACID WORD COSInputLen WORD COSOutputLen z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 COSInputLen output The input data leng...

Page 98: ...No BYTE DesMACID WORD CyclicInputLen WORD CyclicOutputLen z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 CyclicInputLen output The input...

Page 99: ...SO DNM100 board number 0 15 TotalDevices output The data count of all the information DestMACID output The MAC ID of all the slave devices Type output The connection type of all the slave devices Devi...

Page 100: ...s in the ScanList ConnectionTypeList output The connection type of all the slave devices in the ScanList InputDataLenList output The input data length of all the slave devices in the ScanList OutputDa...

Page 101: ...WORD DeviceInputLen WORD DeviceOutputLen WORD EPR z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 DeviceInputLen input The input data len...

Page 102: ...0 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 DeviceInputLen input The input data length of the slave device DeviceOutputLen input The output data length of the slave devic...

Page 103: ...rameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 IOLen output The length of the I O data In byte IODATA output The remote I O data z Return DNM...

Page 104: ...rdNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 IOLen input The length of the I O data In byte IODATA input The remote I O data which are defined by user...

Page 105: ...DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened...

Page 106: ...er BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_ActiveBoar...

Page 107: ...ConnectionStatus BYTE BoardNo BYTE DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverErro...

Page 108: ...D DNM100_ConfigBitStrobe BYTE BoardNo BYTE DesMACID WORD DeviceInputLen WORD EPR z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 DeviceInp...

Page 109: ...meter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 DeviceInputLen input The input data length of the slave device EPR input The EPR value of the sl...

Page 110: ...ODATA z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 IOLen output The length of the I O data In byte IODATA output The remote I O data z...

Page 111: ...BYTE DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not o...

Page 112: ...Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_Ac...

Page 113: ...itStrobeConnectionStatus BYTE BoardNo BYTE DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_Dr...

Page 114: ...RD DeviceOutputLen WORD EPR z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 DeviceInputLen input The input data length of the slave device...

Page 115: ...board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 DeviceInputLen input The input data length of the slave device DeviceOutputLen input The output data length of the slave device...

Page 116: ...PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 IOLen output The length of the I O data In byte IODATA output The remote I O data z Return DNM100_NoError 0 OK DNM10...

Page 117: ...ardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 IOLen input The length of the I O data In byte IODATA input The remote I O data which are defined by use...

Page 118: ...TE DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not ope...

Page 119: ...r BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_ActiveBoard...

Page 120: ...onnectionStatus BYTE BoardNo BYTE DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError...

Page 121: ...viceOutputLen WORD EPR z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 DeviceInputLen input The input data length of the slave device Devi...

Page 122: ...0 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 DeviceInputLen input The input data length of the slave device DeviceOutputLen input The output data length of the slave devic...

Page 123: ...z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 IOLen output The length of the I O data In byte IODATA output The remote I O data z Return...

Page 124: ...rdNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 IOLen input The length of the I O data In byte IODATA input The remote I O data which are defined by user...

Page 125: ...dNo BYTE DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is n...

Page 126: ...meter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverError 10001 Kernel driver is not opened DNM100_ActiveB...

Page 127: ...icConnectionStatus BYTE BoardNo BYTE DesMACID z Parameter BoardNo input PISO DNM100 board number 0 15 DestMACID input The remote slave device s MAC ID 0 63 z Return DNM100_NoError 0 OK DNM100_DriverEr...

Page 128: ...n Driver The window driver of the PISO DNM100 Manual The user manual of the PISO DNM100 Utility The DeviceNet Master utility Demo Demo program Demo BCB 6 Demos for Borland C Builder 6 Demo VC 6 Demos...

Page 129: ...users should have at least one slave device Here show the users how to connect the master and slave devices by CAN bus The slave devices should be connected to form the serial type which is shown as F...

Page 130: ...this demo the users should have at least one DeviceNet slave device which has input channels AI or DI and finish the wire connection between the Master and slave device See Figure 5 1 Figure 5 3 the...

Page 131: ...econds then go to the next step UStep 4 Set Master ID The default Master s MAC ID is 0 If the users want to change the value you can select the correct value then click the button After changing the M...

Page 132: ...ormation into EEPROM in PISO DNM100 If it is successful the return value will be 0 UStep 9 Start Device If the step 8 is successful the users can perform Start Device button This function will communi...

Page 133: ...cising this demo the users should have at least one DeviceNet slave device and finish the wire connection between the Master and slave device See Figure 5 1 Figure 5 4 The screen shoot of VC_Demo2 Aft...

Page 134: ...Rate The default baud rate is 125Kbps If the users want to change the value you can select the correct value then click the button After changing the baud rate the uses should reset the firmware in PI...

Page 135: ...am will show the information of all the slave devices This demo is similar to VC_Demo2 Before exercising this demo the users should have at least one DeviceNet slave device and finish the wire connect...

Page 136: ...please check the windows driver has been installed successfully UStep 2 Auto Scan Before performing this function the users should set the MAC ID and the baud rate of the slave device and turn on it...

Page 137: ...lar to BCB_Demo1 We just introduce the extension part Before exercising this demo the users should have at least one DeviceNet slave device and finish the wire connection between the Master and slave...

Page 138: ...able At the same time the MAC IDs also are shown on the right side of the screen The users can check the Enable Disable box to enable or disable the read and write the I O data The Output scroll bar p...

Reviews: