Sending Explicit Messages - Omron CS1W-CRM21 Operation Manual

Componet master units
Table of Contents

Advertisement

Sending Explicit Messages

Program Example
000000
000015
000019
000024
A20011
First Cycle Flag
Execution
condition
000000
A20200
Network
Communications
Enable Flag
000001
A20200
A21900
Network
Network
Communications
communications
Enable Flag
error
(071)
BSET #0000 D00000 D02999
Sets #0000 in D00000 to D02999.
(021)
MOV #000B D00000
Sets #000B in D00000.
(Number of send data bytes: 11)
(021)
MOV #000C D00001
Sets #000C in D00001.
(Number of receive data bytes: 12)
(021)
MOV #0000 D00002
Sets #0000 in D00002.
(Destination network address: 00)
(021)
MOV #0020 D00003
Sets #0020 in D00003.
(Destination node address: 00;
Destination unit address: 20 hex)
(021)
MOV #0000 D00004
Sets #0000 in D00004.
(Response: required; Communications
port No.: 0; Number of retries: 0)
(021)
MOV #0064 D00005
Sets #00064 in D00005.
(Response monitoring time: 10 s)
(021)
MOV #2802 D01000
Sets #2802 in D01000.
(Explicit command)
(021)
MOV #100B D01001
Sets #100B in D01001.
(021)
MOV #000E D01002
Sets #000E in D01002.
(021)
MOV #0001 D01003
Sets #0001 in D01003.
(021)
MOV #0001 D01004
Sets #0001 in D01004.
(021)
MOV #0100 D01005
Sets #0100 in D01005.
(021)
MOV #0001 0000
Sets #0001 in word 0000.
(490)
CMND D01000 D02000 D00000
Sends 11 bytes of command data from D01000 to destination
node with node address 05, and stores 12 bytes of response
data in D02000 onwards at the local node. (D00000: Control data)
(025)
ASL 0000
Shifts the contents of CIO 0000 by one bit to the left.
(Turns ON CIO 0000.01.)
(021)
MOV A203
D00006
Stores contents of A203 (Network Communications
Response Code) in D00006.
(026)
ASR 0000
Shifts the contents of CIO 0000 by one bit to the right,
and retries with the next cycle. (Turns ON CIO 0000.00.)
(001)
END
END
Section 6-4
(Command data)
165

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-crm21

Table of Contents