Omron C200HX Operation Manual page 515

Hide thumbs Also See for C200HX:
Table of Contents

Advertisement

Host Link Commands
10-3-33 PROGRAM WRITE –– WP
Command Format
Response Format
Limitations
1, 2, 3...
PC Settings
Execution Conditions
End Codes
Writes to the PC user's program area the machine language (object code) pro-
gram transmitted from the host computer. The contents are written as a block,
from the beginning.
1
0
x 10
x 10
@
W
Node no.
Header
code
1
@
x 10
x 10
Node no.
The command is valid only when the UM setting is ladder only.
The command can't be executed if the UM area is write-protected.
Data is written from the beginning of the ladder area to the maximum limit of the
program area. Here are two examples:
1. $A06C0 through $A7FBF when the UM size is 16K words and none of the
UM area is allocated to expansion DM or I/O comments.
2. $A06E0 through $A7FBF when the UM size is 16K words, 1000 words are
allocated to the expansion DM, and none is allocated to I/O comments.
The beginning write address and maximum size of the program depend on the
UM area settings (such as the amount of memory allocated to expansion DM).
An error won't occur if the command attempts to write program data beyond the
maximum size of the program area.
The program data can be divided into multiple frames.
PC Mode
RUN
MONITOR
---
---
Commands
Single
OK
An end code of 14 (format error) will be returned if the length of the command is
incorrect (the total size of the program is an odd number of bytes) or the first
frame contains no program data.
An end code of 15 (entry number data error) will be returned if the specified write
data isn't hexadecimal.
End code
00
Normal completion
01
Not executable in RUN mode
02
Not executable in MONITOR mode
13
FCS error
1
0
x 16
x 16
P
1 byte
Program (Up to maximum memory size)
0
1
0
W
P
x 16
x 16
Header
End code
code
PROGRAM
Write-protected
OK
---
Multiple
Single
OK
OK
Contents
Section 10-3

FCS
Terminator

FCS
Terminator
UM Area
Read-protected
OK
Responses
Multiple
---
497

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200hgC200he

Table of Contents