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

The text of a manual · part 43 of 60

SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual: SECTION 6 Host Link Commands, pages 391 to 397

Pages 391 to 397 of 520, from SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual

The original document is the PDF (2.1 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 CQM1-CPU21

Page 391

Section

Host Link Commands Parameters

6-3

Name, Word address, Bit (Command) In “Name,” specify the area (i.e., IR, SR, LR, HR, AR, or TC) that is to be forced reset. Specify the name in four characters. In “Word address,” specify the address of the word, and in “Bit” the number of the bit that is to be forced reset.

Name

Word address setting range

Classification

OP1

OP2

OP3

OP4

CQM1 PCs

C

I

O

(Space) IR or SR

0000 to 0252

L H A T T C C

R R R I I N N

(Space) (Space) (Space) M M T T

(Space) (Space) (Space) (Space) H (Space) R

0000 to 0063 0000 to 0099 0000 to 0027 0000 to 0511

LR HR AR Completion Flag (timer) Completion Flag (high-speed timer) Completion Flag (counter) Completion Flag (reversible counter)

Bit

CPM1/CPM1A/ SRM1 PCs 0000 to 0019 0200 to 0252 0000 to 0015 0000 to 0019 0000 to 0015 0000 to 0127

00 to 15 (decimal)

Always 00

Note The area specified under “Name” must be in four characters. Add spaces after the data area name if it is shorter than four characters.

6-3-26 MULTIPLE FORCED SET/RESET –– FK Force sets, force resets, or cancels the status of the bits in one word in the IR, SR, LR, HR, AR, or TC area. Command Format

@ x 101 x 100

F

Node no.

Header code

K

OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100

Name

Word address

Forced set/reset/cancel data x 160 x 160 x 160 x 160 x 160 x 160 x 160 x 160 FCS

Bit

Response Format

15

14

12

11

10

1

Terminator

0

An end code of 00 indicates normal completion.

@

Parameters

13

↵ x 101 x 100

F

K x 161 x 160

Node no.

Header code

End code

FCS

↵

Terminator

Name, Word address (Command) In “Name,” specify the area (i.e., IR, SR, LR, HR, AR, or TC) that is to be forced set or reset. Specify the name in four characters. In “Word address,” specify the address of the word that is to be forced set or reset.

373

Page 392

Section

Host Link Commands Name OP3

6-3

Word address setting range

Classification

OP1

OP2

OP4

CQM1 PCs

C

I

O

L

R

(Space) (Space) LR

0000 to 0063

CPM1/CPM1A/SRM1 PCs 0000 to 0019 0200 to 0252 0000 to 0015

H

R

(Space) (Space) HR

0000 to 0099

0000 to 0019

A

R

(Space) (Space) AR

T T C C

I I N N

M M T T

0000 to 0027 0000 to 0511

0000 to 0015 0000 to 0127

(Space) IR or SR

(Space) H (Space) R

0000 to 0252

Completion Flag (timer) Completion Flag (high-speed timer) Completion Flag (counter) Completion Flag (reversible counter)

Forced set/Reset/Cancel data (Command) If a timer or counter completion flag is specified, only bit 15 is effective and all other bits will be ignored. Only force-setting and force-resetting are possible for timers/counters. If a word address is specified, the content of the word specifies the desired process for each bit in the specified word, as shown in the following table. Hexadecimal setting

Process

0000

No action (bit status not changed)

0002

Reset

0003

Set

0004

Forced-reset

0005

Forced-set

0008

Forced set/reset status cancel

The bits that are merely set or reset may change status the next time the program is executed, but bits that are force-set or force-reset will maintain the forced status until it is cleared. Response Format

An end code of 00 indicates normal completion.

@ x 101 x 100

Node no.

K x 161 x 160

Header code

End code

F

FCS

↵

Terminator

6-3-27 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. It is not possible to cancel bits one by one using KC. Command Format @ x 101 x 100

Node no.

374

K

C

Header code

FCS

↵

Terminator

Page 393

Section

Host Link Commands Response Format

6-3

An end code of 00 indicates normal completion. @ x 101 x 100

Node no.

C x 161 x 160

Header code

End code

K

↵

FCS

Terminator

6-3-28 PC MODEL READ –– MM Reads the model type of the PC. Command Format @ x 101 x 100

M

Node no.

Response Format

Header code

FCS

↵

Terminator

An end code of 00 indicates normal completion. @

Parameters

M 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 “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/CPM1/CPM1A/SRM1

12

C20H/C28H/C40H/C200H/C200HS

20

CV500

21

CV1000

22

CV2000

40

CVM1-CPU01-E

41

CVM1-CPU11-E

42

CVM1-CPU21-E

6-3-29 TEST–– TS Returns, unaltered, one block of data transmitted from the host computer. Command Format @ x 101 x 100

Node no.

T

S

Header code

122 characters max.

Characters

FCS

↵

Terminator

375

Page 394

Section

Host Link Commands Response Format

An end code of 00 indicates normal completion. @ x 101 x 100

Node no.

Parameters

6-3

T

122 characters max.

S

Header code

FCS

Characters

↵

Terminator

Characters (Command, Response) For the command, this setting specifies any characters other than the carriage return (CHR$(13)). For the response, the same characters as specified by the command will be returned unaltered if the test is successful.

6-3-30 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 @

Response Format

R

Node no.

Header code

P

FCS

↵

Terminator

An end code of 00 indicates normal completion. @ x 101 x 100

Node no.

Parameters x 101 x 100

R

P

Header code x 161 x 160 x 161 x 160

End code

1 byte

FCS

↵

Terminator

Program (for entire UM area)

Program (Response) The program is read from the entire program area. Note To stop this operation in progress, execute the ABORT (XZ) command.

6-3-31 PROGRAM WRITE –– WP Writes to the PC user’s program area the machine language (object code) program transmitted from the host computer. The contents are written as a block, from the beginning. Command Format @ x 101 x 100

Node no.

Response Format

W

Header code x 101 x 100

Node no.

376 x 161 x 160

1 byte

FCS

P x 161 x 160

Header code

End code

W

Program (Command) Program data up to the maximum memory size.

FCS

↵

Terminator

Program (Up to maximum memory size)

An end code of 00 indicates normal completion. @

Parameters

P

↵

Terminator

Page 395

Section

Host Link Commands

6-3

6-3-32 COMPOUND COMMAND –– QQ Registers at the PC all of the bits, words, and timers/counters that are to be read, and reads the status of all of them as a batch.

Registering Read Information Register the information on all of the bits, words, and timers/counters that are to be read. Command Format @ x 101 x 100

Node no.

Q

Q

Header code

R

M

OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100 OP1 OP2

Sub-header code

Read area

Read word address

Data format

, Data break

Single read information Total read information (128 max.)

, Data break

Read area

Read word address

Data format

↵

OP1 OP2 OP3 OP4 x 103 x 102 x 101 x 100 OP1 OP2

FCS

Terminator

Single read information Total read information (128 max.)

Response Format

An end code of 00 indicates normal completion. @ x 101 x 100

Node no.

Parameters

Q

Q

Header code

M

R x 161 x 160

Sub-header End code code

FCS

↵

Terminator

Read Area (Command) Specify in four-character code the area that is to be read. The codes that can be specified are listed in the following table.

377

Page 396

Section

Host Link Commands

6-3

Read Word address, Data Format (Command) Depending on the area and type of data that are to be read, the information to be read is as shown in the following table. The “read data” is specified in four digits BCD, and the data format is specified in two digits BCD. Area classification

Read data

Read word

Read area

CQM1 PCs

Data format

CPM1/ CPM1A/ SRM1 PCs

IR or SR

Bit Word

C I O (S)

0000 to 0255 0000 to 0019 0200 to 0255

00 to 15 (decimal) “CH”

LR

Bit Word

L R (S) (S)

0000 to 0063 0000 to 0015

00 to 15 (decimal) “CH”

HR

Bit Word

H R (S) (S)

0000 to 0099 0000 to 0019

00 to 15 (decimal) “CH”

AR

Bit Bit

A R (S) (S)

0000 to 0027 0000 to 0015

00 to 15 (decimal) “CH”

Timer

Completion Flag PV

T I M (S)

0000 to 0511

0000 to 0127

2 characters other than “CH” “CH”

High-speed timer

Completion Flag PV

TIMH

0000 to 0511

0000 to 0127

2 characters other than “CH” “CH”

Counter

Completion Flag PV

C N T (S)

0000 to 0511

0000 to 0127

2 characters other than “CH” “CH”

Reversible counter

Completion Flag PV

CNTR

0000 to 0511

0000 to 0127

2 characters other than “CH” “CH”

DM

Word

D M (S) (S)

0000 to 6655 0000 to 1023* Any 2 characters 6144 to 6655

Note *For SRM1 PCs, the DM range is from 0000 to 2047. (S): Space Data Break (Command) The read information is specified one item at a time separated by a break code (,). The maximum number of items that can be specified is 128. (When the PV of a timer/counter is specified, however, the status of the Completion Flag is also returned, and must therefore be counted as two items.)

Batch Reading The bit, word, and timer/counter status is read as a batch according to the read information that was registered with QQ. Command Format

@ x 101 x 100

Node no.

378

Q

Q

Header code

I

R

Sub-header code

FCS

↵

Terminator

Page 397

Section

Host Link Commands Response Format @ x 101 x 100

Node no.

6-3

An end code of 00 indicates normal completion. Q

Q

Header code

I

R x 161 x 160 ON/ x 103 x 102 x 101 x 100 OFF

Sub-header End code code

,

ON/ OFF

, x 163 x 162 x 161 x 160

Word data IR, SR, LR, HR, AR, DM

Bit data ON/OFF

Parameters

Data break

Timer/counter If PV is specified the status of the Completion Flag is also returned.

,

,

FCS

↵

Terminator

Read Data (Response) Read data is returned according to the data format and the order in which read information was registered using QQ. If “Completion Flag” has been specified, then bit data (ON or OFF) is returned. If “Word” has been specified, then word data is returned. If “PV” has been specified for timers/counters, however, then the PV is returned following the Completion Flag. Data Break (Response) The break code (, ) is returned between sections that are read.

6-3-33 ABORT –– XZ Aborts the Host Link operation that is currently being processed, and then enables reception of the next command. The ABORT command does not receive a response. Command Format @ x 101 x 100

Node no.

X

Z

Header code

FCS

↵

Terminator

6-3-34 INITIALIZE –– Initializes the transmission control procedure of all the PCs connected to the host computer. The INITIALIZE command does not use node numbers or FCS, and does not receive a response. Command Format

@

↵

6-3-35 Undefined Command –– IC This response is returned if the header code of a command cannot be decoded. Check the header code. Response Format @ x 101 x 100

Node no.

I

C

Header code

FCS

↵

Terminator

379