Omron CJ1W-DRM21 Marine RADAR User Manual


 
165
Receiving Explicit Messages Section 6-5
Program Example
6-5 Receiving Explicit Messages
This CS/CJ-series DeviceNet Unit contains a PLC Object. The Unit will
receive messages addressed to the PLC Object, process service requests
addressed to the CPU Unit, and return responses.
The following services are provided by the PLC Object.
CPU Unit status read/write
CPU Unit I/O memory read/write
The explicit messages can be received from the following sources:
Masters made by other manufacturers
PCs with C200H-series DeviceNet Master Units (C200HW-DRM21-V1)
(021)
MOV A203 D00006
A200
11
(021)
MOV #0009 D00000
(021)
MOV #000A D00001
(021)
MOV #0001 D00002
(021)
MOV #05FE D00003
(490)
CMND D01000 D02000 D00000
(025)
ASL 0000
0000
00
A202
0000
01
(071)
BSET #0000 D00000 D02999
Sets 0000 in D00000 to D02999.
Place data into control data words to specify sending
9 bytes to node 05 (unit FE) on network 01 and to
receive 10 bytes in return.
Shifts the contents of CIO 0000 one bit to the right and
retry at next cycle (CIO 000000 ON).
Sends 9 bytes of command data to node 05 (unit FE) on
network 01 and receives 10 bytes of response data and
stores it in D02000.
Shifts the contents of CIO 0000 one bit to the left.
Stores the completion code in A203 to D00006.
Port
Enabled
Flag
(021)
MOV #0000 D00004
(021)
MOV #0064 D00005
First Scan Flag
1511
00
(026)
ASR 0000
Execution
condition
Message
Commu-
nications
Permitted
Flag
A202
00
A219
00
Port
Enabled
Flag
Port
Execution
Error Flag
(021)
MOV #2801 D01000
(021)
MOV #0B0E D01001
(021)
MOV #0001 D01002
(021)
MOV #0001 D01003
(021)
MOV #0100 D01004
Place the command data for EXPLICIT MESSAGE
SEND into D01000 to D01004.
Places 0001 into CIO 0000
(021)
MOV #0001 0000
00
(001)
END