94
Maintenance API Functions
Section 4-7
Return Value
TRUE is returned if the minimum communications cycle time was read suc-
cessfully from the specified Board. FALSE is returned if an error occurred.
Detailed error information can be read with the GetLastError() function.
Description
The minimum value after the SCAN_CycleTime function is executed, the
power is turned ON, or the Board is reset is held in the minimum communica-
tions cycle time.
Clearing the Minimum and Maximum Communications Cycle Time:
SCAN_ClearCycleTime()
Application Range
Open status
Function
Clears the maximum and minimum communications cycle time values held in
the Board.
Call Format
BOOL SCAN_ClearCycleTime(DWORD
Handle
)
Arguments
Return Value
TRUE is returned if the maximum and minimum communications cycle times
were cleared successfully from the specified Board. FALSE is returned if an
error occurred. Detailed error information can be read with the GetLastError()
function.
Reading Slave Function Status: SCAN_GetSlaveModeStatus()
Application Range
Open status
Function
Gets the Slave function status.
Call Format
BOOL SCAN_GetSlaveModeStatus(DWORD
Handle
, WORD *
Status
, WORD
*
MacId
)
Arguments
Return Value
TRUE is returned if the specified Board’s Slave function status was read suc-
cessfully. FALSE is returned if an error occurred. Detailed error information
can be read with the GetLastError() function.
Description
The following table shows the location and meaning of the Slave function sta-
tus flags. The flags are contained in 16 bits.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD*
Status
Buffer address for receiving the status.
WORD*
MacId
Buffer address for receiving the Master node
address.
Bit
Code
Meaning
0 and 1
---
Not used
2
B02
I/O communications error (Output data 1 and input data 1)
3
B03
I/O communications error (Output data 2 and input data 2)
4 to 11
---
Not used
12
B12
Connection 2 established
13
B13
Connection 1 established
14
B14
I/O communications in progress (Output data 2 and input data 2)
15
B15
I/O communications in progress (Output data 1 and input data 1)
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 ...