Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 52 of 60

C200HX/C200HG/C200HE Programmable Controllers Operation Manual, pages 504 to 513

Pages 504 to 513 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 504

Host Link Commands

Section 10-3 “Status data” consists of four digits (two bytes) hexadecimal. The leftmost byte indicates CPU Unit operation mode, and the rightmost byte indicates the size of the program area.

x 163 Bit 15

14

13

0

0 x 162 12

11

10

9

8

Operation mode

Bit 1: Waiting for Remote I/O power application

9

8

0

0

PROGRAM mode

1: Forced Set/Reset in effect

1

0

RUN mode

1: Fatal error generated

1

1

MONITOR mode

This area is different from that of STATUS WRITE.

1: FALS generated x 161 Bit

7

6

5 x 160 4

3

1

2

1

0

0

0

0

Program area

Bit 6

5

4

0

0

0

None

0

1

0

8 Kbytes

1

0

0

16 Kbytes

1

0

1

24 Kbytes

1

1

0

32 Kbytes

Program area write enable 0: Disabled (DIP switch pin 1 is ON) 1: Enabled (DIP switch pin 1 is OFF)

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 ---

Multiple ---

An end code of 14 (format error) will be returned if the length of the command is incorrect. End code

486

Single OK

Contents

00

Normal completion

13

FCS error

14

Format error

18

Frame length error

Page 505

Host Link Commands

Section 10-3

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

487

Page 506

Host Link Commands

Section 10-3

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 (1st word)

Error information (2nd 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)

488

↵

Page 507

Host Link Commands

Section 10-3

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

Contents

00

Normal completion

13

FCS error

14

Format error

15

Entry number data error

18

Frame length error

10-3-26 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

489

Page 508

Host Link Commands

Section 10-3

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

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

10-3-27 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.

490

Page 509

Host Link Commands

Section 10-3 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

491

Page 510

Host Link Commands

Section 10-3

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 @

492 x 101 x 100

F

K x 161 x 160

Node no.

Header code

End code

FCS

↵

Terminator

Page 511

Host Link Commands Limitations

Section 10-3 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

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

10-3-29 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

493

Page 512

Host Link Commands

Section 10-3

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. End code

Contents

00

Normal completion

13

FCS error

14

Format error

18

Frame length error

10-3-30 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

494

PC Mode MONITOR OK

PROGRAM OK

UM Area Write-protected Read-protected OK OK

Page 513

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. End code

Contents

00

Normal completion

13

FCS error

14

Format error

18

Frame length error

10-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 (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

495