Download MELSEC Data Link Library Reference Manual

Transcript
CHAPTER 4 FUNCTIONS
4.3.13
mdWaitBdEvent (waiting for event occurrence)
Function
Wait an occurrence of event until the time out.
Format
Visual C++®
4
ret = mdWaitBdEvent(path, eventno, timeout, signaledno, details);
short
ret;
//Return value
OUT
long
path;
//Path of channel
IN
short
eventno[ ];
//Waiting event number
IN
long
timeout;
//Timeout value
IN
short
*signaledno;
//Driven event number
OUT
short
details[4];
//Event detail information
OUT
Visual Basic®.NET
ret = mdWaitBdEvent(path, eventno(0), timeout, signaledno, details(0))
Short
ret
;Return value
OUT
Integer
path
;Path of channel
IN
Short
eventno(n)
;Waiting event number
IN
timeout
;Timeout value
IN
Short
signaledno
;Driven event number
OUT
Short
details(4)
;Event detail information
OUT
4.3 Function Details
4.3.13 mdWaitBdEvent (waiting for event occurrence)
Integer
Visual Basic®5.0, Visual Basic®6.0
ret% = mdWaitBdEvent(path&,eventno%(0),timeout&,signaledno%,details%(0))
Integer
ret
;Return value
OUT
Long
path
;Path of channel
IN
Integer
eventno(n)
;Waiting event number
IN
Long
timeout
;Timeout value
IN
Integer
signaledno
;Driven event number
OUT
Integer
details(4)
;Event detail information
OUT
Argument
Description
Specify the path of channel whose communication line is opened.
path
Path of channel
eventno
Waiting event number
timeout
Timeout value
Specify the time until time out to wait the event.
signaledno
Driven event number
Return the occurred event number.
details
Event detail information
(Use the path which is returned when executing mdOpen.)
Specify the event number of event to wait.
(Use the event number set in the utility.)
Store the bit pattern or device value when the conditions of device are
satisfied.
Reserve the variable for 4 words.
87