Sample Program Usage; Table 5.1:Sample Program Usage - Advantech PCI-1241 User Manual

4-axis voltage/pulse-type servo motor control card
Table of Contents

Advertisement

In the 'Installed Device' area, all installed cards will be listed. The card's
name, base address, and card index is also displayed.
You can modify the card index by selecting the card, keying in the new
index number in the lower-left text field, and then pressing the 'Update'
button.
Secondly, the default access mode of PCI-1241/1242/1261 is set as
"Memory Mapping". If you want to use the cards in DOS mode, it has to
be set as "IO mapping" here with Card Index manager.
Note:

5.2 Sample Program Usage

Beside driver library, Advantech also provides variant sample programs
along with the PCI-1241/1242/1261 DLL driver. There are over 30 sam-
ples programs written in VC and VB can be found in following folder
[Disk]:\program files\Advantech\Motion\PCI-1241_42_61\example\
Each sample program is designed for demonstrating different motion
operation. Users can test motion cards with the sample program. Or even
accomplish their applications by modifying the sample programs.
Following is a list of all sample programs and their functions:
Table 5.1: Sample Program Usage
Name
AccStep
The default index is '0' for each card. Please
modify the index before testing with examples.
Since the driver also uses the card index to identify
the cards, if you have more than one PCI-1241/
1242/1261 card in one system, each of card need
to be set with a different card index. The index
range goes from 0 to 11.
VC&
PCI-
PCI-
VB
1241
1242
Yes
Yes
Yes
PCI-
Description
1261
Yes
Demonstrates how to set
motion's acceleration and
deceleration time (or steps)
59
Chapter 5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pci-1242

Table of Contents