Mitsubishi Electric Q03UDVCPU User Manual page 136

Qnucpu series (communication via built-in ethernet port)
Hide thumbs Also See for Q03UDVCPU:
Table of Contents

Advertisement

(3) Function
This instruction reads out the data of the amount specified for n from the Socket communication receive data
area of which connection is specified in
is performed when the number of read data (n) is 0.
● Data of the receive data length can be read out by setting the number of read data to one word.
This allows change of the device storing receive data, upon execution of the SP.SOCRCV or S.SOCRCVS instruction.
● In the following order, based on the data currently received, the size of the data received the next time can be specified.
1. Check the data currently received using the S(P).SOCRDATA instruction.
2. Specify the size of the data to be received the next time using the SP.SOCRMODE instruction.
3. Read out the data currently received using the SP.SOCRCV or S.SOCRCVS instruction.
Remark
● Even if the S(P).SOCRDATA instruction is executed, the next receive data will not be stored in the Socket communication
receive data area because the area is not cleared and the Receive state signal does not change.
● To update the receive data, read out the data using the SP.SOCRCV or S.SOCRCVS instruction.
(4) Error
A detection of an operation error turns on the Error flag (SM0) and a corresponding error code is stored in SD0
when:
• The instruction is executed in the QnUDE(H)CPU with a serial number (first five digits) of "11011" or earlier
or a CPU module other than the Built-in Ethernet port QCPU.
• The connection number specified for
• The device numbers specified for
• An invalid device is specified.
• The device value specified for n is larger than 5120.
134
, and stores them in the device specified in
S1
is other than 1 to 16.
S1
,
, and n1 exceed the device point range.
S2
D
or higher. No processing
D
(Error code: 4002)
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
(Error code: 4100)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents