3 DETAILS OF FUNCTION
3.2 MELSEC Data Link Functions
169
3
mdSendEx
This function sends messages. (SEND function)
■
Format
long mdSendEx(long lPath, long lNetNo, long lStNo, long lDevType, long lDevNo, long* plSize, short* psData)
■
Argument
• Specify the channel number as follows.
*1 CC-Link IE Controller Network: 1 to 8
CC-Link IE Field Network: 1 to 2
MELSECNET/H network: 1 to 8
■
Description
• This function supports the SEND instruction, the dedicated instruction for a CC-Link IE Controller Network module, a CC-
Link IE Field Network module, or a MELSECNET/H network module, when a value specified to the path of channel (lPath)
is a value returned with the mdOpen function by specifying CC-Link IE Controller Network (channel No.151 to 158), CC-
Link IE Field Network (channel No.181 to 188), or MELSECNET/H network (channel No.51 to 54), and "With arrival
confirmation: 101" or "Without arrival confirmation: 102" is specified for the device type.
• This function sends a message from a CC-Link IE Controller Network module, a CC-Link IE Field Network module, or a
MELSECNET/H network module to the target (network number/station/channel) specified to the station number (lStNo) and
the device type (lDevNo).
• For more advanced SEND functions, use the C Controller module dedicated functions.
• An error occurs if a message data is sent to a channel currently in use.
Argument
Name
Description
IN/OUT
lPath
Path of channel
Specify the path of the opened channel.
IN
lNetNo
Network number
Specify the network number of target module. A logical station number cannot be
specified.
IN
lStNo
Station number
Specify the station number of target module. A logical station number cannot be specified.
IN
lDevType
Device type
Specify the device type for device to be written in batch.
When "Group number" or "All stations" is specified for the station number, only "Without
arrival confirmation" is valid.
• With arrival confirmation: 101 (65H, DevMAIL)
• Without arrival confirmation: 102 (66H, DevMAILNC)
IN
lDevNo
Channel number
Specify the channel number.
IN
plSize
Send data size
Specify the send data size in byte units. (2 to 1920)
(Specify the size with an even number.)
IN/OUT
psData
Send data storage destination
Specify the storage destination (address) of send data.
Reserve a continuous area for the send data storage destination.
IN
3
2
1
0
Target station storage channel
*1
Channel used by the own station
*1
4 bytes
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......