The text of a manual · part 53 of 60
C200HX/C200HG/C200HE Programmable Controllers Operation Manual, pages 514 to 523
Pages 514 to 523 of 586
The original document is the PDF (3.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Omron C200HE-CPU42-E
Page 514
Host Link Commands
Section 10-3
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 @ x 101 x 100
R
Node no.
Header code
P
FCS
↵
Terminator
Response Format @ x 101 x 100
Node no.
Limitations
P x 161 x 160
Header code
End code
R
1 byte
FCS
↵
Terminator
Program (for entire UM area)
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 second 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 RUN OK
PC Mode MONITOR OK
PROGRAM OK
UM Area Write-protected Read-protected OK ---
Execution Conditions Commands Single OK
End Codes
Responses Multiple ---
Multiple OK
An end code of 14 (format error) will be returned if the length of the command is incorrect. End code
496
Single OK
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
Page 515
Host Link Commands
Section 10-3
10-3-33 PROGRAM WRITE –– WP Writes to the PC user’s program area the machine language (object code) program transmitted from the host computer. The contents are written as a block, from the beginning. Command Format @ x 101 x 100
Node no.
W
P x 161 x 160
Header code
1 byte
FCS
↵
Terminator
Program (Up to maximum memory size)
Response Format @ x 101 x 100
Node no.
Limitations
P x 161 x 160
Header code
End code
W
FCS
↵
Terminator
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, 2, 3...
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 Settings RUN ---
PC Mode MONITOR ---
PROGRAM OK
UM Area Write-protected Read-protected --OK
Execution Conditions Commands Single OK
End Codes
Responses Multiple OK
Single OK
Multiple ---
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
Contents
00
Normal completion
01
Not executable in RUN mode
02
Not executable in MONITOR mode
13
FCS error
497
Page 516
Host Link Commands
Section 10-3 End code
Contents
14
Format error
15
Entry number data error
18
Frame length error
19
Not executable
23
User memory protected
A3
Aborted due to FCS error in transmit data
A4
Aborted due to format error in transmit data
A5
Aborted due to entry number data error in transmit data
A8
Aborted due to frame length error in transmit data
10-3-34 I/O TABLE GENERATE –– MI Corrects the registered I/O table to match the actual I/O table. Command Format @ x 101 x 100
Node no.
M
I
Header code
FCS
↵
Terminator
Response Format @ x 101 x 100
Node no.
I x 161 x 160
Header code
End code
M
FCS
↵
Terminator
PC Settings RUN ---
PC Mode MONITOR ---
PROGRAM OK
UM Area Write-protected Read-protected --OK
Execution Conditions Commands Single OK
End Codes
Responses Multiple ---
Single OK
Multiple ---
An end code of 14 (format error) will be returned if the length of the command is incorrect. End code
Contents
00
Normal completion
01
Not executable in RUN mode
02
Not executable in MONITOR mode
03
UM write-protected
13
FCS error
14
Format error
18
Frame length error
20
Couldn’t create I/O table
Note The write-protected error code for this command is different from the other commands.
498
Page 517
Host Link Commands
Section 10-3
10-3-35 COMPOUND COMMAND –– QQMR Registers at the PC all of the bits, words, and timers/counters that are to be read, and reads the status of all of them as a batch. The registered information is retained in the PC until it is overwritten by the COMPOUND COMMAND or the PC’s power is turned off. Command Format @ x 101 x 100
Node no.
Q
Q
Header code
R
M
OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100 OP1 OP2
Sub-header code
Read area
Read word address
Data format
, Data break
Single read information Total read information (128 max.)
OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100 OP1 OP2
, Data break
Read area
Read word address
Data format
FCS
↵
Terminator
Single read information Total read information (128 max.)
The “Read area” indicates the data area, the “Read word address” indicates the word address, and the “Data format” indicates the bit number (00 to 15) or entire word (CH). Operand
Data area/instruction IR or SR
OP1 C
OP2 I
LR
L
HR
H
AR TIMER HIGH-SPEED TIMER COUNTER REVERSIBLE COUNTER TOTALIZING TIMER
OP3
Constant or word address
O
OP4 (Space)
0000 to 0511
R
(Space)
(Space)
0000 to 0063
R
(Space)
(Space)
0000 to 0099
A
R
(Space)
(Space)
T T C C T
I I N N T
M M T T I
(Space) H (Space) R M
0000 to 0027 0000 to 0511
DM
D
M
(Space)
(Space)
0000 to 6655
EM (current bank)
E
M
(Space)
(Space)
0000 to 6143
EM (bank 0)
E
M
0
0
0000 to 6143
EM (bank 1)
E
M
0
1
0000 to 6143
EM (bank 2)
E
M
0
2
0000 to 6143
Each word or bit address is specified one item at a time separated by a break code (,). The maximum number of items that can be specified is 128 unless an address in the EM area is specified, in which case the maximum is 100. (When the PV of a timer/counter is specified, the status of the Completion Flag is also returned, and must therefore be counted as two items.) Response Format @ x 101 x 100
Node no.
Q
Q
Header code
M
R x 161 x 160
Sub-header End code code
FCS
↵
Terminator
499
Page 518
Host Link Commands Limitations
Section 10-3 The registered data is checked from the beginning and the data will be registered up to any errors. For example, if a command attempts to register 129 items, a frame length error (end code 18) will occur but the first 128 items will be registered. DM 6656 to DM 6999 do not exist, but an error will not occur if you try to register these words. Bits and words can be specified in any order and they will be registered in the order that they were specified. The data can be divided into multiple frames.
PC Settings PC Mode MONITOR OK
RUN OK
UM Area Write-protected Read-protected OK OK
PROGRAM OK
Execution Conditions Commands Single OK
End Codes
Responses Multiple OK
Single OK
Multiple ---
An end code of 14 (format error) will be returned if the length of the command is incorrect or the “,” data break between two items is omitted. An end code of 15 (entry number data error) will be returned if the “Read area,” “Read word address,” or “Data format” setting is incorrect. End code
Contents
00
Normal completion
13
FCS error
14
Format error
15
Entry number data error
18
Frame length error
19
Not executable
A3
Aborted due to FCS error in transmit data
A4
Aborted due to format error in transmit data
A5
Aborted due to entry number data error in transmit data
A8
Aborted due to frame length error in transmit data
10-3-36 COMPOUND COMMAND DATA READ –– QQIR The bit, word, and timer/counter status is read as a batch according to the read information that was registered with QQMR. Command Format
@ x 101 x 100
Node no.
500
Q
Q
Header code
I
R
Sub-header code
FCS
↵
Terminator
Page 519
Host Link Commands
Section 10-3
Response Format @ x 101 x 100
Node no.
Q
Q
Header code
I
R x 161 x 160 ON/ x 103 x 102 x 101 x 100 OFF
Sub-header End code code
,
ON/ OFF
Timer/Counter If PV is specified the status of the Completion Flag is also returned.
,
,
Data break x 163 x 162 x 161 x 160
Word data IR, SR, LR, HR, AR, DM
Bit data ON/OFF
Limitations
,
FCS
↵
Terminator
The data is read in the same order in which it was registered with QQMR. A response of “0000” will be returned for non-existent words such as DM 6656 to DM 6999, unallocated expansion DM, or non-existent EM banks. 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 RUN OK
PC Mode MONITOR OK
UM Area Write-protected Read-protected OK OK
PROGRAM OK
Execution Conditions Commands Single OK
End Codes
Responses Multiple ---
Single OK
Multiple OK
An end code of 14 (format error) will be returned if the length of the command is incorrect. An end code of 19 (not executable) will be returned if there is no registered data. End code
Contents
00
Normal completion
13
FCS error
14
Format error
18
Frame length error
19
Not executable
A3
Aborted due to FCS error in transmit data
A8
Aborted due to frame length error in transmit data
10-3-37 ABORT –– XZ Aborts the Host Link command that is currently being processed, allowing the next command to be received. The ABORT command does not receive a response. Command Format @ x 101 x 100
Node no.
X
Z
Header code
FCS
↵
Terminator
501
Page 520
Host Link Commands Limitations
Section 10-3 Multiple responses to a command can be cancelled with this command. This command is valid even without the FCS code and terminator.
PC Settings RUN OK
PC Mode MONITOR OK
PROGRAM OK
UM Area Write-protected Read-protected OK OK
Execution Conditions Commands Single OK
End Codes
Responses Multiple ---
Single ---
Multiple ---
There are no end codes with this command.
10-3-38 INITIALIZE –– Initializes the transmission control procedure of all the PCs connected to the host computer. The INITIALIZE command does not use node numbers or FCS, and does not receive a response. Command Format @
Limitations
↵
Multiple responses to a command can be cancelled with this command.
PC Settings RUN OK
PC Mode MONITOR OK
PROGRAM OK
UM Area Write-protected Read-protected OK OK
Execution Conditions Commands Single OK
End Codes
Responses Multiple ---
Single ---
Multiple ---
There are no end codes with this command.
10-3-39 TXD RESPONSE –– EX This is the response format used when the PC’s TXD(––) instruction is executed in Host Link mode. (TXD(––) converts the specified data into ASCII code and transmits it to the host computer with this format.) Response Format @ x 101 x 100
Node no.
Limitations
X
Data specified in TXD(––)
Header code
Characters (122 max.)
E
FCS
↵
Terminator
The frame can contain up to 122 characters. (TXD(––) doesn’t support multiple frames.) There is no command associated with EX.
PC Settings RUN OK
502
PC Mode MONITOR OK
PROGRAM ---
UM Area Write-protected Read-protected OK OK
Page 521
Host Link Commands
Section 10-3
Execution Conditions Commands Single
Multiple ---
--End Codes
Responses Single OK
Multiple ---
There are no end codes with this command.
10-3-40 Undefined Command –– IC This response is returned if the header code of a command cannot be decoded. Check the header code. Response Format @ x 101 x 100
Node no.
Limitations
I
C
Header code
FCS
↵
Terminator
This error response will be returned if there are fewer than 6 bytes of data between a command’s “@” character and the terminator, an incorrect header code is used, or a frame is corrupted. There is no command associated with IC.
PC Settings RUN OK
PC Mode MONITOR OK
PROGRAM OK
UM Area Write-protected Read-protected OK OK
Execution Conditions Commands Single
--End Codes
Responses Multiple ---
Single OK
Multiple ---
There are no end codes with this command.
503
Page 522
Page 523
Appendix A Standard Models CPU Rack Name CPU Units (All models are provided with clock function and slots for communications except CPU11-E.)
Specifications UM 3.2K words 7.2K words
DM 4K words 6K words
I/O points 640 880
15.2K words
12K words
880
100 to 120/200 to 240 VAC
--C200HE-CPU11-E C200HE-CPU32-E C200HE-CPU42-E C200HG-CPU33-E C200HG-CPU43-E C200HG-CPU53-E C200HG-CPU63-E C200HX-CPU34-E C200HX-CPU44-E C200HX-CPU54-E C200HX-CPU64-E C200HW-PA204
100 to 120/200 to 240 VAC (with 24-VDC output terminals)
C200HW-PA204S
24 VDC
C200HW-PD024
3 slots
C200HW-BC031
5 slots
C200HW-BC051
8 slots
C200HW-BC081
10 slots
C200HW-BC101
1,184 31.2K words
24K words
880 1,184
Power Supply Units
CPU I/O Backplanes
Communication Boards
Memory Cassettes
Model number RS-232C No No Yes No Yes No Yes No Yes No Yes
Communications port for SYSMAC LINK and SYSMAC NET C200HW-COM01 Link Units RS-232C port RS-422/485 port Communications port for the SYSMAC LINK Unit and SYSMAC NET Link Unit and a protocol macro function
C200HW-COM02 C200HW-COM03 C200HW-COM04-E
Two RS-232C ports and a protocol macro function RS-422/485 port, an RS-232C port, and a protocol macro function
C200HW-COM05-E C200HW-COM06-E
EEPROM
4K words 8K words 16K words
C200HW-ME04K C200HW-ME08K C200HW-ME16K (see note)
32K words 16K words/32K words Equivalent to 27256, 150 ns, 12.5 V Equivalent to 27512, 150 ns, 12.5 V
C200HW-ME32K C200HS-MP16K ROM-JD-B ROM-KD-B
EPROM
Note: The C200HW-ME16K will be released soon. The EEPROM Memory Cassette can be also used with the C200HS-ME16K.
505