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

The text of a manual · part 50 of 60

C200HX/C200HG/C200HE Programmable Controllers Operation Manual, pages 484 to 493

Pages 484 to 493 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 484

Host Link Commands

Section 10-3

10-3-5 TC STATUS READ –– RG Reads the status of the Completion Flags of the specified number of timers/ counters, starting from the specified timer/counter. A “1” indicates that the Completion Flag is ON. Command Format @ x 101 x 100

Node no.

R

G

Header code x 103 x 102 x 101 x 100 x 103 x 102 x 101 x 100

Beginning timer/counter (0000 to 0511)

No. of timers/counters (0001 to 0512)

FCS

↵

Terminator

Response Format @ x 101 x 100 Node no.

R

G

Header code x 161 x 160 ON/ OFF

End code

FCS

↵

Terminator

Read data (1 timer/counter) Read data (for number of TC read)

Limitations

The text portion of the response’s first frame can contain up to 121 words. If more than 121 words are read, the data will be returned in multiple frames. In the second and later frames, the text portion of the response can contain up to 124 words. 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 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 and an end code of 15 (entry number data error) will be returned if the specified words exceed the data area boundaries or aren’t specified in BCD. End code

466

Single OK

Contents

00

Normal completion

13

FCS error

14

Format error

15

Entry number data error

18

Frame length error

A3

Aborted due to FCS error in transmit data

A8

Aborted due to frame length error in transmit data

Page 485

Host Link Commands

Section 10-3

10-3-6 DM AREA READ –– RD Reads the contents of the specified number of DM words, starting from the specified word. Command Format @ x 101 x 100

R

Node no.

Header code

D x 103 x 102 x 101 x 100 x 103 x 102 x 101 x 100

Beginning word (0000 to 9999)

No. of words (0001 to 10000) (see note)

FCS

↵

Terminator

Note To specify 10,000 words, input 0000 for the number of words to be read. Response Format @ x 101 x 100

Node no.

Limitations

R

D

Header code x 161 x 160 x 163 x 162 x 161 x 160

End code

Read data (1 word)

FCS

↵

Terminator

Read data (for number of words read)

The text portion of the response’s first frame can contain up to 30 words. If more than 30 words are read, the data will be returned in multiple frames. In the second and later frames, the text portion of the response can contain up to 31 words. DM 6656 to DM 6999 do not exist, but an error will not occur if you try to read these words. Instead, “0000” will be returned as a response. Likewise, “0000” will be returned for extension DM words (DM 7000 to DM 9999) if extension DM hasn’t been allocated in the UM area. 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 OK

Execution Conditions Commands Single OK

End Codes

Responses Multiple ---

Single OK

Multiple OK

An end code of 14 (format error) will be returned if the length of the command is incorrect and an end code of 15 (entry number data error) will be returned if the specified words exceed the data area boundaries or aren’t specified in BCD. End code

Contents

00

Normal completion

13

FCS error

14

Format error

15

Entry number data error

18

Frame length error

A3

Aborted due to FCS error in transmit data

A8

Aborted due to frame length error in transmit data

467

Page 486

Host Link Commands

Section 10-3

10-3-7 AR AREA READ –– RJ Reads the contents of the specified number of AR words, starting from the specified word. Command Format @ x 101 x 100

Node no.

R

J x 103 x 102 x 101 x 100 x 103 x 102 x 101 x 100

Header code

Beginning word (0000 to 0027)

No. of words (0001 to 0028)

FCS

↵

Terminator

Response Format @ x 101 x 100

R

Node no.

Header code

Limitations

J x 161 x 160 x 163 x 162 x 161 x 160

End code

Read data (1 word )

FCS

↵

Terminator

Read data (for number of words read)

The text portion of the response’s first frame can contain up to 30 words.

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 and an end code of 15 (entry number data error) will be returned if the specified words exceed the data area boundaries or aren’t specified in BCD. End code

Contents

00

Normal completion

13

FCS error

14

Format error

15

Entry number data error

18

Frame length error

10-3-8 EM AREA READ –– RE Reads the contents of the specified number of EM words, starting from the specified word in the specified EM bank. Command Format @ x 101 x 100

R

Node no.

Header code

E

Bank No. Bank no. (See note.)

x 103 x 102 x 101 x 100 x 103 x 102 x 101 x 100

Beginning word (0000 to 6143)

No. of words (0001 to 6144)

FCS

↵

Terminator

Note Input 00, 01, or 02 to specify bank number 0, 1, or 2. Input two spaces to specify the current bank.

468

Page 487

Host Link Commands

Section 10-3

Response Format @ x 101 x 100

Node no.

R x 161 x 160 x 163 x 162 x 161 x 160

E

Header code

Limitations

End code

Read data (1 word)

FCS

↵

Terminator

Read data (for number of words read)

The text portion of the response’s first frame can contain up to 30 words. If more than 30 words are read, the data will be returned in multiple frames. In the second and later frames, the text portion of the response can contain up to 31 words. If a valid bank number is specified but the PC isn’t equipped with that EM bank, “0000” will be returned as the read data. This command can’t be used to change the current bank number. 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 OK

Execution Conditions Commands Single OK

End Codes

Responses Multiple ---

Single OK

Multiple OK

An end code of 14 (format error) will be returned if the length of the command is incorrect and an end code of 15 (entry number data error) will be returned if the specified words exceed the data area boundaries, the specified words aren’t specified in BCD, or an invalid bank number is specified. End code

