![background image](http://html1.mh-extra.com/html/omron/cvm1-clk21/cvm1-clk21_operation-manual_742531176.webp)
160
Commands and Responses for C200HX/HG/HE and CQM1H-series
Section 6-6
6-6-6
PROGRAM AREA READ
Reads the contents of the specified number of consecutive program area
words starting from the specified word. The program is read a machine lan-
guage (object code). A maximum of 1,990 bytes can be read with each com-
mand.
Command Block
Response Block
Parameters
Program no. (command and response): Set to 0000 (Hex).
Beginning address (command and response): Set an relative byte address
with 00000000 (Hex) as the starting address. The beginning word must be an
even number. The address set in the command will be returned in the
response.
No. of bytes (command and response): The number of bytes in an even
number 07C6 (Hex) (1990 in decimal) or smaller. The number of bytes actu-
ally read will be returned in the response. Bit 15 will be ON (1) in the response
block when the last word data of the program area is returned.
Data (response): The data in the specified program area will be returned in
sequence starting from the beginning word.
Note If the designated number of bytes is larger than the program area, the pro-
gram will be read through the final address and a response code indicating an
address range error or response length error will be returned.
6-6-7
PROGRAM AREA WRITE
Writes data to the specified number of consecutive program area words start-
ing from the specified word. A maximum of 1,990 bytes can be written with
each command. To write larger amounts of data, use multiple commands and
specify the beginning word and number of words for each. The data is written
to the program area at the machine language (object code) level.
Command Block
03
06
Program
no.
Beginning address
00
00
No. of
bytes
Command
code
03
06
00
00
Beginning address
Data
Program
no.
No. of
bytes
Response
code
Command
code
1,990 bytes maximum
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 read
03
07
Program
no.
Beginning word
Data
No. of
bytes
00
00
Command
code
1,990 bytes maximum
Содержание CVM1-CLK21
Страница 2: ......
Страница 3: ......
Страница 4: ...iv...
Страница 6: ...vi...
Страница 33: ...17 Application Precautions Section 1 5 2 9 8 2 2 8 5 2...
Страница 34: ......
Страница 42: ......
Страница 66: ......
Страница 103: ...87 Setting Data Links Section 5 2 Device Information Setting Data Link Tables...
Страница 124: ......
Страница 192: ......
Страница 280: ......
Страница 284: ......
Страница 300: ......
Страница 304: ......