Mitsubishi Electric Q03UDVCPU User Manual page 125

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 device numbers specified for
• An invalid device is specified.
(5) Program example
When M3000 is turned on, data (1234, 5678, and 8901) are sent to the target device using the socket
communication function.
• Devices used
Device number
SD1282
D3000
D300
M300
• Program
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
is other than 1 to 16.
S1
,
, and
exceed the device point range.
S2
S3
D
Open completion signal
SP.SOCSND instruction control data
Send data length and send data storage location
SP.SOCSND instruction completion device
(Error code: 4002)
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
Application
Setting send data length
Setting send data
Sending data to
Connection No.1
Normal completion
Error completion
123
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents