Receiving a user defined CAN message
Section 5-8
81
The figure below shows the IOWR message structure.
IOWR message structure
word n
Minimum identifier [hex]
range: 0000h ~ 07FFh
word n+1
Maximum identifier [hex]
range: 0000h ~ 07FFh
word n+2
Identifier mask [hex]
range: 0000h ~ 07FFh
word n+3
PLC start address
Identifier filter
Word n to word n+2 tell the C200HW-CORT21-V1 which messages to
receive, based on the identifier of the message. Word n and word n+1
indicate an identifier range.
To further narrow down the number of identifiers within this range, word n+2
indicates which bits in word n (the minimum identifier) must be matched and
which are don’t cares.
bit value ‘0’ = don’t care
bit value ‘1’ = must match
The use of word n to word n+2 is explained with a few examples.
Example
1. Configuring C200HW-CORT21-V1 to receive one specific identifier, e.g.
0200h.
Set the minimum and maximum identifier to the same value and set
the identifier mask to any value, e.g. ‘all bits must match’:
word n = 0200, word n+1 = 0200, word n+2 = 07FF
2. Configuring C200HW-CORT21-V1 to receive a range of identifiers, e.g.
010Ah to 0114h.
Set the minimum and maximum identifier value to cover the range
and set the identifier mask to ‘all bits don’t care’:
word n = 010A, word n+1 = 0114, word n+2 = 0000
3. Configuring C200HW-CORT21-V1 to receive specific identifiers within a
range, e.g. receive all odd identifiers within the range 010Ah to 0114h.
Set the minimum identifier to the first odd identifier in the range, the
maximum identifier to the maximum value and the identifier mask to
match the first bit of the first (odd) identifier:
word n = 010B, word n+1 = 0114, word n+2 = 0001
Note
The C200HW-CORT21-V1 ignores bits 11 to 15 of word n ~ word n+2 of the
IOWR message structure. Also, the Unit does not check the validity of word n
~ word n+2 e.g. when the identifier value of word n is greater than word n+1,
no messages will be received.
PLC start address
Word n+3 in the IOWR message structure indicates the start address of the
PLC memory area where the received CAN messages must be transferred
during the I/O refresh. The table below shows the definition of the PLC start
address.
PLC start address
0000 ~ 5900
DM0000 ~ DM5900 (C200HE: 0000 ~ 4000)
A000 ~ A140
IR000 ~ IR140
Word n+3
A300 ~ A420
IR300 ~ IR420
Note
When an incorrect PLC start address is set, error code 0440 is added to the
error log and received messages are no longer transferred to the PLC.
Summary of Contents for C200HW-CORT21-V1
Page 2: ...C200HW CORT21 V1 CANopen Slave Unit OPERATION MANUAL OMRON Cat No W904 E2 2 ...
Page 3: ......
Page 4: ......
Page 5: ......
Page 6: ...C200HW CORT21 V1 CANopen Slave Unit Operation Manual Produced June 2001 ...
Page 7: ...iv ...
Page 9: ...vi ...
Page 13: ...x ...
Page 47: ...Performance Section 2 3 30 ...
Page 85: ...Control and Status area Section 4 3 68 ...
Page 113: ...Flow diagrams Section 6 6 96 ...
Page 123: ...Maintenance Section 7 3 106 ...
Page 133: ...116 ...
Page 135: ...118 ...
Page 139: ...122 ...
Page 141: ......