Omron C200HW-CLK21 Data Configuration, Flag or Bit Status One Byte, Word Contents or PV Two Bytes

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

1 401
Download 401 pages 33.98 Kb
Page 237
Image 237

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

Section 6-6

Data Configuration

The configuration of the various types of data that can be read or written is

 

shown below. The number of bytes required for each type of data is also

 

given.

 

Flag or Bit Status (One Byte)

00:Bit is OFF (0)

01:Bit is ON (1)

Word Contents or PV (Two Bytes)

Bits 0 to 7 (second byte)

Bits 8 to 15 (first byte)

6-6-3 MEMORY AREA READ

Reads the contents of the specified number of consecutive memory area words starting from the specified word. All words must be in the same mem- ory area. (Here, all memory areas with the same memory area code are con- sidered as one area).

Command Block

 

01

01

00

 

 

 

 

 

 

Command

Beginning address

No. of items

 

 

code

 

 

 

 

 

 

 

 

Memory area code

 

 

 

 

Response Block

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

01

01

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command

Response

 

Data

 

 

code

code

 

 

 

 

Parameters

Memory area code (command): The data area to read.

Beginning address (command): The address of the first word/bit/flag to read from memory. Specify 00 (Hex) for the 3rd byte.

No. of items (command): The number of items to be read. Specify 0000 to 03E7 (Hex) (0 to 999 decimal). The command can be completed normally even if zero items are specified.

Data (response): The data from the specified words is returned in sequence starting from the beginning address. PVs for timers and counters are returned as BCD. The required number of bytes in total is calculated as follows:

No. of bytes required by each item No. of items

214

Page 237
Image 237
Omron C200HW-CLK21, CVM1-CLK21, CS1W-RPT01 Data Configuration, Flag or Bit Status One Byte, Word Contents or PV Two Bytes