Omron C200HW-CORT21 Operation Manual page 49

Table of Contents

Advertisement

Receiving a user defined CAN message
Clearing the buffer
Example
transferred to the PLC.
After a reset or after power-on, the buffer is only cleared when a new IOWR
message with control code #0004 is successfully executed. This means that
the buffer is also cleared when the same IOWR message (with the same
identifier values) is indicated to the Unit.
The following example shows how an arbitrary CAN message is read. In this
example, the Machine number is set to '1'.
Assume that there is a 32-bit counter unit on the network that transmits its
actual count value every time the count changes. On average, the count
changes every 2 ms. The identifier of the message is 280h. Another node
transmits its 8-bit input value every 4 ms with identifier 282h. A third node
transmits its 16-bit clock value every 200 µ s with identifier 281h.
The scan time of the PLC is fixed to 8 ms. The C200HW-CORT21 only wants
to receive the 32-bit counter value and the 8-bit input value. The Unit does
not want its receive buffer to be filled with the high frequent clock messages.
The received messages must be transferred to DM0600.
14.00
Indicate_Identifier
PLC memory address
DM0500
DM0501
DM0502
DM0503
DM0600
DM0601
DM0602
DM0603
DM0604
DM0605
DM0606
DM0607
DM0608
DM0609
DM0610
DM0611
DM0612
IOWR (-)
#0004
DM0500
#1004
255.06
12.00
EQ_FLAG
ERROR
Contents
0280
0282
0001
0600
0006
0280
0004
1004
000F
0000
0000
0280
0004
1003
000F
0000
0000
Section 4-6
47

Advertisement

Table of Contents
loading

Table of Contents