Справочник Пользователя для Mitsubishi Electronics fx3u

Скачать
Страница из 284
5 - 27
MELSEC-F
COMMUNICATION PROCEDURE
5
5 - 27
5.6.1 Active open processing/close processing
This section explains the procedure for opening and closing a connection with an 
external device from the Ethernet module.
• Program example for the unit No. 1
<<Open processing for connection No.1>>
M8000
M100
X000
M117
M103
X000
M102
[=
D100
H15
]
[=
D100
H10
]
[=
D100
H5
]
]
H0
D100
[=
[MOV
K4M110
(M102
(M103
]
[INCP
D0
]
[INCP
D1
]
[INCP
D2
]
[END
]
[MOVP
H8000
]
)
(M101
)
(M100
)
)
U1\
G28
Open
request
Link
status
Cancel of
self-
holding
at close
M0
Initial
completion
status
Open request
(self-holding)
Status
Status read
Open request
(self-holding)
(M0
Initial
completion
status
[MOVP
H1
U1\ 
G1602
]
OPEN
instruction/
status
Reading 
value 
of #1602
Reading 
value 
of #1602
Reading 
value 
of #1602
Open
completed
Open normal completion 
processing
Open abnormal completion 
processing
Normal open processing
Open abnormal processing
Open
request
Closed 
(self-
 holding)
OPEN
instruction/
status
Closed
(self-holding)
Cancel of
self-holding
at close
U1\
G1602
Close count
CLOSE normal
completion processing
Reading
value
of #1602
[MOV
U1\
G1602
D100
]
OPEN
instruction/
status
Reading
value
of #1602
[=
U1\
G27
H1
]
Initial
completion
signal
User applications are described at the area enclosed with       .