Mitsubishi Electric MELSEC iQ-R C Programming Manual page 171

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

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
Argument
Name
lPath
Path of channel
lNetNo
Network number
lStNo
Station number
lDevType
Device type
lDevNo
Channel number
plSize
Send data size
psData
Send data storage destination
• Specify the channel number as follows.
3
2
4 bytes
*1
Target station storage channel
*1
Channel used by the own station
*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.
Description
Specify the path of the opened channel.
Specify the network number of target module. A logical station number cannot be
specified.
Page 9 Argument specification
Specify the station number of target module. A logical station number cannot be specified.
Page 9 Argument specification
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)
Specify the channel number.
Specify the send data size in byte units. (2 to 1920)
(Specify the size with an even number.)
Specify the storage destination (address) of send data.
Reserve a continuous area for the send data storage destination.
1
0
IN/OUT
IN
IN
IN
IN
IN
IN/OUT
IN
3 DETAILS OF FUNCTION
3.2 MELSEC Data Link Functions
3
169

Advertisement

Table of Contents
loading

Table of Contents