Omron CJ1W-EIP21 Network Card User Manual


 
247
Sending Explicit Messages Section 9-1
Program Example
Sets 0000 in D00000 to D02999.
Shifts the contents of CIO 0000 one bit to the right and
retries in the next cycle (CIO 000000 ON).
Sends 8 bytes of command data to destination node address 06, receives
14 bytes of response data, and stores it in the local node starting at D02000.
(D00000 is control data.)
Shifts the contents of CIO 0000 one bit to the left.
Copies the completion code (network communications error response code)
from A203 to D00006.
Communications
Enabled Flag
First Cycle Flag
Execution
condition
Online Flag
(n+11, bit 00)
Communications
Enabled Flag
Network Communication
Execution Error Flag
Moves 0001 into CIO 0000.
000000
A20011
Sets 0028 in D00000. (Number of send data bytes: 40)
BSET #0000 D00000 D02999
MOV #0028 D00000
MOV #0064 D00001
MOV #0001 D00002
MOV #0510 D00003
MOV #0000 D00004
MOV #00A0 D00005
MOV #2810 D1000
MOV #0000 D1001
MOV #5202 D1003
MOV #2006 D1004
MOV #2401 D1005
MOV #0A0C D1006
MOV #0600 D1007
MOV #0102 D1008
MOV #2001 D1009
MOV #2401 D1010
MOV #0800 D1011
MOV #120D D1012
MOV #3139 D1013
MOV #322E D1014
MOV #3136 D1015
MOV #382E D1016
MOV #3235 D1017
MOV #302E D1018
MOV #3200 D1019
MOV #0001 0000
ASL 0000
CMND D01000 D02000 D00000
MOV A203 D00006
ASR 0000
END
000013
000018
000024
000000
A20200
000001 A20200 A21900
151100
Sets 0064 in D00001. (Number of receive data bytes: 100).
Sets 0001 in D00002. (Destination network address: 01).
Sets 0510 in D00003. (Destination node address: 05, destination unit address: 10)
Sets 0000 in D00004.
(Response required, port number 0, number of retries = 0)
Command data
Set the CIP UCMM MESSAGE SEND command's command data
in words D01000 to D01019 in routing data format.
Sets 00A0 in D00005. (Response monitoring time: 16.0 s)
(071)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(021)
(025)
(490)
(021)
(026)
(001)
MOV #05DC D1002
(021)