57
Board Management API Functions
Section 4-3
Function
Reads the version information for the driver being used for the DeviceNet PCI
Board.
Call Format
BOOL SCAN_GetDriverVersion(DWORD
Handle,
DWORD *
Version
)
Arguments
Return Value
TRUE is returned when the function is completed normally and FALSE is
returned when an error occurs during processing. Detailed error information
can be read with the GetLastError() function.
Description
Use this function when the driver version needs to be checked.
The driver version is stored in BCD in the following format:
For example, DLL version 1.13 will be represented as 0x00010013.
Checking the Board: SCAN_lsExistCard()
Application Range
Unlimited (Can be executed in closed status.)
Function
Checks whether or not there is a DeviceNet PCI Board with the specified
board ID.
Call Format
BOOL SCAN_lsExistCard(DWORD
BoardId
)
Arguments
Return Value
TRUE is returned if there is a DeviceNet PCI Board with the specified board
ID and FALSE is returned if there is not. Detailed error information can be
read with the GetLastError() function.
Description
Use to check the ID of the mounted Board.
Set the board ID with the Board’s rotary switch.
Opening the Board: SCAN_Open()
Application Range
Closed status
Function
Opens the DeviceNet PCI Board with the specified board ID and makes it
usable.
Call Format
BOOL SCAN_Open(DWORD BoardId, DWORD *
Handle
)
Arguments
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
DWORD*
Version
Buffer address for obtaining version information.
31
16 15
0
Minor version
Major version
Type
Name
Contents
DWORD
BoardId
Board ID of the Board that you want to check
Setting range: 0x0 to 0x7 (0 to 7)
Type
Name
Contents
DWORD
BoardId
Board ID of the Board that you want to open
Setting range: 0x0 to 0x7 (0 to 7)
DWORD*
Handle
Buffer address for obtaining device handle.
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 ...