
How to set up an Anybus CC-Link slave module with a Mitsubishi PLC
SCM-7032-027
Rev. 1.02
4.3 PLC handshaking
The Anybus module can be configured for handshaking or not.
Note: It is not necessary to use handshaking mode, it is used in this example for demonstrative purposes
only. When configured for handshaking the Anybus module requires an answer from the PLC.
Version 1.0 The dividing of the 2 bytes in the handshaking area can be seen in the following table.
Bit Slave -> Master Master -> Slave
0 – 7 Reserved Reserved
8 Initial data processing request flag Initial data processing complete flag
9 Initial data setting complete flag Initial data setting request flag
A Error status flag Error reset request flag
B Remote READY Reserved
C – F Reserved Reserved
Figure 7 The handshaking area for version 1.0.
The memory offset of the handshaking area is depending on the number of occupied stations and the station
number in the network. The table below shows the memory offset for the handshaking area.
www.anybus.com HMS Industrial Networks AB
Page 9 (18)
Number of occupied stationsMemory offset in Dec
1 2 3 4
1 10 30 50 70
2 30 50 70 90
Station number
4 70 90 110 130
8 150 170 190 210
Figure 8 Table showing the memory offset for different configurations.
In this example the station number is 1 and the number of occupied stations is 2. The Input and Output area
in the PLC are configured to begin at address 1000 Hex, as can be seen in Figure 5 Setting the CC-Link
parameters. The memory offset for the Handshaking area is then 1030 Hex in the memory of the PLC. In this
case the offset for the Remote Ready flag will be 103B Hex.
Formula
The formula for the memory offset in this case is 10(m+n)0 Hex, where m is depending on the station
number and n on the number of occupied stations as shown in the figure above. The relations are:
m=(station number-1)*2 and
n=number of occupied stations*2-1.
In this example the station number is 1 therefore the m-factor is zero. The n-factor will have the values
1,3,5,7 for 1,2,3,4 occupied station(s). In this example the number of occupied stations is 2 and the m+n-
factor consequently is 3. So the memory offset for the handshaking area is 1030 Hex and the complete
address for the remote ready flag will be 103B as shown in figure 10.
Offset to Remote Ready bit
Offset configured in the PLC
The offset to the first bit in the handshaking area