diff -r 0d84d95790d9 -r 16c8ceea8f18 examples/AppliMaster_HCS12/objdict.html --- a/examples/AppliMaster_HCS12/objdict.html Tue Feb 13 17:21:19 2007 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,154 +0,0 @@ - - -
- -
- 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 ? -
This means that the node can expect heartbeats sent by 1 nodes.
-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.
-This is defining how many variables can be transmited in a - PDO. (maximum is 8).
-For each variable, a table is created, so if you have less room - in memory, put a value under 8.
-The node can receive 3 PDO.
-The communication parameters are defined at index 0x1400 to 0x1400 + 2
-The mapping parameters are defined at index 0x1600 to 0x1600 + 2
-The node can transmit 3 PDO.
-The communication parameters are defined at index 0x1800 to 0x1800 + 2
-The mapping parameters are defined at index 0x1A00 to 0x1A00 + 2
-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. -
-Here are some others rules for the mapping :
-Name | Bits | Index | Sub-index | -
canopenErrNB_node5 | 32 | 0x6000 | 0x0 | -
canopenErrVAL_node5 | 32 | 0x6001 | 0x0 | -
second | 8 | 0x6002 | 0x1 | -
minutes | 8 | 0x6002 | 0x02 | -
hour | 8 | 0x6002 | 0x3 | -
day | 8 | 0x6002 | 0x4 | -
canopenErrNB | 32 | 0x6003 | 0x01 | -
canopenErrVAL | 32 | 0x6003 | 0x02 | -