165
Sending Explicit Messages Section 6-4
Program Example
000000
A20011
First Cycle Flag
Sets #0000 in D00000 to D02999.
Sets #000B in D00000.
(Number of send data bytes: 11)
Sets #000C in D00001.
(Number of receive data bytes: 12)
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 #2802 in D01000.
(Explicit command)
Sets #0001 in D01003.
Sets #000E in D01002.
Sets #0001 in D01004.
BSET #0000 D00000 D02999
MOV #000B D00000
(071)
(021)
MOV #000C D00001
(021)
MOV #0000 D00002
(021)
MOV #0020 D00003
(021)
MOV #0000 D00004
(021)
MOV #000E D01002
(021)
Sets #0100 in D01005.
MOV #0064 D00005
(021)
MOV #2802 D01000
(021)
MOV #0001 D01003
(021)
MOV #0001 D01004
(021)
MOV #0100 D01005
(021)
(Command data)
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)
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)
000015
000019
000024
Execution
condition
000000
A20200
Network
Communications
Enable Flag
000001
A20200
Network
Communications
Enable Flag
A21900
Network
communications
error
END
Sets #0001 in word 0000.
MOV #0001 0000
(021)
Sets #100B in D01001.
MOV #100B D01001
(021)