Omron CVM1-CLK21, CS1W-RPT01, CJ1W-CLK21-V1, C200HW-CLK21, CQM1H-CLK21 Program Area Write

Models: CS1W-RPT01 CJ1W-CLK21-V1 CVM1-CLK21 CQM1H-CLK21 CS1W-CLK21-V1 C200HW-CLK21

1 401
Download 401 pages 33.98 Kb
Page 240
Image 240

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

Section 6-6

Response Block

03 06

00 00

1,990 bytes maximum

Command

Response

Program

Beginning address

No. of

Data

code

code

no.

 

bytes

 

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.

Bit 15 OFF (0): Without last word data

Bit 15 ON (1): With last word data

Bits 0 to 14: No. of bytes read

Bits 0 to 7 (second byte)

Bits 8 to 15 (first byte)

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 07

00 00

1,990 bytes maximum

Command

Program

Beginning word

No. of

Data

code

no.

 

bytes

 

Response Block

03 07

00 00

 

Command

Response

Program

Beginning word

No. of

 

code

code

no.

 

bytes

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.

217

Page 240
Image 240
Omron CVM1-CLK21, CS1W-RPT01, CJ1W-CLK21-V1, C200HW-CLK21, CQM1H-CLK21, CS1W-CLK21-V1 operation manual Program Area Write