Omron CS1W-ETN21 operation manual Flag name Address Contents Word Bits

Models: CS1W-ETN21

1 285
Download 285 pages 16.7 Kb
Page 167
Image 167

Communicating between OMRON PLCs

Section 6-6

Execution

Communications

C

condition

Port Enabled Flag

 

 

KEEP(011) A

Reset B

 

 

A

 

 

 

 

Operand,

 

 

control data

 

 

created with

 

 

@MOV and

 

 

@XFER.

 

 

Communications

 

 

instructions

 

 

@SEND

 

 

@RECV

 

 

@CMND

 

Communications

 

A

Port Enabled Flag

 

 

DIFU(013) B

 

 

A

Communications

 

Port Error Flag

 

Execution

Communications

 

condition

Port Enabled Flag

A

 

 

 

 

KEEP(011) C

Reset D

 

 

 

(Continued in same way.)

 

Input A remains ON from start to completion of commu- nications instruction.

Creates operand and control data in a given area.

Executes communications instructions.

Creates reset input. (Turns reset B ON after execution of communications in- struction.)

Send Error Flag display (Retry can be executed.)

Exclusive control so execution is not simultaneous.

Use exclusive control so that no other communica- tions instructions are started before execution of the above communications instruction is complete.

The execution status of the SEND(090), RECV(098), and CMND(490) instruc- tions is always reflected by the communications flags (i.e., the Communica- tions Port Enabled Flag and the Communications Port Error Flag). The CS/ CJ-series CPU Unit’s communications flags are allocated in the Auxiliary Area as shown in the following table.

Flag name

 

Address

Contents

 

 

 

 

 

Word

Bits

 

 

 

 

 

Communications Port

A202

Bit 7: Port 7

OFF: Execution enabled

Enabled Flag

 

Bit 6: Port 6

(being executed)

 

 

Bit 5: Port 5

ON: Execution disabled

 

 

Bit 4: Port 4

 

 

(not being executed)

 

 

Bit 3: Port 3

 

 

 

 

 

Bit 2: Port 2

 

 

 

Bit 1: Port 1

 

 

 

Bit 0: Port 0

 

 

 

 

 

Communications Port

A219

Bit 7: Port 7

0: Normal completion

Error Flag

 

Bit 6: Port 6

1: Abnormal completion

 

 

Bit 5: Port 5

 

 

 

Bit 4: Port 4

 

 

 

Bit 3: Port 3

 

 

 

Bit 2: Port 2

 

 

 

Bit 1: Port 1

 

 

 

Bit 0: Port 0

 

 

 

 

 

Note With CS/CJ-series PLCs, communications ports 0 to 7 are also used for exe- cuting the PCMR(260) (PROTOCOL MACRO) instruction, so these flags are used in common for SEND(090), RECV(098), CMND(490), and PCMR(260). While PCMR(260) is being executed, SEND(090), RECV(098), and CMND(490) cannot be executed at the same communications port.

142

Page 167
Image 167
Omron CS1W-ETN21 operation manual Flag name Address Contents Word Bits