Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 215

Controller module
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
CC-Link IE TSN: 1 to 8
MELSECNET/H network: 1 to 8
Description
• This function supports the SEND instruction, the dedicated instruction for a CC-Link IE Controller Network module, CC-Link
IE Field Network module, CC-Link IE TSN, or MELSECNET/H network module, when a value specified for 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), CC-Link IE TSN (channel No.281 to 288), 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, CC-Link IE Field Network module, CC-Link
IE TSN, or MELSECNET/H network module to the target (network number/station/channel) specified for 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 44 Argument specification
Specify the station number of target module. A logical station number cannot be specified.
Page 44 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.3 MELSEC Data Link Functions
3
213

Advertisement

Table of Contents
loading

Table of Contents