Pre-Defined Layer 2 Receive Messages - Mitsubishi Electric MELSEC L-Series User Manual

Programmable logic controllers
Table of Contents

Advertisement

Detailed Description of the Module
3.6.2.2

Pre-defined Layer 2 receive messages

The meaning of the parameters A to D for a receive message is as follows:
Parameter
Layer 2 message n parameter A
Layer 2 message n parameter B
Layer 2 message n parameter C
Layer 2 message n parameter D
Tab. 3-33: Parameters A to D of receive messages
The "Default" value is the initial value set after the power is turned ON or the PLC CPU is reset.
● Reception: Layer 2 message n parameter A and B
Set the 11/29 bit CAN ID of the message to be received and stored in the corresponding Layer 2
message n message slot.
Set both parameters A and B to FFFF
● Reception: Layer 2 message n parameter C and D
Set the filter for the ID set in parameter A and B. If the filter is set to 0000 0000
are checked for an exact match with the ID set in parameter A and B. Any bit set in the filter will
be omitted when comparing received IDs with the ID set in parameter A and B.
Example 1
Filter setting: 0000 0000
– Layer 2 message 1 parameter A/B = 0000 0181
– Layer 2 message 1 parameter C/D = 0000 0000
Un\G10000 to Un\G10006 store received messages with the CAN-ID 181
received CAN message, Yn1 and "RTR/new/DLC" high byte is shown below (RTR/new/DCL high byte
is described in table 3-39).
CAN bus
Yn1
Xn1
RTR/new/DLC
high byte
XX
00
H
H
(Un\G10009
high byte)
Data byte
(Un\G10010–
Un\G10013)
Fig. 3-8:
The flags "RTR/new/DLC" are cleared by the PLC program after
there was no message stored between
The first received CAN message that matches parameter A/B and C/D is stored into the internal buf-
fers, and as this is the only message between
The high byte value 07
two times) since
3 – 36
Description
Reception CAN-ID
Reception ID filter bit mask
H
Message
0181
H
Data A
00
H
(No new data between
and
)
Data x
Relationships for example 1
after
shows that the buffer was overwritten at least once (in this example
H
. The data bytes in the buffer memory are the data received with the last message.
Buffer Memory Details: Layer 2 Message Mode
to disable the message slot.
H
H
H
Message
Message
0181
0181
H
H
Data B
Data C
03
H
(New data + frame between
Data A
Performed by ME3CAN1-L
Performed by the sequence program
and
.
and
, the high byte value is set to 03
Default
low word
FFFF
H
high word
FFFF
H
low word
0000
H
high word
0000
H
incoming messages
H
only. Relation between
H
Message
0181
H
Data D
07
H
(New data + frame and
and
)
overflow between
Data D
. They remain 00
after
H
.
H
MITSUBISHI ELECTRIC
Remark
R/W
and
)
, because

Advertisement

Table of Contents
loading

This manual is also suitable for:

Canopen me3can1-l

Table of Contents