Run; Stop - Omron C200HW-CLK21 Operation Manual

Controller link units
Hide thumbs Also See for C200HW-CLK21:
Table of Contents

Advertisement

Commands and Responses for C200HX/HG/HE and CQM1H-series PLCs
6-6-8

RUN

Command Block
Response Block
Parameters
6-6-9

STOP

Command Block
218
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.
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
Data (command): The data to be written.
Changes the PLC to MONITOR or RUN mode, enabling the PLC to execute
its program.
04
01
00
00
Command
Program
code
no.
04
01
Command
Response
code
code
Program no. (command and response): Set to 0000 (Hex).
Mode (command): As follows:
02 (Hex):
04 (Hex):
Note If the mode is not specified, the PLC will go to MONITOR mode.
Changes the PLC to PROGRAM mode, stopping program execution.
04
02
Command
code
Bit 15 OFF (0): Without last word data
Bit 15 ON (1): With last word data
Bits 0 to 14: No. of bytes written
Mode
MONITOR mode
RUN mode
Section 6-6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents