![Omron CVM1D Operation Manual Download Page 400](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532400.webp)
395
Example
This example shows CMND(194) used to transmit a command to the PC on
node 3 of network 1 to change the PC to MONITOR mode when CIO 00000 is
ON. D05001 is the first word to receive the response, and D04001 through
D04003 contain the command data.
00000
LD
000000
00001
CMND(194)
D04001
D05001
D01001
Address Instruction
Operands
0000
00
(194)
CMND D04001
D05001
D01001
Word
Content
D04001
0401
D04002
0000
D04003
0002
D01001 to D01006 contain the control data, as shown below.
Word
Content
Function
D01001
0006
Number of bytes to send = 6
D01002
0100
Number of bytes to receive = 256
D01003
0001
Destination network address = 01
D01004
0300
Destination node number = 03; unit = PC
D01005
0207
Response returned; transmission port = 2; retries = 7
D01006
0064
Response monitoring time = 10 seconds
5-34-7 About Network Instruction Operations
SEND(192), RECV(193), and CMND(194) are based on command/response
processing. That is, the transmission is not complete until the sending node re-
ceives and acknowledges a response from the destination node, unless the re-
sponse function is disabled in the control word or data is being broadcast to all
nodes in a network. Refer to the SYSMAC NET Link System Manual, SYSMAC
LINK System Manual, or Controller Link System Manual for details about com-
mand/response operations.
If more than one network instruction (SEND(192)/RECV(193)/CMND(194)) is
used through one port, the following flags must be used to ensure that any pre-
vious operation has completed before attempting further network instructions.
Flag
Functions
Port #0 to #7
Enabled Flags
(A50200 to A50207)
Enabled Flags A50200 to A50207 are OFF during network
instruction execution for ports #0 to #7, respectively. Do not
start a network instruction for a port unless the
corresponding Enabled Flag is ON.
Port #0 to #7
Execution Error Flags
(A50208 to A50215)
OFF following normal completion of a network instruction
(i.e., after reception of response signal)
ON after an unsuccessful network instruction attempt. Error
status is maintained until the next network instruction.
Error types:
Time-out error (command/response time greater than the
response monitoring time set in the control words)
Transmission data errors
Port #0 to #7
Completion Codes
(A503 to A510)
A503 to A510 contain the completion codes for errors that
occur during network instruction execution for ports #0 to
#7, respectively. The code for normal completion of a
network instruction is 0000. Refer to the SYSMAC NET Link
System Manual, SYSMAC LINK System Manual, or
Controller Link System Manual for details on error codes.
Network Instructions
Section 5-34
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...