background image

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

46 

 

T

No.

T

Function Name

T

Description

DNM100_GetExplicitStatus 

Get the Explicit connection
status of the slave device 

DNM100_GetExplicitResult 

Get the Explicit connection
result of the slave device 

DNM100_GetAttribute 

Send the get attribute
command to the slave device. 

DNM100_GetAttributeValue 

Get the attribute value of the
DNM100_GetAttribute 

DNM100_SetAttribute 

Send the set attribute
command to the slave device. 

DNM100_SetAttributeResponse 

Get the response value of the
DNM100_SetAttribute 

DNM100_ReadPollInputData 

Read the input data via Poll
connection 

DNM100_WritePollOutputData 

Write the output data via Poll
connection 

DNM100_GetPollStatus 

Get the Poll connection status
of the slave device 

10 

DNM100_GetPollResult 

Get the Poll connection result
of the slave device 

11 

DNM100_CheckPollConnectionStatus 

Check the Poll connection
status is fine or not 

12 

DNM100_ReadBitStrobeInputData 

Read the input data via
Bit-Strobe connection 

13 

DNM100_GetBitStrobeStatus 

Get the Bit-Strobe connection
status of the slave device 

14 

DNM100_GetBitStrobeResult 

Get the Bit-Strobe connection
result of the slave device 

15 

DNM100_CheckBitStrobeConnectionStatus

Check the Bit-Strobe
connection status is fine or not

 
 
 
 

Table 4.1.7 Functions Table (I/O Functions)    2/2. 

Содержание PISO-DNM100-D

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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_...

Страница 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...

Страница 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...

Страница 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...

Страница 54: ...23T Status_PollGetingProducedSize Poll connection is getting Produced Connection Size T24T Status_PollGetProducedSizeOK Poll connection gets Produced Connection Size successfully T25T Status_PollGetin...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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_...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: