159
Sending Explicit Messages Section 6-4
Program Example
6-4 Sending Explicit Messages
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
000000
A20011
First Cycle Flag
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)
BSET #0000 D00000 D02999
MOV #0002 D00000
(071)
(021)
MOV #002E D00001
(021)
MOV #0000 D00002
(021)
MOV #0020 D00003
(021)
MOV #0000 D00004
(021)
Sets #0001 in word 0000
MOV #0064 D00005
(021)
MOV #0501 D01000
(021)
MOV #0001 0000
(021)
(Command data)
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)
Shifts the contents of CIO 0000 by one bit to the left.
(Turns ON CIO 0000.01.)
Shifts the contents of CIO 0000 by one bit to the right, and
retries with the next cycle. (Turns ON CIO 0000.00.)
Stores contents of A203 (Network Communications
response Code) in D00006.
ASL 0000
(025)
CMND D01000 D02000 D00000
(490)
MOV A203 D00006
(021)
ASR 0000
(026)
END
(001)
000010
000014
000019
Execution condition
000000
A20200
Network
Communications
Enable Flag
000001
A20200
Network
Communications
Enable Flag
A21900
Network
communications
error
CompoNet Network
CS/CJ-series CompoNet Master Unit
CS/CJ-series CPU Unit
Com
oNet Slave Unit
Explicit message
●Explicit messages can be sent.