Mitsubishi Electronics C64 Home Safety Product User Manual


 
9. Exclusive Commands 1
OPEN
- 324 -
Execution conditions
The execution condition for OPEN is as shown below.
Command OFF
OPEN
ON
Program example
Program to open a connection to send data with port No. :6000 and connection No.:5.
ZP.OPEN "U20" K5 D100 M150
14
No. of
steps
Command Device
1 MOPV H8000 D100
4 MOV H100 D102
7 DMOV H0C0A80103 D104
11 MOV K6000 D106
14 ZP.OPEN "U20" K5 D100 M150
26
Cautions
(1) Even if the dedicated commands (OPEN, CLOSE, BUFSND, BUFRCV) are executed with the
high-speed PLC, the actual operation will take place at the same timing as the medium-speed
PLC. Thus, the dedicated command should be executed with the medium-speed PLC.
(2) Open transmission using TCP after the client device's reception has been opened. If
transmission is opened before reception is opened, an error completion (completion status
C033) will occur.
If transmission is opened for a client device with a nonexistent IP address, an error completion
(completion status C033) will occur after one minute.
(3) If a connection opened with TCP is closed, and is tried to be opened again within a minute, an
error completion (completion status C017) will occur. Wait a while before opening the connection
again.
(4) If the connection No. is not within the specified range, an error completion (completion status
C1A6) will occur, but the completion device and completion device +1 will not turn ON.