Sending Explicit Messages - Omron CS1W-CRM21 Operation Manual

Componet master units
Table of Contents

Advertisement

Sending Explicit Messages

Program Example
6-4
Sending Explicit Messages
A20011
000000
First Cycle Flag
Execution condition
000000
A20200
000010
Network
Communications
Enable Flag
000001
A20200
A21900
000014
Network
Network
Communications
communications
Enable Flag
000019
Explicit messages can be sent using a CS/CJ-series CompoNet Master Unit.
A explicit message is sent with a FINS command header attached.
Explicit messages can be sent to CompoNet Slave Units, as shown below.
• CompoNet Slave Units
Example
CS/CJ-series CompoNet Master Unit
CS/CJ-series CPU Unit
CompoNet Network
(071)
BSET #0000 D00000 D02999
(021)
MOV #0002 D00000
(021)
MOV #002E D00001
(021)
MOV #0000 D00002
(021)
MOV #0020 D00003
(021)
MOV #0000 D00004
(021)
MOV #0064 D00005
(021)
MOV #0501 D01000
(021)
MOV #0001 0000
(490)
CMND D01000 D02000 D00000
(025)
(021)
MOV A203
error
●Explicit messages can be sent.
Explicit message
Section 6-4
Sets #0000 in D00000 to D02999
Sets #0002 in D00000. (Number of send data bytes: 2)
Sets #002E in D00001.
(Number of receive data bytes: 46)
Sets #0000 in D00002.
(Destination network address: 00)
Sets #0020 in D00003.
(Destination node address: 00;
Destination unit address: 20 hex)
Sets #0000 in D00004.
(Response: Required; Communications port No.: 0;
Number of retries: 0)
Sets #00064 in D00005.
(Response monitoring time: 10 s)
Sets #0501 in D01000.
(READ CONTROLLER DATA)
Sets #0001 in word 0000
Sends 2 bytes of command data from D01000 to destination
node address 00, and stores 46 bytes of response data in
D02000 onwards at the local node. (D00000: Control data)
ASL 0000
Shifts the contents of CIO 0000 by one bit to the left.
(Turns ON CIO 0000.01.)
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
CompoNet Slave Unit
(Command data)
159

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-crm21

Table of Contents