PXF0869-CANopen_Master_API常见问题

Shanghai Passiontech Tech, 021-51870017, sales@51Lm.cn

     
     
     

CANopen_Master_API常见问题


型号: PXF0869


简介:FAQs: Software/Tools > CANopen Master API常见问题[Number of FAQs 13] 1. The CANopen Master API Version 2.18 does not run with the new VCI Version 2. Why? 2. Why do I get the COP_k_NMT_HEARTBEATERR event? 3. How can I use more than 10 PDOs for a CANopen device? 4. What are the differe...
品牌 ixxat ixxat
产地德国
型号PXF0869
折扣其他电询

FAQs: Software/Tools > CANopen Master API常见问题
[Number of FAQs 13]

1. The CANopen Master API Version 2.18 does not run with the new VCI Version 2. Why?
2. Why do I get the COP_k_NMT_HEARTBEATERR event?
3. How can I use more than 10 PDOs for a CANopen device?
4. What are the differences between CANopen Master API V V2.21 and Version 4.0.10?
5. What are the differences between CANopen Master API V V4.0.10 and Version 4.1?
6. What are the differences between CANopen Master API V V4.1 and Version 5.0?
7. What are the differences between CANopen Master API V5.0 and V5.1?
8. Which information is important for the processing of a CANopen Master API support request?
9. Why does the function COP_GetNodeState return the value 255 (COP_k_NS_UNKNOWN) for some CAN moduls?
10. Which CANopen Master API versions support the VCI V2.18?
11. What are the differences between CANopen Master API V5.1 and V5.2?
12. Is it possible to access a CAN interface board with a „CANopen Master API“ application and a „VCI“ application (e.g: Minimon) simultaneously?
13. What are the differences between CANopen Master API V5.2 and V6.0?


 



1. The CANopen Master API Version 2.18 does not run with the new VCI Version 2. Why?
With obsoletely CANopen Master API Versions <=2.18 (cop21un6.dll (0,2,1,8)) obsolete drivers are installed that are not compatible with VCI V2.

Newer CANopen Master API Versions >=2,21 (Cop221.exe, cop22un6.dll (2,2,1,2)) are based on VCI V2 and do not install extra drivers any more. Therefore the VCI V2 have to be installed before.

Please use the CANopen Master API V2.18 without an installed VCI or a newer CANopen Master API Verstion (>=2.21) with VCI Version 2.14.
top


2. Why do I get the COP_k_NMT_HEARTBEATERR event?

The CANopen 节点 do not send the Heartbeats automatically.
You can programm the heartbeat with the function COP_WriteSDO.
e.g.: COP_WriteSDO( ... idx = 1017, subidx = 00 ... )

The Heartbeat interval for the CANopen node, that is programmed in this way, should be smaller than the guard time GuardHeartbeatTime in the COP_AddNode().
You will get the COP_k_NMT_HEARTBEATERR event,
when no Heartbeat message arrived during the setted guard time,
or when the state of the node is not correct.

top


3. How can I use more than 10 PDOs for a CANopen device?

PDO Management is implemented as a static array in the firmware. For each node there is space reserved for 10+10 PDOs, regardless of their actual usage. The limitations are thus set by the available RAM on the respective board type.

To cope with this limitations, it is recommended to register only PDOs actually active at the CANopen Master API by calling function COP_CreatePDO().  On the 其他 hand, for reasons of clarity it is good practice to use the numbers of the PDOs in the order they are present at the device, i.e. CANopen Master API PDO#1 = device’s 1400/1800 etc.

Contrary to the statement given in the user manual in the description of this particular function (chapter 5.3.1) it is possible to call this function more than once for the same PDO in order to 改变 former settings. This offers some dynamics for the PDO management. Usually, reconfiguring resp. overwriting an already declared CANopen Master API PDO should be done only if the corresponding actual device PDO communication parameters 改变, in particular, the COB-ID.

If you still need more PDOs for a particular node, you can use the 10+10 PDOs of a not existing node. For this, call COP_AddNode() for an unused NodeID with "passive" settings (i.e. no node monitoring) and use all this 节点´ PDOs as you wish.

With CANopen Master API 6 these limits are pushed up to a maximum of 16+16 depending on the CAN board utilised, while the standard PDO count is increased from 10 to 12 for all boards.

When programming CANopen Master API, we adapt to the existing physical CANopen slave devices’ PDOs.  This means, we create corresponding/matching CANopen Master API PDOs to the slave’s PDOs.  By this “creation”, internal records and 连接ions of the CANopen Master API are being set up, but no 改变 to the slave’s PDO configuration takes place.  If you want to do the latter, you have to use the SDO-related function set of CANopen Master API and write to the slave’s PDO communication and mapping parameters Object Dictionary entries.  Afterwards, you still had to “create” a matching CANopen Master API PDO that mirrors the slave alterations.

Apart of that, CANopen Master API up to V5 is not aware of this so called “Predefined Connection Set” COB-ID allocation rule.

 

For CANopen Master API 5:

CAN interface board max.Nodes max. R/TPDOs per node
iPC-I 320 (ISA/PCI) 32 10
tinCAN4 32 10
USB-to-CAN compact 32 10
iPC-I 165 (ISA/PCI) 127 12
USB-to-CAN II 127 12
tinCAN161 127 16
iPC-I XC16 (PCI/PCIe) 127 16
top


