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

The text of a manual · part 57 of 68

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

Pages 512 to 521 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 512

Section 10-3

Host Link Commands

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

505

Page 513

Section 10-3

Host Link Commands

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.

506

Page 514

Section 10-3

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

507

Page 515

Section 10-3

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

10-3-10

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

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 )

508

FCS

↵

Terminator

Page 516

Section 10-3

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

10-3-11

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

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)

FCS

↵

Terminator

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

509

Page 517

Section 10-3

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

10-3-12

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

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

510

PC Mode MONITOR OK

PROGRAM OK

UM Area Write-protected Read-protected OK OK

Page 518

Section 10-3

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

10-3-13

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

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

511

Page 519

Section 10-3

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

10-3-14

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

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

512

Responses Multiple OK

Single OK

Multiple ---

Page 520

Section 10-3

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

10-3-15

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

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)

↵

Terminator

FCS

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.

513

Page 521

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

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

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 to 0F to specify bank number 0 to F. 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

514

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.