Mmc_Controller::writeremotebuffermemory - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MMC_Controller::WriteRemoteBufferMemory

Writes data to the buffer memory in the remote device station.
unsigned long WriteRemoteBufferMemory(
unsigned char netno,
unsigned char stno,
unsigned long offset,
unsigned short size,
void *data,
unsigned long timeout
);
Detailed description
■Parameter
Argument
netno [in]
stno [in]
offset [in]
size [in]
data [in]
timeout [in]
■Return value
Value
MMC_OK
MMERR_ARGUMENT_0
=1 to 9: Argument location
MMERR_TIMEOUT_0
=1 to 9: Timeout location
MMERR_DEV_UNOPEN
MMERR_WIN_WAIT_FOR_SINGLE_OBJECT
MMERR_WIN_RELEASE_SEMAPHORE
MMERR_SLMP_SEND_RECEIVE_ERROR
MMERR_SLMP_COMMUNICATION_RUNNING
■Point
• Specify the byte size of the write data in even number.
• When MMC_INFINITE is designated as the timeout time, timeout is not checked. Instead, this function infinitely waits for
completion of the SLMP communication process.
• It is recommended to set 500 ms or more for the timeout time.
■Supported version
API version
1.30
■Reference
ReadRemoteBufferMemory (Page 55 MMC_Controller::ReadRemoteBufferMemory)
3 API LIBRARY DETAILS (BASIC FUNCTIONS)
56
3.2 MMC_Controller Class
Description
Network No. of the remote device station (0 to 239)
Station No. of the remote device station (0 to 255)
Start address of the remote device station buffer memory to be written
Byte size of the write data (2 to 480)
Pointer to the write data
Timeout time [ms] (0 to 65535)
Description
Function succeeded
The argument is outside the set range.
The timeout time has elapsed.
The Open method of the device driver class has not been called.
An error occurred in the WaitForSingleObject function (Win32API). Call the GetLastError
function of Win32API and confirm the error details.
An error occurred in the ReleaseSemaphore function (Win32API). Call the GetLastError
function of Win32API and confirm the error details.
An error occurred during SLMP communication. Since an end code of the SLMP response
message is stored to the details error code, refer to the following to check the error contents
and take actions.
MELSEC iQ-R CC-Link IE Field Network User's Manual (Application)
A SLMP communication process is being executed. Execute again after other SLMP
communication processes are complated.
Software version
03

Advertisement

Table of Contents
loading

Table of Contents