62
Master Function API Functions
Section 4-4
Clearing Interrupt Status: SCAN_ClearIrqEvent()
Application Range
Open status
Function
Clears the cause of the interrupt that occurred in the specified Board.
Call Format
BOOL SCAN_ClearIrqEvent(DWORD
Handle
, BYTE
IrqClrMask
)
Arguments
Return Value
TRUE is returned when the value was successfully written in the specified
Board’s register. FALSE is returned if an error occurred. Detailed error infor-
mation can be read with the GetLastError() function.
Description
Use this function to clear the cause of an interrupt after an interrupt has been
detected by event notification or by SCAN_PeekIrqEvent() and the corre-
sponding processing has been executed.
4-4
Master Function API Functions
4-4-1
Scan List Operation API Functions
Registering a Slave in the Scan List: SCAN_RegisterSlaveDevice()
Application Range
Open status
Function
Registers information in the scan list for a specified Slave.
Call Format
BOOL SCAN_RegisterSlaveDevice(DWORD
Handle
, WORD,
MacId
, WORD
Outsize
, WORD
Insize
)
Arguments
Return Value
TRUE is returned if the specified Slave was successfully registered in the
scan list. FALSE is returned if an error occurred. Detailed error information
can be read with the GetLastError() function.
Description
I/O communications can be performed with Slaves registered in the scan list.
Slaves do not need to be registered in the scan list for message communica-
tions unless they are involved in I/O communications.
Previously registered Slaves will be overwritten when re-registered.
The scan type for Slaves registered using this function will be automatically
selected. Use SCAN_RegisterSlaveDeviceEx() to specify the scan type.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
BYTE
IrqClrMask
Interrupt mask to clear
Clearing is specified when the corresponding inter-
rupt bit position is ON.
(The data format is the same as it is in
SCAN_GetIrqControl().)
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
MacId
Address to register in the scan list.
Setting range: 0x00 to 0x3F (0 to 63)
WORD
Outsize
Output data size (bytes)
Setting range: 0x00 to 0xC8 (0 to 200)
WORD
Insize
Input data size (bytes)
Setting range: 0x00 to 0xC8 (0 to 200)
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 ...