CM / C
M
OMMISSIONING
5.2.12.3
Fitting shields
All connections to the APCI-8001 / APCI-8008 must be shielded. The shields must be fitted on both sides on
the casing earth wire (not on an internal earth wire, such as pin 50 on X1). Therefore, for SUB-D connectors,
massive metal caps (not insulating plastic caps) must be used. Only through correct shielding of all
connections is interference-free operation, in particular of the counter inputs, ensured.
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
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 selected 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 be 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.
ANUAL
the
command
InitMcuSystem3()
must
be
called
47
newly.
Need help?
Do you have a question about the CPCI-8004 and is the answer not in the manual?