Program Write - - Wp - Omron CJ - REFERENCE MANUAL 07-2009 Reference Manual

Communications commands
Hide thumbs Also See for CJ - REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

C-mode Command Details
Execution Conditions
Commands
Single
Multiple
Single
OK
No
End Codes
4-3-33 PROGRAM WRITE – – WP
Command Format
Response Format
Limitations
Execution Conditions
Commands
Single
Multiple
Single
OK
OK
The response's first frame will contain 30 words of program data. The second
and later frames will contain 31 words except for the last frame, which will
contain up to 31 words.
The INITIALIZE and ABORT commands can be sent instead of the delimiter
for multiple responses for this command. If other commands are sent, they will
be treated as delimiters.
Responses
Multiple
RUN
OK
OK
OK
An end code of 14 (format error) will be returned if the length of the command
is incorrect.
End code (Hex)
00
13
14
18
19
21
23
Writes to the CPU Unit user's program area the machine language program
transmitted from the host computer. The contents are written as a block, from
the beginning.
1
@
x 10
Unit No. (BCD)
@
Unit No. (BCD) Header
The command cannot be executed while the UM Area is write-protected.
Data is written from the beginning of the UM Area to the maximum limit of the
program area.
An error will not 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 in units of 4 characters.
Responses
Multiple
RUN
OK
No
No
PLC Mode
MON
PROG
OK
OK
Normal completion
FCS error
Format error
Frame length error
Not executable
Not executable due to CPU Unit CPU error.
User memory protected
0
1
W
P
x 10
x 16
x 16
Header
Complete program
code
1
0
W
P
x 10
x 10
x 16
End code
code
PLC Mode
MON
PROG
No
OK
Section 4-3
UM Area
Write-protected
Read-protected
OK
Contents
*
0
FCS
Terminator
*
1
0
x 16
FCS
Terminator
UM Area
Write-protected
Read-protected
No
No
OK
143

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents