74
Slave Function API Functions
Section 4-5
Description
Before output data is sent to Slaves through a COS connection, the
SCAN_SetOutData() function must be used to set the output data.
COS connections do not always produce immediate communications. Trans-
mission may be delayed when several nodes are using COS communications.
4-5
Slave Function API Functions
4-5-1
Slave Scan List Operation API Functions
SELF_DEV Structure
This structure defines the format of the registration information used when
registering I/O information in the Slave’s scan list. This structure is used in the
SCAN_RegisterSelfSlaveDevice() and SCAN_GetSelfSlaveDevice() func-
tions. When nodes are registered in the scan list as a group, the FSCAN_DEV
and FILE_SCAN_DEV structures are used.
Type
Name
Contents
WORD
ScanType
Scan type
Specifies the connection type used.
Up to 2 scan types can be selected, although COS
and cyclic cannot be selected simultaneously.
0x8000 (32768) for automatic selection
WORD
Output1
Output data 1 (Master to Slave)
Size (bytes): 0x00 to 0xC8 (0 to 200)
WORD
Input1
Input data 1 (Slave to Master)
Size (bytes): 0x00 to 0xC8 (0 to 200)
WORD
Output2
Output data 2 (Master to Slave)
Size (bytes): 0x00 to 0xC8 (0 to 200)
Set this area to 0 if specifying automatic selection for
the scan type or specifying only one connection.
WORD
Input2
Input data 2 (Slave to Master)
Size (bytes): 0x00 to 0xC8 (0 to 200)
Set this area to 0 if specifying automatic selection for
the scan type or specifying only one connection.
WORD
ConnectAccept
Connected/Not connected
Not connected:0xFFFF (65535)
Connected:Some other value
Normally set to 0 (when connected).
Set to 0xFFFF (when not connected) if not performing
I/O communications even though the slave is regis-
tered in the scan list. A “No Slave” error will occur on
the Master.
WORD
ErrorOutData
Indicates whether output data is retained or cleared
when a communications error occurs.
Retain output data: 0xFFFF (65535)
Clear output data: Some other value
Specifies the output data (Master to Slave) status for
when a communications error occurs with the Master.
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Reserved
CY
COS
BS
Poll
Reserved
BS: Bit Strobe
CY: Cyclic
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 ...