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
0 – 7
8
9
A
B
C – F
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.
Memory offset in Dec
Station number
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.
Offset configured in the PLC
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.
www.anybus.com
How to set up an Anybus CC-Link slave module with a Mitsubishi PLC
Slave -> Master
Reserved
Initial data processing request flag
Initial data setting complete flag
Error status flag
Remote READY
Reserved
1
2
4
8
The offset to the first bit in the handshaking area
HMS Industrial Networks AB
Master -> Slave
Reserved
Initial data processing complete flag
Initial data setting request flag
Error reset request flag
Reserved
Reserved
Number of occupied stations
1
2
10
30
30
50
70
90
150
170
Offset to Remote Ready bit
Page 9 (18)
SCM-7032-027
Rev. 1.02
3
4
50
70
70
90
110
130
190
210
Need help?
Do you have a question about the Anybus CC-Link Slave and is the answer not in the manual?
Questions and answers