Program Area Read - Omron SYSMAC C200HW-PCU01 Operation Manual

Pc card unit
Table of Contents

Advertisement

Commands and Responses for C200HX/HG/HE CPUs

11-1-8 PROGRAM AREA READ

Command Block
Response Block
Parameters
168
Memory Areas
The following data can be read (refer to 11-1-4 Memory Area Designations for
memory area designations):
Memory area
CIO, LR, HR, or AR Bit status
area
Timer/Counter
DM
Expansion DM
Response code
Refer to Appendix D Response Codes from the C200HX/HG/HE CPU.
Reads the contents of the specified number of consecutive program area words
starting from the specified word. The program is read in machine language
(object code). A maximum of 512 bytes can be read with each command.
Command
Program
code
no.
Command
Response
code
code
Program no. (command and response): Set to 0000.
Beginning word(command and response): Set a relative byte address with
00000000 as the starting address. The beginning word must be an even num-
ber. 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 num-
ber 0200 (512 in decimal) or smaller. The number of bytes actually 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.
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 program
will be read through the final address and a response code indicating an address
range error or response length error will be returned.
Data
Word contents
Completion Flag status
PV
Word contents
Word contents
Beginning word
No. of
bytes
Program
Beginning word
No. of
no.
bytes
Bit 15 OFF (0): Without last word data
Bit 15 ON (1): With last word data
Bits 0 to 14: No. of bytes read
Section 11-1
Memory area
No. of
code
bytes
00
1
80
2
01
1
81
2
82
2
90 to 98,
2
A8 to AF
512 bytes maximum
Data

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c200hw-pcs01-ev1

Table of Contents