Omron CS1W-SLK11-21 - 06-2004 Manual page 112

Sysmac link units
Table of Contents

Advertisement

PLC Network Instructions
Name
Network Instruction
A202
Enabled Flag
Network Instruction
A219
Error Flag
Note
Communications
Instruction Response
Codes
Flag Timing
Port Enabled Flag
(port 0)
Port Execution Error
Flag (port 0)
Response code (port 0)
Note
can be executed at the same time for each port. To execute more than one
instructions in sequence at the same port, use the Port Enabled Flags to be
sure that a port is not busy before executing a new instruction for it. Port
Enabled Flags are contained in the status data provided in PLC memory for
network communications.
Address
Word
Port number corresponds to bit number, i.e.,
port 0: bit 00, port 1, bit 00, etc.
Port number corresponds to bit number plus
8, i.e., port 0: bit 00, port 1, bit 01, etc.
With CS-series PLCs, ports 0 to 7 are also used for executing the PMCR
(PROTOCOL MACRO) instruction, therefore these flags are used for the 4
instructions: SEND(90), RECV(98), CMND(490), and PMCR(260). When the
PMCR(260) command is being executed, the same port cannot be used for
SEND(90), RECV(98), and CMND(490) instructions.
The status after a communications instruction has been executed is reflected
in the words shown in the following table. During instruction execution, it
becomes "00" or "0000," and it is reflected here after the execution has been
completed.
PLC
CS Series
The following timing chart shows the timing of the Port Enabled Flag, Port
Execute Error Flag, and response codes. In this example two commands
were executed for port 0 but there was an error for command 1.
Command 1
1
Execution
enabled
0
1
0
Response code for the
previous command
Command
accepted
The new data will be sent if the data in the transmission area is changed while
a command is being executed. Do not change data in the area being transmit-
ted unless the Port Enabled Flag is ON.
Bit
0: Execution not enabled (executing)
1: Execution enabled (not executing)
0: Normal end
1: Abnormal end
Word
Bits
A203
---
Port 0 response code
A204
---
Port 1 response code
A205
---
Port 2 response code
A206
---
Port 3 response code
A207
---
Port 4 response code
A208
---
Port 5 response code
A209
---
Port 6 response code
A210
---
Port 7 response code
Command 2
Execution
Executing
enabled
Command 1
error occurred
Response code
0000
for command 1
Executed
Command
accepted
Section 6-2
Contents
Contents
Execution
Executing
enabled
Response code
0000
for command 2
Executed
95

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Sysmac cs1w-slk11Sysmac cs1w-slk21

Table of Contents