Download  Print this page

Mitsubishi Electric FX5 User Manual Page 82

Melsec iq-f series, ethernet communication.
Hide thumbs

Advertisement

Devices used in the sample program
The following table lists the device numbers used in the sample program and their applications.
Device No.
M3000
D3000 and D3001
M300 and M301
D300 to D303
M3002
M3003
D5000 and D5001
M500 and M501
SD10680
SD10682
M3001
D500 and higher
M5002
M5003
D450 to D451
D460 to D464
Sample program
<<Data send processing>>
M3000 SD10680.0
M300
M301
M301
<<Data receive processing>>
SD10680.0 SD10682.0
M500
M501
M501
*1 For acquiring information of the target device connected on UDP, run the program enclosed by the dotted line.
(It can be omitted when the information acquisition is not needed.)
7 SOCKET COMMUNICATION FUNCTION
80
7.2 Communication Using UDP
Application
Send instruction
SP.SOCSND instruction control data
SP.SOCSND instruction completion device
Receive data length and send data
(6 bytes of 12H, 34H, 56H, 78H, 9AH, BCH)
Normal send indication
Send error indication
SP.SOCRCV instruction control data
SP.SOCRCV instruction completion device
Open completion signal
Receive state signal
Target change direction
Receive data length and receive data
Normal receive indication
Receive error indication
SP.SOCCINF instruction control data
SP.SOCCINF instruction connection information
SP.SOCSND
M500
SP.SOCCINF
SP.SOCRCV
MOVP K6
D300
MOVP H3412
D301
MOVP H7856
D302
MOVP H0BC9A D303
"U0"
K1
D3000
D300
M300
SET
M3002
SET
M3003
"U0"
K1
D450
D460
"U0"
K1
D5000
D500
M500
SET
M5002
SET
M5003
END
Set length of the data to be sent
Set the data to be sent
Sending data to connection 1
Normal completion indication
Error completion indication
*1
Acquire information of the target device
Receiving data
Normal completion indication
Error completion indication

Advertisement

Table of Contents

Comments to this Manuals

Symbols: 0
Latest comments: