The text of a manual · part 59 of 68
Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual: SECTION 10 Host Link Commands, pages 532 to 541
Pages 532 to 541 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 532
Section 10-3
Host Link Commands
10-3-24
STATUS WRITE –– SC Changes the PC operating mode.
Command Format x 101 x 100
@
C x 161 x 160
Header code
Mode data x 101 x 100
S
C x 161 x 160
Node no.
Header code
End code
S
Node no.
FCS
↵
Terminator
Response Format @
FCS
↵
Terminator
“Mode data” consists of two digits (one byte) hexadecimal. With the leftmost two bits, specify the PC operating mode. Set all of the remaining bits to “0.” x 161 x 160
Bit 7
6
5
4
3
2
0
0
0
0
0
0
1
0
Bit
Operation mode
1
0
0
0
PROGRAM mode
1
0
MONITOR mode
1
1
RUN mode
This area is different from that of STATUS READ.
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 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
13
FCS error
14
Format error
15
Entry number data error
18
Frame length error
19
Not executable
525
Page 533
Section 10-3
Host Link Commands
10-3-25
ERROR READ –– MF Reads and clears errors in the PC. Also checks whether previous errors have been cleared.
Command Format @ x 101 x 100
M
F x 101 x 100
Node no.
Header code
Error clear
FCS
↵
Terminator
For the “error clear” parameter, specify 01 to clear errors and 00 to not clear errors (BCD). Fatal errors can be cleared only when the PC is in PROGRAM mode. Response Format @ x 101 x 100
M
Node no.
Header code
F x 161 x 160 x 163 x 162 x 161 x 160 x 163 x 162 x 161 x 160
End code
Error information (2nd word)
Error information (1st word)
FCS
Terminator
1st word x 163 Bit 15
14
13 x 162 12
11
10
0
9 x 161 8
7
6
5 x 160 4
3
2
1
0
0 (Data from I/O bus) 0 1: Group 2 (data bus failure) 0 0 0 0
0 0 1 1
0: CPU Rack 1: Expansion I/O Rack 1 0: Expansion I/O Rack 2 1: Expansion I/O Rack 3
ON: Battery error (Error code F7) ON: Special I/O Unit error ON: System error (FAL) ON: Memory error (Error code F1) ON: I/O bus error (Error code C0) ON: PC link error ON: Host Link Unit transmission error ON: No end instruction error (FALS) ON: System error (FALS)
2nd word x 163 Bit 15
14
13 x 162 12
11 x 161
10
9
8
0
0
0
7
6
5 x 160 4
3
2
1
0
FAL, FALS No. (B CD00 to 99) ON: I/O verify error (Error code F7) ON: Cycle time overrun (Error code F8) ON: I/O Unit overflow (Error code E1) ON: I/O setting error (Error code E0) ON: Remote I/O error (Error codes B0 to B3)
526
↵
Page 534
Section 10-3
Host Link Commands Limitations
When errors are being cleared (error clear = 01), the errors are read after the error clear function is executed.
PC Settings PC Mode MONITOR OK
RUN OK
PROGRAM OK
UM Area Write-protected Read-protected OK 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 error clear parameter isn’t set to 00 or 01. End code
10-3-26
Contents
00
Normal completion
13
FCS error
14
Format error
15
Entry number data error
18
Frame length error
FORCED SET –– KS Force sets an IR, SR, LR, HR, or AR bit or the Completion Flag of a timer or counter. Once a bit has been forced set or reset, that status will be retained until FORCED SET/RESET CANCEL (KC) is transmitted.
Command Format @ x 101 x 100
K
Node no.
Header code
S
OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100 x 101 x 100
Operand
Word address
Bit
FCS
↵
Terminator
For data areas IR, SR, LR, HR, and AR, the “Operand” parameter indicates the data area where the bit will be force-set and the “Word address” parameter indicates the word address. For the TC area, “Operand” parameter indicates the mnemonic of the timer or counter instruction and the “Word address” parameter indicates the TC number. Data area/ instruction
Operand OP4 (Space) (Space) (Space) (Space) (Space) H (Space) R M
Word address
Bit
0000 to 0511 0000 to 0063 0000 to 0099 0000 to 0027 0000 to 0511
00 to 15
IR or SR LR HR AR TIMER HIGH-SPEED TIMER COUNTER REVERS. COUNTER TOTALIZING TIMER
OP1 C L H A T T C C T
OP2 I R R R I I N N T
OP3 O (Space) (Space) (Space) M M T T I
TRANSITION FLAGS
T
N
(Space) (Space) 0000 to 1023
Always 00
527
Page 535
Section 10-3
Host Link Commands Response Format
@
Limitations x 101 x 100
K
S x 161 x 160
Node no.
Header code
End code
FCS
↵
Terminator
Bits in SR 253 through SR 255 can’t be specified.
PC Settings PC Mode MONITOR OK
RUN ---
PROGRAM OK
UM Area Write-protected Read-protected OK 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 operand, word address, or bit parameter setting is incorrect. End code
10-3-27
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
FORCED RESET –– KR Force resets an IR, SR, LR, HR, or AR bit or the Completion Flag of a timer or counter. Once a bit has been forced set or reset, that status will be retained until FORCED SET/RESET CANCEL (KC) is transmitted.
Command Format
@ x 101 x 100
Node no.
K
R
Header code
OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100 x 101 x 100
Operand
Word address
Bit
FCS
↵
Terminator
For data areas IR, SR, LR, HR, and AR, the “Operand” parameter indicates the data area where the bit will be force-set and the “Word address” parameter indicates the word address.
528
Page 536
Section 10-3
Host Link Commands
For the TC area, “Operand” parameter indicates the mnemonic of the timer or counter instruction and the “Word address” parameter indicates the TC number. Operand
Data area/ instruction
OP4 (Space) (Space) (Space) (Space) (Space) H (Space) R M
Word address
Bit
0000 to 0511 0000 to 0063 0000 to 0099 0000 to 0027 0000 to 0511
00 to 15
IR or SR LR HR AR TIMER HIGH-SPEED TIMER COUNTER REVERS. COUNTER TOTALIZING TIMER
OP1 C L H A T T C C T
OP2 I R R R I I N N T
OP3 O (Space) (Space) (Space) M M T T I
TRANSITION FLAGS
T
N
(Space) (Space) 0000 to 1023
Always 00
Response Format
@ x 101 x 100
Node no.
Limitations
R x 161 x 160
Header code
End code
K
FCS
↵
Terminator
Bits in SR 253 through SR 255 can’t be specified.
PC Settings RUN ---
PC Mode MONITOR OK
PROGRAM OK
UM Area Write-protected Read-protected OK 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 operand, word address, or bit parameter setting is incorrect. 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
529
Page 537
Section 10-3
Host Link Commands
10-3-28
MULTIPLE FORCED SET/RESET –– FK Force sets, force resets, or cancels the forced status of the bits in one word in the IR, SR, LR, HR, or AR, or a timer/counter Completion Flag.
Command Format @ x 101 x 100
F
Node no.
Header code
K
OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100
Operand
Word address
Forced set/reset/cancel data FCS Bit
15
14
13
12
11
10
1
↵
Terminator
0
For data areas IR, SR, LR, HR, and AR, the “Operand” parameter indicates the data area where the bit will be force-set and the “Word address” parameter indicates the word address. For the TC area, “Operand” parameter indicates the mnemonic of the timer or counter instruction and the “Word address” parameter indicates the TC number. Operand
Data area/ instruction
OP4 (Space) (Space) (Space) (Space) (Space) H (Space) R M
Word address
Bit
0000 to 0511 0000 to 0063 0000 to 0099 0000 to 0027 0000 to 0511
00 to 15
IR or SR LR HR AR TIMER HIGH-SPEED TIMER COUNTER REVERS. COUNTER TOTALIZING TIMER
OP1 C L H A T T C C T
OP2 I R R R I I N N T
OP3 O (Space) (Space) (Space) M M T T I
TRANSITION FLAGS
T
N
(Space) (Space) 0000 to 1023
Always 00
The 16 bytes of forced set/reset/cancel data specifies what operation will be performed on the specified data area word or Completion Flag. If a timer or counter is specified, the status of the Completion Flag is force-set or force-reset using the setting for bit 15, and the settings for bits 00 through 14 will be ignored. Only force-setting and force-resetting are possible for timers/counters. Forced set/reset/cancel data
Operation
0000
Bit status not changed
0010
Reset to 0.
0011
Set to 1.
0100
Forced-reset
0101
Forced-set
1000
Cancel forced set/reset status
Response Format @
530 x 101 x 100
F
K x 161 x 160
Node no.
Header code
End code
FCS
↵
Terminator
Page 538
Section 10-3
Host Link Commands Limitations
Bits in SR 253 through SR 255 can’t be specified. Only 15 timers/counters or 15 Transition Flags can be set/reset. The UM settings are not checked when Transition Flags are specified, i.e., as long as the Transition Flag address does not exceed 1023, the command will be executed normally even if the specified Flag does not actually exist in the remote PC.
PC Settings PC Mode MONITOR OK
RUN ---
UM Area Write-protected Read-protected OK 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. (The forced set/reset/cancel data is 16 bytes long.) Note With Host Link Units, an error code of 14 (format error) won’t be returned if data is specified for bit 15 for a timer/counter or Transition Flag. (The forced set/reset/ cancel data can be one byte long or 16 bytes long.) An end code of 15 (entry number data error) will be returned if the operand, word address, or bit parameter setting is incorrect. An end code of 15 will also be returned if the a data specification of 0 or 1 is used for a timer or counter Completion Flag or for a Transition Flag. An error code of 15 (entry number data error) will be returned if [$C, $D] is specified for the forced data when set to TC. End code
10-3-29
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
FORCED SET/RESET CANCEL –– KC Cancels all forced set and forced reset bits (including those set by FORCED SET, FORCED RESET, and MULTIPLE FORCED SET/RESET). If multiple bits are set, the forced status will be cancelled for all of them.
Command Format @ x 101 x 100
Node no.
K
C
Header code
FCS
↵
Terminator
Response Format @ x 101 x 100
Node no.
C x 161 x 160
Header code
End code
K
FCS
↵
Terminator
531
Page 539
Section 10-3
Host Link Commands 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 ---
Single OK
An end code of 14 (format error) will be returned if the length of the command is incorrect. End code
10-3-30
Multiple ---
Contents
00
Normal completion
13
FCS error
14
Format error
18
Frame length error
PC MODEL READ –– MM Reads the model type of the PC. The codes returned for this command are different from the NT Link codes.
Command Format @ x 101 x 100
M
Node no.
M
Header code
FCS
↵
Terminator
Response Format @ x 101 x 100
M
Node no.
Header code
M x 161 x 160 x 161 x 160
End code
Model code
FCS
↵
Terminator
“Model code” indicates the PC model in two digits hexadecimal. Model code
Model
01
C250
02
C500
03
C120
0E
C2000
10
C1000H
11
C2000H/CQM1
12
C20H/C28H/C40H, C200H, C200HS, C200HX/HG/HE
20
CV500
21
CV1000
22
CV2000
40
CVM1-CPU01-E
41
CVM1-CPU11-E
42
CVM1-CPU21-E
PC Settings RUN OK
532
PC Mode MONITOR OK
PROGRAM OK
UM Area Write-protected Read-protected OK OK
Page 540
Section 10-3
Host Link Commands 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. End code
10-3-31
Multiple ---
Contents
00
Normal completion
13
FCS error
14
Format error
18
Frame length error
TEST–– TS Returns, unaltered, one block of data transmitted from the host computer.
Command Format
Specify any characters other than the carriage return (CHR$(13)).
@ x 101 x 100
Node no.
Response Format
T
122 characters max.
S
Header code
Characters
FCS
↵
Terminator
The same characters specified in the command will be returned unaltered if the test is successful.
@ x 101 x 100
Node no.
T
122 characters max.
S
Header code
Characters
FCS
↵
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 OK
Multiple ---
An end code of 14 (format error) will be returned if a terminator isn’t received in the first frame. End code
Contents
13
FCS error
14
Format error
18
Frame length error
533
Page 541
Section 10-3
Host Link Commands
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
534
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