142
C-mode Command Details Section 4-3
4-3-31 TEST– – TS
Returns, unaltered, one block of data transmitted from the host computer.
Command Format Specify any characters other than the carriage return.
Response Format The same characters specified in the command will be returned unaltered if
the test is successful.
Limitations Between 0 and 122 characters can be sent.
If the command is correct, no end code will be returned.
Execution Conditions
End Codes An end code of 14 (format error) will be returned if a terminator is not received
in the first frame.
4-3-32 PROGRAM READ – – RP
Reads the contents of the CPU Unit user’s program area in machine lan-
guage. The contents are read as a block, from the beginning to the end.
Command Format
Response Format
Limitations The command cannot be executed if the UM Area is read-protected.
Data is read from the beginning of the UM Area to the maximum limit of the
program area.
@TS
x 10
0
x 10
1
* ↵
Unit No. (BCD)
Header
code
Characters
122 characters max.
TerminatorFCS
@TS
x 10
0
x 10
1
* ↵
Unit No. (BCD)
Header
code
Characters
122 characters max.
TerminatorFCS
Commands Responses PLC Mode UM Area
Single Multiple Single Multiple RUN MON PROG Write-protected Read-protected
OK No OK No OK OK OK OK OK
End code (Hex) Contents
13 FCS error
14 Format error
18 Frame length error
21 Not executable due to CPU Unit CPU error.
@ R P
x 10
0
x 10
1
↵*
Unit No. (BCD)
Header
code
TerminatorFCS
@RP
x 10
0
x 10
1
x 16
1
x 16
0
↵*
Unit No. (BCD)
Header
code
End code
Complete program
TerminatorFCS