4. What are the differences between CANopen Master API V V2.21 and Version 4.0.10?
  • There are no SDO data length restrictions anymore.
  • Additional functions for asynchronous SDO handling (COP_PutSDO, COP_GetSDO, COP_CancelSDO)
  • SDO blockmode support
  • USB boardtypes support
  • Bootup message supported according to CANopen Specification DS-301 V4
  • COP_InitBoard function: Simplified parameters, board identification based on VCI V2 hardware selection mechanism(XatxxReg.dll)
  • COP_CreatePDO function: Priority and inhibittime parameters removed.
  • COP_CreateSDO function: Priority parameter removed.
  • Unified timer resolution of 1ms and unified timer value ranges for all boards
  • Support of Heartbeat to CANopen Specification DS-301 V4
  • DLC of the RTR messages is not 0 any more.
Please note!
Version 2.21 of the CANopen Master API only supports the versions 2.0 to 2.14 (inclusively) of the VCI driver. To use newer versions of the VCI driver, it is necessary to install at least version 4.0.10 of the CANopen Master API, which supports all versions of the VCI V2.
top


5. What are the differences between CANopen Master API V V4.0.10 and Version 4.1?
  • Support of the iPC-I XC16/PCI, tinCAN161 and USB-to-CAN II interface
  • Microsoft .Net based example programs
top


6. What are the differences between CANopen Master API V V4.1 and Version 5.0?
  • Support of two CAN controllers per CAN interface board (for iPC-I XC16, tinCAN 161 and USB-to-CAN II only)
  • full LSS master functionality (according to CiA 305)
  • Flying Master mechanism (as specified in CiA 302)
Please note the VCI V2.16 has to be installed.
top


7. What are the differences between CANopen Master API V5.0 and V5.1?
  • Support of VCI V3
  • Support of single and dual channel for CAN interface boards with 16bit microcontroller
  • Support of the iPC-I XC16/PCIe board
CANopen Master API V5.1 compatibility table:
CAN interface board VCI V2 VCI V3 Channel support
iPC-I 320
(ISA/104/PCI)
2.16.2.6
(or higher)
3.1.2.1681
(or higher)
Single
iPC-I 165 (ISA/PCI) 2.16.2.6
(or higher)
3.1.2.1681
(or higher)
Single & Dual
tinCAN4 2.16.2.6
(or higher)
3.1.2.1681
(or higher)
Single
tinCAN161 2.16.2.6
(or higher)
3.1.2.1681
(or higher)
Single & Dual
USB-to-CAN compact 2.16.2.6
(or higher)
3.1.4.1784
(or higher)
Single
USB-to-CAN II 2.16.2.6
(or higher)
3.1.4.1784
(or higher)
Single & Dual
iPC-I XC16 (PCI/PCM) 2.16.3.14
(or higher)
3.1.2.1681
(or higher)
Single & Dual
iPC-I XC16/PCIe - 3.1.2.1681
(or higher)
Single & Dual
top


8. Which information is important for the processing of a CANopen Master API support request?
Please tell us the following information:
  1. Which version of the CANopen Master API is used?
    (see „Start | Control panel | Software | IXXAT CANopen Master API version“ orthe version number of the XatCOP50.dll, cop40un6.dll, cop22un6.dll, cop21un6.dllfrom the Windows System32 directory)
     
  2. Is it possible to reproduce the problem with the programming example from the CANopen Master API installation directory?
  3.  
  4. Please use the debug version of the XatCop50.dll, cop40un6.dll from the CANopen Master API installation directory
    (e.g.: C:| Programms| IXXAT| CANopen Master API 5.1| bin| debug| log| XatCOP50.dll) and send us the created protocol file XatCOP50.log, COPMST32.log.
    Please note:
    There is also a copy of XatCOP50.dll (release build) in the Windows „system32“ folder which might be used by the application. Please rename this instance for creation of the log file.
  5. Which VCI version is installed?
    (see „Start | Control panel | Software | IXXAT VCI version“ or the version number of the vcinpl.dll or vci11un6.dll from the Windows System32 directory)
  6. Which CAN interface board is used?
    (Please send us a screenshot of the device manager.)
     
  7. Does the CAN interface board run correctly with the Minimon?
top


9. Why does the function COP_GetNodeState return the value 255 (COP_k_NS_UNKNOWN) for some CAN moduls?
The function COP_GetNodeState() returns the current status of slave 节点. This status is not assigned to a special slave object dictionary entry, but it is created according to the observation of the slave communication; especially using the Heartbeat- or NodeGuarding- messages, but also using Bootup and Emergency. COP_k_NS_UNKNOWN as standard value will be returned, if the CAN node status could not be detected in this way, e.g. because a CAN node did not send Heartbeat yet. top


10. Which CANopen Master API versions support the VCI V2.18?
  1. CANopen Master API V4.1.2.28 (or higher)
  2. CANopen Master API V5.0
  3. CANopen Master API V5.1
  4. CANopen Master API V5.2
top


11. What are the differences between CANopen Master API V5.1 and V5.2?
  • Support of VCI V3 for CAN@netII/VCI hardware. Requires VCI 3.2.2.2098 (or higher).
  • Support of 64bit Windows host systems.
top


12. Is it possible to access a CAN interface board with a „CANopen Master API“ application and a „VCI“ application (e.g: Minimon) simultaneously?
No, because the „CANopen Master API“ and „VCI“ download the different firmware into the CAN interface board. top


13. What are the differences between CANopen Master API V5.2 and V6.0?
  • New CANopen functionality (enhanced SYNC mechanism specified in CiA 301 v4.2, LSS fastscan specified in CiA 305 v2.2)
  • LabVIEW examples
  • Support for passive IXXAT CAN interface boards using VCI 3.5.x
    (CAN-IB100/PCIe, CAN-IB120/PCIe Mini, PC-I 04/PCI)
top


 

url: http://www.51lm.cn/p/templates/cn/show.php?cid=0&aid=869

 

电话400-878-1895, 传真:021-51561359 邮箱:sales@51LM.cn
sales@51LM.cn 上海徐汇区斜土路2601号嘉汇广场T1-11B