9 DEDICATED INSTRUCTIONS

9.8 CSET (Receive data clear)

MELSEC-Q

 

 

 

 

 

 

Applicable device

 

 

 

 

Set

Internal device

 

MELSECNET/H,

 

 

 

 

 

 

MELSECNET/10

Special module

 

 

 

 

data

(System, user)

File register

 

Index register Zn

Constant

Others

Direct J

\

U \G

 

 

 

 

 

 

 

 

 

 

Bit

Word

 

Bit

 

Word

 

 

 

 

 

(S1)

 

 

 

 

 

 

 

K, H

(S2)

 

 

 

 

 

 

 

 

(D1)

 

 

 

 

 

 

 

 

(D2)

 

 

 

 

 

 

 

 

 

[Instruction

[Executing

[Instruction

 

 

 

code]

condition]

form]

 

 

 

CSET

 

 

 

 

 

ZP.CSET

"Un" (S1) (S2) (D1) (D2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Set data

Set data

Description

Set by

Data type

"Un"

Start I/O signal of the module

 

 

(00 to FE: Top two-digit when I/O signals are expressed in 3-digit.)

 

 

 

 

 

 

Number of the channel that demands to clear receiving data.

User

BIN16 bit

(S1)

1: Channel 1 (CH1 side)

 

 

 

2: Channel 2 (CH2 side)

 

 

(S2)

Head number of the device that stores the control data.

User, System

Device name

(D1)

Dummy

Device name

 

Head number of the bit device at the self-station that turns on for one scan at

 

 

(D2)

the completion of the instruction.

System

Bit

 

(D2) + 1 also turns on at an abnormal completion.

 

 

Each of file registers for local device and program cannot be used as the setting data.

Control data

Device

Item

Set data

Setting range

Set by

(S2) + 0

Execution type

Select 0.

0

User

 

 

The execution result at the completion of the instruction

 

 

(S2) + 1

Complete status

is stored.

System

0: Normal

 

 

 

 

 

 

Other than 0: Abnormal (error code)

 

 

(S2) + 2

Request type

Specify the request.

4

User

4: Receive data clear request

 

 

 

 

(S2) + 3

 

 

 

 

to

For system

System

(S2) + 111

 

 

 

 

REMARK

(1)See the "Error" explanation on the following page for details on errors caused by wrong data specifications by the user.

(2)The setting sides are partitioned as follows:

User: Data set by the user before executing the dedicated instruction.

System: The PLC CPU stores the execution result of the dedicated instruction.

9 - 19

9 - 19