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

The text of a manual · part 58 of 68

Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual: SECTION 10 Host Link Commands, pages 522 to 531

Pages 522 to 531 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 522

Section 10-3

Host Link Commands

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

10-3-17

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

SV READ 1 –– R# Searches for the first instance of a TIM, TIMH(015), CNT, CNTR(012), or TTIM(087) 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 ---

515

Page 523

Section 10-3

Host Link Commands 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

10-3-18

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

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(015), CNT, CNTR(012), or TTIM(087) 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 @

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

Section 10-3

Host Link Commands

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

517

Page 525

Section 10-3

Host Link Commands

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(015), CNT, CNTR(012), or TTIM(087) 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.

518

Page 526

Section 10-3

Host Link Commands 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

10-3-20

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

SV CHANGE 1 –– W# Searches for the first instance of the specified TIM, TIMH(015), CNT, CNTR(012), or TTIM(087) 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

519

Page 527

Section 10-3

Host Link Commands 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

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

10-3-21

Multiple ---

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

SV CHANGE 2 –– W$ Changes the contents of the second word of the TIM, TIMH(015), CNT, CNTR(012), or TTIM(087) at the specified program address in the user’s program. This can only be done with a program of less than 10K.

Command Format @

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

Section 10-3

Host Link Commands

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

521

Page 529

Section 10-3

Host Link Commands End code

10-3-22

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

SV CHANGE 3 –– W% Changes the contents of the second word of the TIM, TIMH(015), CNT, CNTR(012), or TTIM(087) 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

522

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 530

Section 10-3

Host Link Commands 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

10-3-23

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

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

523

Page 531

Section 10-3

Host Link Commands

“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

524

Single OK

Contents

00

Normal completion

13

FCS error

14

Format error

18

Frame length error