Mitsubishi Electric Q03UDVCPU User Manual page 118

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

Advertisement

(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 received data size exceeds the size of the receive data storage device.
• The device numbers specified for
• An invalid device is specified.
(5) Program example
When M5000 is turned on, data received from the connected device are read out.
• Devices used
SD1282
SD1286
D5000
D500
M500
• Program
● To avoid receiving large amounts of data, the volume of received data can be limited by setting the receive data size
using the SP.SOCRMODE instruction.
● Consecutively sent data can be consecutively read out by connecting the completion device of the SP.SOCRCV
instruction to the execution command at the normally closed contact.
116
is other than 1 to 16.
S1
,
, and
S2
D1
Device number
exceed the device point range.
D2
Open completion signal
Receive state signal
SP.SOCRCV instruction control data
Receive data length and receive data storage location
SP.SOCRCV instruction completion device
(Error code: 4002)
(Error code: 4101)
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
Application
Reading receive
data of Connection
No.1
Normal completion
Error completion

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents