104
Note: Each 10-byte packet has its own CHKS.
If the host sends an ID not existed in the network to the
CD2S
servo driver, no
CD2S
servo driver will make a
reply. After the host sends the data correctly, the slave will find the data packets in compliance with its own ID
and check the CHKS value. If the checksum does not match, the slave will not make a response.
9.2 Data Protocol
A data protocol is different from a transport protocol. It contains 8 bytes of all 10 bytes of the above RS-232.
Definition of
CD2S
servo driver internal data complies with the CANopen international standard. All
parameters, values and functions are expressed by index and subindex.
9.2.1 Download(from Host to Slave)
Download refers to that the host sends a command to write values into the objects in the slave, and the host
generates an error message when the value is downloaded to a non-existent object.
The host sends:
CMD
byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7
INDEX
SUB
INDEX
DATA
CMD
Specifies the direction of data transfer and the volume of data.
23(0x16)
Sends 4-byte data (bytes 4...7 contain 32 bits)
2b(0x16)
Sends 2-byte data (bytes 4, 5 contain 16 bits)
2f(0x16)
Sends 1-byte data (bytes 4 contains 8 bits)
INDEX
Index in the object dictionary where data should be sent
SUB INDEX Subindex in object dictionary where data should be sent
In all four bytes in data, the lower-order bits are arranged before the higher-order bits. To write 600 RPM into
―Target Velocity‖ in the slave, the unit of 2FF00910 is rpm, 600 is in decimal system, and 258 is in
hexadecimal system.Since the length of the object to be written is 4 bytes and the calculation result 02 58 has
only 2 bytes,zero shall be filled to the higher-order bits. Therefore, the final result = 00 00 02 58.
DATA: byte4=58,byte5=02,byte6=00,byte7=00
The slave answers:
RES
byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7
INDEX
SUB
INDEX
RESERVED
RES:
Displays slave response:
60(0x16)
Data successfully sent
80(0x16)
Error, bytes 4…7 contain error cause
INDEX
16-bit value, same as that sent by the master
SUBINDEX 8-bit value, same as that sent by the master
RES
Reserved for future use
Summary of Contents for CD2S Series
Page 7: ...7...
Page 8: ...8 1 3 3 Power Brake and Encoder cable of Motors...
Page 12: ...12 Fig 2 3 Installation direction...
Page 15: ...15 3 1 2 Wiring Diagram Fig 3 1 Wiring diagram of CD2S driver...
Page 23: ...23 Fig 4 3 Separate regulation of bits...
Page 82: ...82...
Page 96: ...96 8 4 Debugging example 8 4 1 Oscilloscope 1 Enter oscilloscope 2 Parameters for Oscilloscope...
Page 98: ...98 In Auto Reverse mode Kvp 110...
Page 100: ...100 The oscilloscope is as following max following error is 69 inc Fig 2 Kpp 30 Vff 100...
Page 101: ...101 The oscilloscope is as following max following error is 53 inc Fig 3 Kpp 30 Vff 50...
Page 102: ...102 The oscilloscope is as following max following error is 230 inc...