Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1705

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
*1
(U)
*2
(s1)
(s2)
(d1)
*2
(d2)
*1 Index modification is not available.
*2 FX and FY cannot be used.
*3 FD cannot be used.
■Control data
Operand: (s2)
Device
Item
+0
Execution type
+1
Completion status
+2
Request type
+3 to +111
For system
Processing details
• This function only clears receive data from the OS area, but does not clear any data from the user receive area in the buffer
memory.
• If the ZP.CSET instruction is issued when the receive read request (Xn3/XnA) or receive error detection (Xn4/XnB) is on, it
has to wait until the signal turns off.
• The completion status of the ZP.CSET instruction can be checked with the completion device (d2) and the completion
status indication device (d2)+1.
• Completion device (d2)
This device turns on during END processing of the scan where the ZP.CSET instruction completes, and turns off during the next END processing.
• Completion status indication device (d2)+1
This device turns on or off depending on the completion status of the ZP.CSET instruction.
When completed successfully: The device remains off.
When completed with an error: The device turns on during END processing of the scan where the ZP.CSET instruction completes, and turns off during the next
END processing.
• The following figures show how the ZP.CSET instruction operates when its execution completes.
0
Sequence scan
ZP.CSET instruction
OFF
Completion device (d2)
Completion status
OFF
indication device (d2)+1
Serial communication
module
Word
J\
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
*3
*3
*3
*3
Description
Specifies 0.
Used to store the completion status.
• 0: Normal
• Other than 0: Error (error code)
Specifies the contents of request.
• 4: Receive data clear request
Use prohibited (not available also for other applications such as programming)
END
0
Execution of
the instruction
Double word
Z
LT, LST,
LZ
LC
END
0
ON
ON
Set processing
20 SERIAL COMMUNICATION INSTRUCTIONS
Indirect
Constant
specification
K, H
E
$
Setting range
0
4
END
OFF
Completed with an error
OFF
Completed successfully
20.10 Clearing Receive Data
Others
(U)
20
Set by
User
System
User
System
1703

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents