Mitsubishi Electronics C64 Home Safety Product User Manual


 
9. Exclusive Commands 1
BUFSND
- 330 -
Example of data communication program
The following is an example of the program that executes sending (BUFSND) and receiving
(BUFRCV). UDP/IP, non-procedural type are used for both commands.
The send destination IP address is 192.168.1.3, and the applicable port No. is 6000. Connection 5 is
used. In the actual program, the send data is set in R500 and above.
Snd OPEN
execut’n
start
pulse
Snd OPEN
command
applica-
tion set
Snd OPEN
command
clnt dev
port No.
Snd OPEN
command
error
complet.
Snd OPEN
command
execut’n
type
Snd OPEN
command
clnt dev
IP addrs
Snd OPEN
command
complete
Snd OPEN
command
normal
complet.
BUFSND
control
data
BUFSND
complete
status
BUFSND
normal
complet.
pulse
Send
start
pulse
Transmi-
ssion
buffer
BUFSND
error
complet.
status
CLOSE
command
control
data
Snd OPEN
command
execut’n
type
Snd OPEN
command
complete
Snd OPEN
command
normal
complet.
BUFSND
complete
status
CLOSE
command
normal
complet.
Snd OPEN
command
normal
lt
BUFSND
normal
complet.
pulse