Specifications
Communication protocols
PROGRAMMING MANUAL 205
Revision 5.0
4.6.3 Communication operation
When the communication is in progress, specific data can be exchanged
with the CAN_CORT command.
1. To set the CANopen network state to pre-operational or operational,
execute the command CAN_CORT(unit,11,mode).
2. To read the value of an object of a CANopen node with an SDO (Service
Data Object) command, execute the command
CAN_CORT(unit,12,node_ID,index,subindex,VR_address).
Each byte of the return value occupies one VR address. The first
address (VR_address) contains the SDO response byte. The data read
starts at VR_address + 1.
When the SDO response is not 0, the error information from the node
unit starts at VR_address + 1.
3. To write a value to an object of a CANopen node with an SDO command,
execute the command
CAN_CORT(unit,13,node_ID,index,subindex,VR_address,data_len).
Each VR address is interpreted as one byte of the value that is written.
4. To read the EMCY (emergency message from a node, execute the
command CAN_CORT(unit,14,node_ID,VR_address).
Each byte of the 8 bytes occupies 1 VR address.
4.7 MECHATROLINK-II
The MECHATROLINK-II protocol is a serial bus that is made to control
motion in a deterministic way.
The number of MECHATROLINK-II devices determines the data exchange
cycle time:
• For 1 to 4 devices the cycle time can be 0.5 ms, 1 ms or 2 ms.
• For 5 to 8 devices the cycle time can be 1 ms or 2 ms.
• For 9 to 16 devices the cycle time is 2 ms.
The cyclic transmission has two stages:
• The TJ1-ML__ sends the reference command to the MECHATROLINK-II
slaves.
• The slaves send feedback and status information to the TJ1-ML__.
The MECHATROLINK-II uses a synchronization clock and broadcast
messaging to make sure that all the slaves execute the commands at the
same time.
In addition, other information is transferred at a lower rate, for example the
reading and writing of parameters.
There are specific BASIC commands to address MECHATROLINK-II slave
units directly.
• DRIVE_CLEAR: This command resets one alarm in a
MECHATROLINK-II Servo Driver via a MECHATROLINK-II message.
• OP(45,ON): This command sets to on one output in a remote
MECHATROLINK-II I/O module.
2 0 Input data does not contain valid data
1 Input data contains valid data
3 0 No emergency messages received.
1 One or more emergency message received
4 0 No fatal network error
1 Fatal network error
5 0 No PDO length error
1 PDO length error
8 0 No network power problem
1 Network power lost
9 0 No CAN bus problem
1 CAN bus in BUS OFF state
10 0 No duplicate node number in network
1 Duplicate node number in network
12 0 No CAN bus error detected
1 CAN bus error detected
Bit Value Description