The text of a manual · part 60 of 68
Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual: SECTION 10 Host Link Commands, pages 542 to 548
Pages 542 to 548 of 613, from Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual
The original document is the PDF (3.8 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.
Filed in the catalog under the Omron C200H-SP001 and Omron C200HW-PA204
Page 542
Section 10-3
Host Link Commands
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
535
Page 543
Section 10-3
Host Link Commands End code
10-3-34
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
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.
536
Page 544
Section 10-3
Host Link Commands
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
537
Page 545
Section 10-3
Host Link Commands Limitations
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
10-3-36
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
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.
538
Q
Q
Header code
I
R
Sub-header code
FCS
↵
Terminator
Page 546
Section 10-3
Host Link Commands 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
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
10-3-37
Multiple OK
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
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
539
Page 547
Section 10-3
Host Link Commands Limitations
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
10-3-38
Responses Multiple ---
Single ---
Multiple ---
There are no end codes with this command.
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
10-3-39
Responses Multiple ---
Single ---
Multiple ---
There are no end codes with this command.
TXD RESPONSE –– EX This is the response format used when the PC’s TXD(236) instruction is executed in Host Link mode. (TXD(236) 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
E
X
Header code
Data specified in TXD(236)
Characters (122 max.)
FCS
↵
Terminator
The frame can contain up to 122 characters. (TXD(236) doesn’t support multiple frames.) There is no command associated with EX.
PC Settings RUN OK
540
PC Mode MONITOR OK
PROGRAM ---
UM Area Write-protected Read-protected OK OK
Page 548
Section 10-3
Host Link Commands Execution Conditions Commands Single
Multiple ---
--End Codes
10-3-40
Responses Single OK
Multiple ---
There are no end codes with this command.
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.
541