Mitsubishi Electric MELSEC iQ-R Series User Manual page 182

Canopen module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Ex.
When Layer 2 message 2 parameters A and B are 00000180H, and Layer 2 message 2 parameters C and D are 00000006H
Receive messages whose CAN-ID is 00000180H, 00000182H, 00000184H, or 00000186H are stored in the message slot of
Layer 2 message 2 in 'Receive/Transmit process data' (Un\G10000 to Un\G10293) since bit 1 and bit 2 of each CAN-ID are
ignored in verification.
Frames on the network
'Data exchange request' (Y1)
'Data exchange completed' (X1)
Upper byte of RTR/new/DLC
(Upper byte of Un\G10009)
'Receive/Transmit
process data'
Data byte
(Un\G10010 to Un\G10013)
(Un\G10000 to
Un\G10293)
CAN-ID 2
(Un\G10007 to Un\G10008)
: Executed by the RJ71CN91
: Executed by the program
The behavior up to (d) is the same as that described in the above example.
In this example, it is required to check the 11-bit/29-bit CAN-ID of the corresponding message slot of 'Receive/Transmit
process data' (Un\G10000 to Un\G10293) to determine which CAN-ID message was received. Since the CAN-ID of the last
message is 00000180H, only the data of this message is stored in the data bytes of 'Receive/Transmit process data'
(Un\G10000 to Un\G10293). Data of messages whose CAN-ID is 00000182H or 00000186H will be lost.
• In this example, four messages are stored in the corresponding message slot in 'Receive/Transmit process
data' (Un\G10000 to Un\G10293). If two or more messages whose CAN-ID is 00000180H, 00000182H,
00000184H, or 00000186H are received while turning on 'Data exchange request' (Y1), only the last
message will be stored in 'Receive/Transmit process data' (Un\G10000 to Un\G10293).
• In this example, at (a), (b), (c), and (d), it is necessary to read data stored in the data bytes of 'Receive/
Transmit process data' (Un\G10000 to Un\G10293) and then clear RTR/new//DLC in 'Receive/Transmit
process data' (Un\G10000 to Un\G10293) by the program.
APPX
180
Appendix 2 Buffer Memory
Message
CAN-ID = 00000184H
Data A
ON
a
b
OFF
ON
OFF
00H
00H
XXH
Data X
XXXXXXXXH
Message
Message
CAN-ID = 00000182H
CAN-ID = 00000186H
Data B
Data C
c
00H
03H
Message
CAN-ID = 00000180H
Data D
d
00H
Data A
00000184H
07H
00H
Data D
00000180H

Advertisement

Table of Contents
loading

Table of Contents