![Addi-Data APCI-8001 Commissioning Manual Download Page 46](http://html.mh-extra.com/html/addi-data/apci-8001/apci-8001_commissioning-manual_2848792046.webp)
46
CM
/
C
OMMISSIONING
M
ANUAL
5.3 Using several xPCI-800x controllers in a PC
The driver software contained in the standard delivery allows using several xPCI-800x controllers in a PC.
In this case the following features must be observed:
•
The boards that are available in the system will be numbered continuously, beginning with 0. If there
is only one device in the system, a 0 will be allocated. The numbering is realized by the Plug & Play
Bios or the operating system and depends from the slot in the PC.
•
An xPCI-800x controller can be selected with the dll-function CardSelect() (see programming
manual). After successful selection the number of the board is returned (= parameter). If there was
no selection, always device 0 is active when starting an application. After the selection of a device
with CardSelect it will be called via the DLL-functions until another device is selected.
•
If the selected board is not available in the system -1 will be returned. In this way you can find out
how many systems are really installed in the PC. After successful calling of CardSelect, device 0 is
selected.
•
The board number depends from the slot, in which the respective devices are installed, but not be
board itself. Thus, the installation position must be kept at any time, as otherwise the allocation could
be changed.
•
Firstly, in the user software, the command InitMcuSystem3 () must be called as usual. After this, with
CardSelect any device that is installed in the PC can be selected. Then for this and all following
devices the command InitMcuSystem3() must be called newly. If necessary, also each control must
be booted separately. In this case it must be considered, that for each device in the system, global
data structures (e.g. tsrp[]) must be declared separately.
•
When calling a device, the data structures (especially TSRP) that are declared for each device must
be used.
•
A board can be se
lected in the program mcfg in the window „Projekt Parameter“ on the register card
„Environment“. This information will be saved when quitting mcfg and will be activated automatically
after new calling. Be very cautious if axes movements shall be done in mcfg. It must be ensured that
also the required device is selected.
•
A board can be selected in the program fwsetup on the register card „Tools“. However, this
information will be not saved when quitting fwsetup.
•
In order to guarantee that the required device is called according to the device number, for example
according to the pin labelling but not according to the slot, each device can get an Environment
Variable for labelling. Then this variable can be requested with getEnvStr(). In this way it is possible
to use the device numbers variably. For this, please read section 3.12 et sqq. and programming
manual, section 4.4.12.
Be very cautious at multi-thread-applications because due to a thread-change, the execution of the program
codes can be switched at any time. A thread-switch during access to the APCI-8001 / APCI-8008 must be
avoided, if after a thread-switch an other than the currently selected device shall be called.
Summary of Contents for APCI-8001
Page 4: ......
Page 47: ...CM COMMISSIONING MANUAL 47 5 4 APCI 8001 component mounting diagram ...
Page 48: ...48 CM COMMISSIONING MANUAL 5 5 APCI 8001 component mounting diagram bottom side ...
Page 49: ...CM COMMISSIONING MANUAL 49 5 6 APCI 8008 component mounting diagram ...
Page 50: ...50 CM COMMISSIONING MANUAL 5 7 APCI 8008 component mounting diagram bottom side ...
Page 51: ...CM COMMISSIONING MANUAL 51 5 8 APCI 8008 STP EVAI component mounting diagram ...
Page 52: ...52 CM COMMISSIONING MANUAL 5 9 APCI 8008 STP EVAI component mounting diagram bottom side ...