492
10-3-32 PROGRAM READ –– RP
Reads the contents of the PC user’s program area in machine language (object
code). The contents are read as a block, from the beginning to the end.
Command Format
@ RP
x 10
0
x 10
1
↵
Node no. Header
code
TerminatorFCS
Response Format
@ RP
x 10
0
x 10
1
x 16
1
x 16
0
↵
Node no. Header
code
End code 1 byte
Program (for entire UM area)
TerminatorFCS
Limitations The command is valid only when the UM setting is ladder only.
The command can’t be executed if the UM area is read-protected.
Data is read from the beginning of the ladder area to the maximum limit of the
program area. (For example, $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.)
The beginning read address and the length of the response depend on the UM
area settings (such as the amount of memory allocated to expansion DM).
The response’s first frame can contain up to 30 words of program data. The se-
cond and later frames can contain up to 31 words each.
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 the same as delimiters.
PC Settings
PC Mode UM Area
RUN MONITOR PROGRAM Write-protected Read-protected
OK OK OK OK ---
Execution Conditions
Commands Responses
Single Multiple Single Multiple
OK --- OK OK
End Codes An end code of 14 (format error) will be returned if the length of the command is
incorrect.
End code Contents
00 Normal completion
13 FCS error
14 Format error
18 Frame length error
23 User memory protected
A3 Aborted due to FCS error in transmit data
A8 Aborted due to frame length error in transmit data
Host Link Commands
Section 10-3