Omron CVM1-CLK21 Network Card User Manual


 
217
Commands and Responses for C200HX/HG/HE and CQM1H-series PLCs Section 6-6
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
Response Block
Parameters Program no. (command and response): Set to 0000 (Hex).
Beginning word (command and response): Set a 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.
03 06 00 00
Beginning address DataProgram
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 DataNo. of
bytes
00
00
Command
code
1,990 bytes maximum
03 07
Beginning wordProgram
no.
00
00
No. of
bytes
Response
code
Command
code