The text of a manual · part 51 of 60
C200HX/C200HG/C200HE Programmable Controllers Operation Manual, pages 494 to 503
Pages 494 to 503 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 494
Host Link Commands
Section 10-3 An end code of 15 (entry number data error) will be returned if the specified write data exceeds the data area boundary, the beginning word isn’t specified in BCD, or the write data isn’t hexadecimal. (An end code of A5 will be returned instead of 15 for non-hexadecimal write data in multiple command frames.) End code
Contents
00
Normal completion
01
Not executable in RUN mode
13
FCS error
14
Format error
15
Entry number data error
18
Frame length error
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-16 EM AREA WRITE –– WE Writes data to the specified EM area bank, starting from the specified word. Writing is done word by word. Command Format @ x 101 x 100 Node no.
W
E
Header code
Bank No. Bank no. (See note.)
x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160 Beginning word (0000 to 6143)
Write data (1 word)
↵
Terminator
FCS
Write data (for number of words to write)
Note Input 00, 01, or 02 to specify bank number 0, 1, or 2. Input two spaces to specify the current bank. Response Format @ x 101 x 100
Node no.
Limitations
E x 161 x 160
Header code
End code
W
FCS
↵
Terminator
Except for the first word of the write data, the write data can be divided into multiple frames. If a valid bank number is specified but the PC isn’t equipped with that EM bank, the command will be completed normally without writing any data.
PC Settings RUN ---
PC Mode MONITOR OK
PROGRAM OK
UM Area Write-protected Read-protected OK OK
Execution Conditions Commands Single OK
End Codes
476
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 first word of write data isn’t in the first frame.
Page 495
Host Link Commands
Section 10-3 An end code of 15 (entry number data error) will be returned if the specified write data exceeds the data area boundary, the beginning word isn’t specified in BCD, or the write data isn’t hexadecimal. (An end code of A5 will be returned instead of 15 for non-hexadecimal write data in multiple command frames.) End code
Contents
00
Normal completion
01
Not executable in RUN mode
13
FCS error
14
Format error
15
Entry number data error
18
Frame length error
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-17 SV READ 1 –– R# Searches for the first instance of a TIM, TIMH(15), CNT, CNTR(12), or TTIM(87) instruction with the specified TC number in the user’s program and reads the PV, which assumed to be set as a constant. The SV that is read is a 4-digit decimal number (BCD). Command Format @ x 101 x 100 Node no.
R
#
OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100
Header code
Mnemonic
TC number (0000 to 0511)
↵
Terminator
FCS
Use all four characters to specify the timer or counter instruction’s mnemonic. Add a space to the end of a TIM or CNT mnemonic to make it 4 characters long. Mnemonic
Instruction name OP1 TIMER HIGH-SPEED TIMER COUNTER REVERSIBLE COUNTER TOTALIZING TIMER
T T C C T
OP2 I I N N T
TC number range
OP3 M M T T I
OP4 (Space) 0000 to 0511 H (Space) R M
Response Format @
Limitations x 101 x 100
R
Node no.
Header code
# x 161 x 160 x 103 x 102 x 101 x 100
End code
SV
FCS
↵
Terminator
The second word of the instruction must be a BCD constant from 0000 to 0511. If the same instruction is used more than once in a program, the SV of the first one will be read. The command can’t be executed if the UM area is read-protected.
PC Settings RUN OK
PC Mode MONITOR OK
PROGRAM OK
UM Area Write-protected Read-protected OK ---
477
Page 496
Host Link Commands
Section 10-3
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. An end code of 15 (entry number data error) will be returned if an incorrect instruction mnemonic or TC number is used. An end code of 16 (command not supported) will be returned if the specified instruction doesn’t exist in the program. End code
Contents
00
Normal completion
13
FCS error
14
Format error
15
Entry number data error
16
Command not supported
18
Frame length error
23
User memory protected
10-3-18 SV READ 2 –– R$ Reads the constant SV or the word address where the SV is stored. The SV that is read is a 4-digit decimal number (BCD) written as the second operand for the TIM, TIMH(15), CNT, CNTR(12), or TTIM(87) instruction at the specified program address in the user’s program. Command Format @ x 101 x 100
Node no.
R
$ x 103 x 102 x 101 x 100 OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100
Header code
Program address (BCD)
Mnemonic
Timer/counter (0000 to 0511)
FCS
↵
Terminator
Use all four characters to specify the timer or counter instruction’s mnemonic. Add a space to the end of a TIM or CNT mnemonic to make it 4 characters long. Mnemonic
Instruction name OP1 TIMER HIGH-SPEED TIMER COUNTER REVERSIBLE COUNTER TOTALIZING TIMER
T T C C T
OP2 I I N N T
OP3 M M T T I
TC number range OP4 (Space) 0000 to 0511 H (Space) R M
Response Format @
478 x 101 x 100
R
Node no.
Header code
$ x 161 x 160 OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100
End code
Operand
SV
FCS
↵
Terminator
Page 497
Host Link Commands
Section 10-3 The “Operand” parameter indicates the data area where the SV is stored or a constant. The “SV” parameter indicates the word address or the SV itself if it is a constant. Operand OP1
Limitations
OP2
Classification
OP3
Constant or word address
C
I
O
OP4 (Space)
L
R
(Space)
(Space)
LR
0000 to 0063
H
R
(Space)
(Space)
HR
0000 to 0099
A
R
(Space)
(Space)
AR
0000 to 0027
D
M
(Space)
(Space)
DM
0000 to 6655
D
M
(Space)
DM (indirect)
0000 to 6655
C
O
N
(Space)
Constant
0000 to 9999
E
M
(Space)
(Space)
EM
0000 to 6143
E
M
(Space)
EM (indirect)
0000 to 6143
IR or SR
0000 to 0511
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.
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 ---
Single OK
Multiple ---
An end code of 04 (address over) will be returned if the program address is above the highest program address but less than 65,536 (32,767 in the C200HS). An end code of 14 (format error) will be returned if the length of the command is incorrect. An end code of 15 (entry number data error) will be returned if the program address isn’t specified in BCD or the operand/SV parameters are incorrect. An end code of 16 (command not supported) will be returned if the specified instruction doesn’t exist in the program. End code
Contents
00
Normal completion
04
Address over
13
FCS error
14
Format error
15
Entry number data error
16
Command not supported
18
Frame length error
23
User memory protected
479
Page 498
Host Link Commands
Section 10-3
10-3-19 SV READ 3 –– R% Reads the constant SV or the word address where the SV is stored. The SV that is read is a 4-digit decimal number (BCD) written in the second word of the TIM, TIMH(15), CNT, CNTR(12), or TTIM(87) instruction at the specified program address in the user’s program. Command Format @ x 101 x 100
R
Node no.
Header code
% x 105 x 104 x 103 x 102 x 101 x 100 OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100
Program address
Mnemonic
Timer/counter (0000 to 0511)
Must be “0”
FCS
↵
Terminator
Use all four characters to specify the timer or counter instruction’s mnemonic. Add a space to the end of a TIM or CNT mnemonic to make it 4 characters long. Mnemonic
Instruction name OP1 TIMER HIGH-SPEED TIMER COUNTER REVERSIBLE COUNTER TOTALIZING TIMER
T T C C T
OP2 I I N N T
OP3 M M T T I
TC number range OP4 (Space) 0000 to 0511 H (Space) R M
Response Format @ x 101 x 100
R
Node no.
Header code
% x 161 x 160 OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100
End code
Operand
SV
FCS
↵
Terminator
The “Operand” parameter indicates the data area where the SV is stored or a constant. The “SV” parameter indicates the word address or the SV itself if it is a constant. Operand OP1
Limitations
OP2
OP3
Classification
Constant or word address
C
I
O
OP4 (Space)
IR or SR
0000 to 0511
L
R
(Space)
(Space)
LR
0000 to 0063
H
R
(Space)
(Space)
HR
0000 to 0099
A
R
(Space)
(Space)
AR
0000 to 0027
D
M
(Space)
(Space)
DM
0000 to 6655
D
M
(Space)
DM (indirect)
0000 to 6655
C
O
N
(Space)
Constant
0000 to 9999
E
M
(Space)
(Space)
EM
0000 to 6143
E
M
(Space)
EM (indirect)
0000 to 6143
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. SR 253 through SR 255 can’t be specified.
480
Page 499
Host Link Commands
Section 10-3
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 ---
Single OK
Multiple ---
An end code of 04 (address over) will be returned if the program address is above the highest program address but less than 65,536 (32,768 in the C200HS). An end code of 14 (format error) will be returned if the length of the command is incorrect. An end code of 15 (entry number data error) will be returned if the program address exceeds the 65,535 maximum (32,767 in the C200HS), the program address isn’t specified in BCD, or the mnemonic/SV operands are incorrect. An end code of 16 (command not supported) will be returned if the specified instruction doesn’t exist in the program. End code
Contents
00
Normal completion
04
Address over
13
FCS error
14
Format error
15
Entry number data error
16
Command not supported
18
Frame length error
23
User memory protected
10-3-20 SV CHANGE 1 –– W# Searches for the first instance of the specified TIM, TIMH(15), CNT, CNTR(12), or TTIM(87) instruction in the user’s program and changes the SV to new constant SV specified in the second word of the instruction. Command Format @ x 101 x 100
W
Node no.
Header code
#
OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100 x 103 x 102 x 101 x 100
Mnemonic
Timer/counter (0000 to 0511)
SV (0000 to 9999)
FCS
↵
Terminator
Use all four characters to specify the timer or counter instruction’s mnemonic. Add a space to the end of a TIM or CNT mnemonic to make it 4 characters long. Mnemonic
Instruction name OP1 TIMER HIGH-SPEED TIMER COUNTER REVERSIBLE COUNTER TOTALIZING TIMER
T T C C T
OP2 I I N N T
OP3 M M T T I
TC number range OP4 (Space) 0000 to 0511 H (Space) R M
481
Page 500
Host Link Commands
Section 10-3
Response Format @
Limitations x 101 x 100
W
# x 161 x 160
Node no.
Header code
End code
FCS
↵
Terminator
The command can’t be executed unless the SV is BCD from 0000 to 9999. The command can’t be executed if the UM area is write-protected. If the same instruction is used more than once in a program, the SV of the first one will be changed.
PC Settings RUN ---
PC Mode MONITOR OK
UM Area Write-protected Read-protected --OK
PROGRAM 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. An end code of 15 (entry number data error) will be returned if the SV isn’t BCD or the mnemonic/TC number is incorrect. An end code of 16 (command not supported) will be returned if the specified instruction doesn’t exist in the program. End code
Contents
00
Normal completion
01
Not executable in RUN mode
13
FCS error
14
Format error
15
Entry number data error
16
Command not supported
18
Frame length error
23
User memory protected
10-3-21 SV CHANGE 2 –– W$ Changes the contents of the second word of the TIM, TIMH(15), CNT, CNTR(12), or TTIM(87) at the specified program address in the user’s program. This can only be done with a program of less than 10K. Command Format @
482 x 101 x 100
W
Node no.
Header code
$ x 103 x 102 x 101 x 100 OP1 OP2 OP3 OP4
Program address x 103 x 102 x 101 x 100
Mnemonic
Timer/counter (0000 to 0511)
OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100
Operand
SV
FCS
↵
Terminator
Page 501
Host Link Commands
Section 10-3 Use all four characters to specify the timer or counter instruction’s mnemonic. Add a space to the end of a TIM or CNT mnemonic to make it 4 characters long. Mnemonic
Instruction name OP1 TIMER HIGH-SPEED TIMER COUNTER REVERSIBLE COUNTER TOTALIZING TIMER
T T C C T
OP2
TC number range
OP3 M M T T I
I I N N T
OP4 (Space) 0000 to 0511 H (Space) R M
The “Operand” parameter indicates the data area where the SV is stored or a constant. The “SV” parameter indicates the word address or the SV itself if it is a constant. Operand OP1
OP2
Classification
OP3
Constant or word address
C
I
O
OP4 (Space)
IR or SR
0000 to 0511
L
R
(Space)
(Space)
LR
0000 to 0063
H
R
(Space)
(Space)
HR
0000 to 0099
A
R
(Space)
(Space)
AR
0000 to 0027
D
M
(Space)
(Space)
DM
0000 to 6655
D
M
(Space)
DM (indirect)
0000 to 6655
C
O
N
(Space)
Constant
0000 to 9999
E
M
(Space)
(Space)
EM
0000 to 6143
E
M
(Space)
EM (indirect)
0000 to 6143
Response Format @
Limitations x 101 x 100
W
$ x 161 x 160
Node no.
Header code
End code
FCS
↵
Terminator
The command is valid only when the UM setting is ladder only. SR 253 through SR 255 can’t be specified. The command can’t be executed if the UM area is write-protected.
PC Settings RUN ---
PC Mode MONITOR OK
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. An end code of 15 (entry number data error) will be returned if the program address isn’t BCD, the program address exceeds the maximum address in the program, the mnemonic/TC number is incorrect, or the SV is incorrect. An end code of 16 (command not supported) will be returned if the specified instruction doesn’t exist in the program. End code
Contents
00
Normal completion
01
Not executable in RUN mode
483
Page 502
Host Link Commands
Section 10-3 End code
Contents
04
Address over
13
FCS error
14
Format error
15
Entry number data error
16
Command not supported
18
Frame length error
23
User memory protected
10-3-22 SV CHANGE 3 –– W% Changes the contents of the second word of the TIM, TIMH(15), CNT, CNTR(12), or TTIM(87) at the specified program address in the user’s program. Command Format
@ x 101 x 100
Node no.
W
% x 105 x 104 x 103 x 102 x 101 x 100 OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100
Header code
Mnemonic
Program address
Timer/counter (0000 to 0511)
Must be “0” OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100
Operand
SV
FCS
↵
Terminator
Use all four characters to specify the timer or counter instruction’s mnemonic. Add a space to the end of a TIM or CNT mnemonic to make it 4 characters long. Mnemonic
Instruction name OP1 TIMER HIGH-SPEED TIMER COUNTER REVERSIBLE COUNTER TOTALIZING TIMER
T T C C T
OP2 I I N N T
OP3 M M T T I
TC number range OP4 (Space) 0000 to 0511 H (Space) R M
The “Operand” parameter indicates the data area where the SV is stored or a constant. The “SV” parameter indicates the word address or the SV itself if it is a constant. Operand OP1
484
OP2
OP3
Classification
Constant or word address
C
I
O
OP4 (Space)
IR or SR
0000 to 0511
L
R
(Space)
(Space)
LR
0000 to 0063
H
R
(Space)
(Space)
HR
0000 to 0099
A
R
(Space)
(Space)
AR
0000 to 0027
D
M
(Space)
(Space)
DM
0000 to 6655
D
M
(Space)
DM (indirect)
0000 to 6655
C
O
N
(Space)
Constant
0000 to 9999
E
M
(Space)
(Space)
EM
0000 to 6143
E
M
(Space)
EM (indirect)
0000 to 6143
Page 503
Host Link Commands
Section 10-3
Response Format @
Limitations x 101 x 100
W
% x 161 x 160
Node no.
Header code
End code
FCS
↵
Terminator
The command is valid only when the UM setting is ladder only. SR 253 through SR 255 can’t be specified. The command can’t be executed if the UM area is write-protected.
PC Settings RUN ---
PC Mode MONITOR OK
UM Area Write-protected Read-protected --OK
PROGRAM 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. An end code of 15 (entry number data error) will be returned if the program address isn’t BCD, the program address exceeds the maximum address in the program, the mnemonic/TC number is incorrect, or the SV is incorrect. An end code of 16 (command not supported) will be returned if the specified instruction doesn’t exist in the program. End code
Contents
00
Normal completion
01
Not executable in RUN mode
04
Address over
13
FCS error
14
Format error
15
Entry number data error
16
Command not supported
18
Frame length error
23
User memory protected
10-3-23 STATUS READ –– MS Reads the PC operating conditions. Command Format @ x 101 x 100
Node no.
M
S
Header code
FCS
↵
Terminator
Response Format @ x 101 x 100
Node no.
M
S
Header code x 161 x 160 x 163 x 162 x 161 x 160 16 characters
End code
Status data
Message
FCS
↵
Terminator
485