![background image](http://html.mh-extra.com/html/omron/devicenet-3g8f7-drm21-e/devicenet-3g8f7-drm21-e_operation-manual_743611090.webp)
73
Master Function API Functions
Section 4-4
Return Value
TRUE is returned if the specified input data was read successfully. FALSE is
returned if an error occurred. Detailed error information can be read with the
GetLastError() function.
Description
The most recent Slave inputs will not be reflected in the Board’s input area
unless this function is executed after SCAN_IoRefresh().
Specify NULL as the input data 2 storage buffer address if only one I/O con-
nection is used with Slaves (e.g., when using SCAN_RegisterSlaveDevice()).
Specify the input data size for the specified node address as the data size for
the IO_DATA_CTL structure. The read I/O data is stored in the data storage
buffer of the IO_DATA_CTL structure.
Writing Slave Output Data: SCAN_SetOutData()
Application Range
Open status
Function
Writes the specified Slave’s output data to the Board’s output area.
Call Format
BOOL SCAN_SetOutData(DWORD
Handle
, WORD
MacId
, IO_DATA_CTL
*
OutData1
, IO_DATA_CTL *
OutData2
)
Arguments
Return Value
TRUE is returned if the specified output data was written successfully. FALSE
is returned if an error occurred. Detailed error information can be read with
the GetLastError() function.
Description
The Board’s output area will not be reflected in the most recent Slave outputs
unless SCAN_IoRefresh() is executed after this function.
Specify NULL as the input data 2 storage buffer address if only one I/O con-
nection is used with Slaves (e.g., when using SCAN_RegisterSlaveDevice()).
Specify the output data size for the specified node address as the data size for
the IO_DATA_CTL structure. The output data to Slaves is stored in the data
storage buffer of the IO_DATA_CTL structure.
Sending COS Output Data: SCAN_SendMasterCosToSlave()
Application Range
I/O communications executing status
Function
Sends output data to a Slave communicating through a COS connection.
Call Format
BOOL SCAN_SendMasterCosToSlave(DWORD
Handle
DWORD
MacId
)
Arguments
Return Value
TRUE is returned if the transmission of output data to the Slave proceeded
normally. FALSE is returned if an error occurred. Detailed error information
can be read with the GetLastError() function.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
MacId
Node address to write
Setting range: 0x00 to 0x3F (0 to 63)
IO_DATA_CTL*
OutData1
Buffer address where output data 1 is stored
IO_DATA_CTL*
OutData2
Buffer address where output data 2 is stored
(NULL when not used.)
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
DWORD
MacId
Node address to write output data
Designation range: 0X0 to 0X3F (0 to 63)
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 ...