Contents

00

Normal completion

13

FCS error

14

Format error

15

Entry number data error

18

Frame length error

A3

Aborted due to FCS error in transmit data

A8

Aborted due to frame length error in transmit data

10-3-9 IR/SR AREA WRITE –– WR Writes data to the IR and SR areas, starting from the specified word. Writing is done word by word. Command Format @ x 101 x 100

W

Node no.

Header code

R x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160

Beginning word (0000 to 0511)

Write data (1 word)

FCS

↵

Terminator

Write data (for number of words to write)

469

Page 488

Host Link Commands

Section 10-3

Response Format x 101 x 100

@

Node no.

Limitations

R x 161 x 160

Header code

End code

W

FCS

↵

Terminator

Data cannot be written to words 253 to 255. If there is an attempt to write to these words, no error will result, but nothing will be written to these words. Except for the first word of the write data, the write data can be divided into multiple frames.

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 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. An end code of 15 (entry number data error) will be returned if the specified write data exceeds the data area boundaries, 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-10 LR AREA WRITE –– WL Writes data to the LR area, starting from the specified word. Writing is done word by word. Command Format @ x 101 x 100

W

Node no.

Header code

L x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160

Beginning word (0000 to 0063)

Write data (1 word) Write data (for number of words to write )

470

FCS

↵

Terminator

Page 489

Host Link Commands

Section 10-3

Response Format @

Limitations x 101 x 100

W

L x 161 x 160

Node no.

Header code

End code

FCS

↵

Terminator

Except for the first word of the write data, the write data can be divided into multiple frames.

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 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. 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-11 HR AREA WRITE –– WH Writes data to the HR area, starting from the specified word. Writing is done word by word. Command Format @ x 101 x 100

Node no.

W

H

Header code x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160

Beginning word (0000 to 0099)

Write data (1 word)

↵

Terminator

FCS

Write data (for no. of words to write)

Response Format @ x 101 x 100

Node no.

H x 161 x 160

Header code

End code

W

FCS

↵

Terminator

471

Page 490

Host Link Commands

Section 10-3

Limitations

Except for the first word of the write data, the write data can be divided into multiple frames.

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 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. 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-12 PV WRITE –– WC Writes the PVs (present values) of timers/counters starting from the specified timer/counter. Command Format @ x 101 x 100

W

Node no.

Header code

C x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160

Beginning timer/counter (0000 to 0511)

Write data (1 timer/counter)

↵

Terminator

FCS

Write data (for no. of PV to write)

Response Format @ x 101 x 100

Node no.

Limitations

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

PC Settings RUN ---

472

PC Mode MONITOR OK

PROGRAM OK

UM Area Write-protected Read-protected OK OK

Page 491

Host Link Commands

Section 10-3

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 first word of write data isn’t in the first frame. 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.) With Host Link Units, an end code of 15 (entry number data error) will be returned if the write data isn’t BCD. 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-13 TC STATUS WRITE –– WG Writes the status of the Completion Flags for timers and counters in the TC area, starting from the specified timer/counter (number). Writing is done number by number. When a Completion Flag is ON, it indicates that the time or count is up. Command Format @ x 101 x 100

Node no.

W

G

Header code x 103 x 102 x 101 x 100 ON/ OFF Beginning timer/counter (0000 to 0511)

↵

Terminator

FCS Write data (1 timer/counter) Write data (for number of TC to write)

Response Format @ x 101 x 100

W

G x 161 x 160

Node no.

Header code

End code

FCS

↵

Terminator

PC Settings RUN ---

PC Mode MONITOR OK

PROGRAM OK

UM Area Write-protected Read-protected OK OK

Execution Conditions Commands Single OK

Responses Multiple OK

Single OK

Multiple ---

473

Page 492

Host Link Commands

Section 10-3

End Codes

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. An end code of 15 (entry number data error) will be returned if the digits of write data aren’t 0 or 1, 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-14 DM AREA WRITE –– WD Writes data to the DM area, starting from the specified word. Writing is done word by word. Command Format @ x 101 x 100

W

Node no.

D

Header code x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160 Beginning word (0000 to 9999)

Write data (1 word)

↵

Terminator

FCS

Write data (for number of words to write)

Response Format @ x 101 x 100

Node no.

Limitations

D 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. DM 6656 to DM 6999 do not exist, but an error won’t occur if the command attempts to write to these words. Likewise, an error won’t occur if the command attempts to write to extension DM words (DM 7000 to DM 9999) which haven’t been allocated in the UM area.

PC Settings RUN ---

PC Mode MONITOR OK

PROGRAM OK

UM Area Write-protected Read-protected --OK

Execution Conditions Commands Single OK

474

Responses Multiple OK

Single OK

Multiple ---

Page 493

Host Link Commands

Section 10-3

End Codes

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

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

10-3-15 AR AREA WRITE –– WJ Writes data to the AR area, starting from the specified word. Writing is done word by word. Command Format @ x 101 x 100

W

Node no.

J

Header code x 103 x 102 x 101 x 100 x 163 x 162 x 161 x 160

Beginning word (0000 to 0027)

Write data (1 word)

FCS

↵

Terminator

Write data (for the number of words to write)

Response Format @ x 101 x 100 Node no.

Limitations

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

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

475