Omron CVM1-CLK21 Network Card User Manual


 
214
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)
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
Response Block
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
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
Beginning address
Memory area code
No. of itemsCommand
code
01 01 00
Response
code
Command
code
01
01
Data