![background image](http://html.mh-extra.com/html/omron/c200hw-clk21/c200hw-clk21_operation-manual_742483246.webp)
221
Commands and Responses for C200HX/HG/HE and CQM1H-series PLCs
Section 6-6
No. of bytes (command and response):
The command specifies the num-
ber of bytes of data to write. This must be an even number of 07C6 (Hex) or
smaller (1990 or smaller in decimal). The number of bytes actually written will
be returned in the response. The leftmost bit (bit 15) is used to indicate the
completion of the command. It must be turned ON (1) when writing data to the
last address in the program area so that the PLC can generate an index*. To
write only an index marker, specify 8000 (Hex) for the number of bytes.
*Generating an index is a process that enables a program to be used by the
PLC after it has been written. A program will not run properly if the index has
not been generated.
Data (command):
The data to be written.
6-6-8
RUN
Changes the PLC to MONITOR or RUN mode, enabling the PLC to execute
its program.
Command Block
Response Block
Parameters
Program no. (command and response):
Set to 0000 (Hex).
Mode (command):
As follows:
02 (Hex):
MONITOR mode
04 (Hex):
RUN mode
Note
If the mode is not specified, the PLC will go to MONITOR mode.
6-6-9
STOP
Changes the PLC to PROGRAM mode, stopping program execution.
Command Block
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
Bit 15 OFF (0): Without last word data
Bit 15 ON (1): With last word data
Bits 0 to 14: No. of bytes written
01
04
00
00
Program
no.
Command
code
Mode
01
04
Response
code
Command
code
Command
code
02
04
Содержание C200HW-CLK21
Страница 3: ...iv ...
Страница 9: ...x ...
Страница 12: ...xiii TABLE OF CONTENTS Index 367 Revision History 373 ...
Страница 13: ...xiv ...
Страница 19: ...xx ...
Страница 57: ...32 Application Precautions Section 1 5 Example CX Programmer Response Timeout Setting ...
Страница 69: ...44 Message Service Procedure Section 2 2 ...
Страница 111: ...86 Constructing Networks with Repeater Units Section 3 4 ...
Страница 154: ...129 Setting Data Links Section 5 2 Device Information Setting Data Link Tables ...
Страница 261: ...236 Response Codes Section 6 7 ...
Страница 297: ...272 Message Delay Times Section 8 4 ...
Страница 353: ...328 Handling Precautions Section 9 6 ...
Страница 364: ...339 Changing the Data Link Tables with Active Data Links Section 10 2 ...
Страница 365: ...340 Changing the Data Link Tables with Active Data Links Section 10 2 ...
Страница 369: ...344 Standard Models Appendix A ...
Страница 391: ...366 Using the Relay Terminal Block Appendix C ...
Страница 397: ...372 Index ...
Страница 401: ...376 Revision History ...