Skip to main content

8. CANopen Configuration Example

The entire test below is based on three conditions:
 Communication has been established correctly.
 The address of the servo drive is 1.
 All the message data is hexadecimal.

8.1 SDO configuration
SDO operation is to read and write parameters (0601h  host sends 0581h slave sends)
Address: 3022h (Pn118) . Write 1000. And then read this parameter.
Activate the downloading process: 2B,3022,00,03E8
 Message: 601(ID) 2B 22 30 00 E8 03 00 00
The servo drive should respond 60,3022,00,00,00,00,00
 Message: 581(ID) 60 22 30 00 00 00 00 00
Activate the uploading: 40,3022,00,0000
 Message: 601(ID) 40 22 30 00 00 00 00 00
The servo drive needs to respond: 43,3022,00,03E8
 Message: 581(ID) 43 22 30 00 E8 03 00 00

8.2 PDO Configuration
RPDO mapping example: To configure two RPDO, one of which is 6040h and the other are 607A and 6081h). The slaves respond of message 581h (ID) is omitted.

 RPDO 1 Mappingimage.png

 RPDO 2 Mappingimage.png

And then set the transmit PDO as SYNC or Timing method. The default setting is Time method.
After configuring the PDO, if you need to activate the configuration, you need to reset the communication.

image.png

 

8.3 Profile Positon Mode
Step 1 At first, please mapping and configure PDO according to the example above and activate the communication.
Step 2 And then, please set the control mode.image.png

Step 3 And then, set status machine as Operation Enableimage.png

image.png

Step 4 And then, send data by PDO
Let servo motor rotate for 5 revolutions (Set PDO1 as 6040(status word), PDO2 as 607A (position pulse number) and 6081(velocity, unit as much as 0.1rpm)

Step 5 Send RPDO2 The data is as belowimage.png

Step 6 Send RPDO1 as belowimage.png

image.png

----End

 

8.4 Two-axis interplate position mode
Step 1 At first, mapping and configure PDO. image.png

Step 2 Configure 1 RPDOimage.png

Step 3 Configure 2 TPDO,TPDO1: 6041h TPDO2: 6064h/606Chimage.png

image.png

Step 4 Set Sync time. image.png

Step 5 Configure the PDO receiving and sending are both activated by one Sync frame.
 Set 1400himage.png

 Set 1800himage.png

 Set 1801himage.png

Step 6 Set control modeimage.png

Step 7 And then, set the status machineimage.png

Step 8 Activate the communicaitonimage.png

Step 9 Setting the second axis is the same with the first axis.

Step 10 Host sends according to the setting of test SYNC cycle(1ms): image.png

Step 11 And then,drive returnsimage.png

 

Sequence diagram is as following 

image.png

----End

 

8.5 Homing

Step 1 Set the control mode as homing control

image.png

Step 2 Set the status machine

image.png

Step 3 Send data through PDO. (Set PDO1 as 6040(status word). Set PDO2 as 607A (Position pulse number) and 6081. (Speed, unit 0.1rpm)
Set the homing method as 10rpm.

image.png

Step 4 Homing is started.

image.png

Cancel homing

image.png

----End