Mitsubishi Electric Q03UDVCPU User Manual page 91

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

Advertisement

(2) Program example for Active open
The following shows a communication flow of an Active open.
SP.SOCOPEN instruction
Send by the SP.SOCSND
instruction, or receive by the
S.SOCRCVS instruction.
(a) Parameter setting
The following parameters are set for the sample program.
Project window
button can be used with the QnUDVCPU.
*1
• For "Ethernet Conf.", drag and drop "Active Connection Module" from "Module List" to the left side on the
window. Set the port numbers and IP address as mentioned below.
Item
PLC
Port No.
IP Address
Sensor/Device
Port No.
Start
Specify the port number of the external device waiting for
TCP connection and open a connection by Active open.
Open processing:
YES (Completed, or disconnected by the external device.)
Was data transfer
completed?
NO
Close processing:
SP.SOCCLOSE instruction
SP.SOCRCV or
[Parameter]
[PLC Parameter]
*1
/
button
4096 (Setting range: 1 to 4999, 5010 to 65534)
Do not specify 5000 to 5009 because these ports are used by the system.
(
Page 200, Appendix 2)
192.168.3.40 (Setting range: 0.0.0.1 to 223.255.255.254)
4096 (Setting range: 1 to 65534)
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
End
[Built-in Ethernet Port Setting]
Setting
7
89

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents