77
Slave Function API Functions
Section 4-5
Slave information must be registered using SCAN_RegisterSelfSlaveDevice()
to use this function.
Stopping Master I/O Communications: SCAN_DisconnectMasterDevice()
Application Range
I/O communications execution status
Function
Stops I/O communications with the specified Master.
Call Format
BOOL SCAN_ConnectMasterDevice(DWORD
Handle
, WORD
MacId
)
Arguments
Return Value
TRUE is returned if the I/O communications with the specified Master were
stopped successfully. FALSE is returned if an error occurred. Detailed error
information can be read with the GetLastError() function.
Description
Stops I/O communications with Masters. The Master will have a communica-
tions error.
The stopped I/O communications can be restarted using SCAN_Connect
MasterDevice().
4-5-3
I/O Data Access Service API Functions
Refreshing Slave I/O Data: SCAN_SlaveIoRefresh()
Application Range
Open status
Function
Refreshes the input and output areas of the Board’s Slave function with the
most recent data from remote I/O communications. Refreshes the data in the
I/O areas of the Slave function.
Call Format
BOOL SCAN_SlaveIoRefresh(DWORD
Handle
)
Arguments
Return Value
TRUE is returned if the input and output areas of the specified Board’s Slave
function were successfully refreshed. FALSE is returned if an error occurred.
Detailed error information can be read with the GetLastError() function.
Description
This function executes data exchange between the Slave function’s I/O areas
accessible using API functions and Slave function’s I/O areas on the Board
used for actual communications, and refreshes these I/O areas.
Use the SCAN_GetSlaveOutData() after this function is completed to get the
input data.
For output data, first execute SCAN_SetSlaveInData() for the required Slaves,
and then execute this function.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
Summary of Contents for DeviceNet 3G8F7-DRM21-E
Page 1: ...OPERATION MANUAL Cat No W381 E1 02 3G8F7 DRM21 E DeviceNet PCI Board ...
Page 2: ...3G8F7 DRM21 E DeviceNet PCI Board Operation Manual Revised July 2005 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 29: ...12 Preparation for Operation Section 1 8 ...
Page 67: ...50 PC Watchdog Timer Management Function Section 3 11 ...
Page 115: ...98 Maintenance API Functions Section 4 7 ...
Page 131: ...114 Remote I O Communications Characteristics Section 6 1 ...
Page 145: ...Index 128 ...
Page 147: ...130 Revision History ...