60
Board Management API Functions
Section 4-3
Call Format
BOOL SCAN_GetIrqControl(DWORD
Handle
, BYTE *
IrqReg
)
Arguments
Return Value
TRUE is returned if the register value was read from the specified Board suc-
cessfully. FALSE is returned if an error occurred. Detailed error information
can be read with the GetLastError() function.
Description
Use this function to check the value set in the interrupt control register.
The interrupt control register value is stored in IrqReg with the following for-
mat:
BD_WDT: Board watchdog timer interrupt
SCAN:
One-scan completed interrupt
Writing the Interrupt Control Register: SCAN_SetIrqControl()
Application Range
Open status
Function
Sets the value of the interrupt control register that determines whether or not
the computer is notified of interrupts that occur in the specified DeviceNet PCI
Board.
Call Format
BOOL SCAN_SetIrqControl(DWORD
Handle
, BYTE
IrqReg
)
Arguments
Return Value
TRUE is returned if the register value was written to the specified Board suc-
cessfully. FALSE is returned if an error occurred. Detailed error information
can be read with the GetLastError() function.
Description
Once the interrupt control register has been set, the computer will be notified
when the corresponding interrupts occur.
Registering an Interrupt Notification Message: SCAN_RegIrqEvtNotifyMessage()
Application Range
Open status
Function
Registers the Windows message that notifies that an interrupt from the Board
occurred.
Call Format
BOOL SCAN_RegIrqEvtNotifyMessage(DWORD
Handle
, DWORD
ThreadId
,
HWND
hWnd
, UNIT
Msg
)
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
BYTE*
IrqReg
Buffer address for obtaining interrupt control regis-
ter.
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit
name
Reserved
BD_
WDT
SCAN
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
BYTE
IrqReg
New register value setting
(The data format is the same as it is in
SCAN_GetIrqControl().)
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 ...