# HG changeset patch # User frdupin # Date 1166023329 -3600 # Node ID 142fa58877d2452395b7dbcac232133bc0906e4b # Parent 522ece4057d2f3af3f4d7b5eedba74c534e7e5ec obsolet diff -r 522ece4057d2 -r 142fa58877d2 examples/gene_SYNC_HCS12/objdict.html --- a/examples/gene_SYNC_HCS12/objdict.html Wed Dec 13 16:21:14 2006 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - - - - -CANOpen object dictionary Configuration - - - -

Object dictionary for Node :

-

-0x03(default) - Gene_SYNCslave -

-

Overview

-

- How to make the object dictionary of the node ? - First, use Jaxe (command run_objdict) to edit an xml description file -of the dictionary : objdict.xml. -Then, run the php program : makeobjetdict.php. You can launch php through a web browser -if you have installed a server, or, on Linux, you can launch php in command line : -php-cgi makeobjetdict.php. It compute the file objdict.c. Link it to - your project. -
Note : To define the node id, use in your code the function setNodeId(UNS8 nodeId) -

-

- Then the node can be connected to the network. The master must configure it - by sending SDO. It will write values in its index, subindex. What to configure ? -

-

- To avoid configuring the node at the connection, you can put the values directly -in the dictionary objdict.c. But it is boring and unsafe because it is too easy to make -a mistake ! - - -

Number of heartbeat consumers : - 1 -

-

This means that the node can expect heartbeats sent by 1 nodes.

-

Number of SDO clients : - 1 -

-

Usualy, a slave node does not have the use of SDO clients, but - today, for the library, you must define one. The Master, which can - send SDO to "n" slaves nodes, must define here "n" SDO - clients. Remember that in most cases, the SDO protocol is used by - the master to configure a slave dictionary or read a value. In - this use, the master is the client, and the slave is the server.

-

Mapped variables and tables

-

3 tables are defined for the mapping, starting at index 0x2000, 0x6000 and 0x6200. - You must start the mapping at the beginning of one of a table, without holes in index -or subindex. For example, variables in 0x2000 and 0x2001 is ok, but variables in 0x2000 and 0x2002 is not allowed, because you are loosing room in memory. It is the same for the subindex. -

-

- The access of the variable is by default "rw" (read-write) or "ro" (read-only). A read-only variable cannot be mapped in a PDO receive. -

-

Here are some others rules for the mapping :

- - - - - - - - - - - - -
Var NameBitsIndexSub-indexaccess
canopenErrNB320x60000x01
canopenErrVAL320x60000x02
Table NameBitsIndexSub-indexaccess
- - diff -r 522ece4057d2 -r 142fa58877d2 examples/gene_SYNC_HCS12/objdict.xml --- a/examples/gene_SYNC_HCS12/objdict.xml Wed Dec 13 16:21:14 2006 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file