9DEDICATED INSTRUCTIONS

Function

MELSEC-Q

(1)This function clears reception data in the OS area. It does not clear the user data reception area in the buffer memory.

(2)If the CSET instruction is executed while the read request (X03/X0A) or reception abnormal detection signal (X04/X0B) is turned on, the CSET instruction is kept waiting until the signal is turned off.

(3)The status of the CSET instruction, whether it is being executed or completed normally/abnormally, can be checked by the complete device (D2) specified by the setting data.

(a)Complete device ((D2) + 0)

This device turns on at the End processing of the scan at which the CSET instruction is completed and turns off at the next End processing.

(b)Complete device ((D2) + 1)

It turns on/off by the status at which the CSET instruction is completed.

At normal completion: It is kept turned off and does not change.

At abnormal completion: It turns on at the END processing of the scan at which the CSET instruction is completed and turns off at the next END processing.

[Operation at execution of CSET instruction]

Sequence program

Scan

End

Scan

End

Scan

End

processing

processing

processing

 

 

 

 

 

 

 

 

 

CSET instruction

 

Execution of instruction

 

 

 

 

 

 

 

 

 

 

 

 

 

Complete device

 

 

 

 

 

 

 

 

Complete device+1

 

 

 

 

 

At abnormal completion

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Q series C24

 

 

 

 

 

 

 

 

Setting processing

 

 

 

 

Error

(1)If the dedicated instruction is abnormally completed, the error flag (SM0) turns on and the error code is stored in SD0.

See the following manuals according to the error code, and check/take action according to the error.

<Error code>

4FFFH or less: QCPU User's Manual

(Hardware Design, Maintenance and Inspection) 7000H or more: Section 10.2 of the User's Manual (Basic)

9 - 20

9 - 20