Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxx-R6-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
synApps_6_1_Working
xxx-R6-1
Commits
7c235afe
Commit
7c235afe
authored
9 years ago
by
mooney
Browse files
Options
Downloads
Plain Diff
Merge pull request #1 from rsluiter/MAXvIRQ1
Update MAXv IRQ and limit commands
parents
46c4bf12
43884050
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iocBoot/iocvxWorks/vme.cmd
+20
-10
20 additions, 10 deletions
iocBoot/iocvxWorks/vme.cmd
with
20 additions
and
10 deletions
iocBoot/iocvxWorks/vme.cmd
+
20
−
10
View file @
7c235afe
...
@@ -20,26 +20,36 @@
...
@@ -20,26 +20,36 @@
#
(
2
)
VME
Address
Type
(
16
,
24
,
32
)
.
#
(
2
)
VME
Address
Type
(
16
,
24
,
32
)
.
#
(
3
)
Base
Address
on
4
K
(
0x1000
)
boundary
.
#
(
3
)
Base
Address
on
4
K
(
0x1000
)
boundary
.
#
(
4
)
interrupt
vector
(
0
=
disable
or
64
-
255
)
.
#
(
4
)
interrupt
vector
(
0
=
disable
or
64
-
255
)
.
#
(
5
)
interrupt
level
(
1
-
6
)
.
#
(
5
)
interrupt
level
(
2
-
6
)
.
#
(
6
)
motor
task
polling
rate
(
min
=
1
Hz
,
max
=
60
Hz
)
.
#
(
6
)
motor
task
polling
rate
(
min
=
1
Hz
,
max
=
60
Hz
)
.
#drvMAXvdebug
=
4
#drvMAXvdebug
=
4
MAXvSetup
(
2
,
16
,
0xE000
,
180
,
5
,
10
)
MAXvSetup
(
2
,
16
,
0xE000
,
180
,
5
,
10
)
#
OMS
MAXv
configuration
string
:
#
OMS
MAXv
configuration
string
:
#
(
1
)
number
of
card
being
configured
(
0
-
14
)
.
#
(
1
)
number
of
card
being
configured
(
0
-
14
)
.
#
(
2
)
configuration
string
;
axis
type
(
PSO
/PSE/PSM
)
MUST
be
set
here
.
#
(
2
)
configuration
string
;
axis
type
(
PSO
/PSE/PSM
)
MUST
be
set
here
.
#
For
example
,
set
which
TTL
signal
level
defines
#
For
example
,
set
which
TTL
signal
level
defines
an
active
limit
#
an
active
limit
switch
.
Set
X
,
Y
,
Z
,
T
to
active
low
and
set
U
,
V
,
R
,
S
#
switch
.
The
"config"
example
below
sets
X
,
Y
,
Z
,
T
to
active
low
(
LTL
),
#
to
active
high
.
Set
all
axes
to
open
-loop
stepper
(
PSO
)
.
See
MAXv
#
sets
U
,
V
,
R
,
S
to
active
high
(
LTH
)
and
sets
all
axes
to
open
-loop
#
User
's Manual for LL/LH and PSO/PSE/PSM commands.
#
stepper
(
PSO
)
.
See
MAXv
User
's Manual for LTL/LTH and PSO/PSE/PSM
# commands.
#config="AX LTL PSO; AY LTL PSO; AZ LTL PSO; AT LTL PSO; AU LTH PSO; AV LTH PSO; AR LTH PSO; AS LTH PSO;"
# (3) SSI based absolute encoder bit flag. Bit #0 for Axis X, bit #1 for
# (3) SSI based absolute encoder bit flag. Bit #0 for Axis X, bit #1 for
# Axis Y, etc.. Set a bit flag to '
1
' for absolute encoder values; '
0
'
# Axis Y, etc.. Set a bit flag to '
1
' for absolute encoder values; '
0
'
# for the standard incremental encoder values.
# for the standard incremental encoder values.
#config0="AX LL PSO; AY LL PSO; AZ LL PSO; AT LL PSO; AU LH PSO; AV LH PSO; AR LH PSO; AS LH PSO;"
# (4) SSI based absolute encoder grey code flags (0/1 - yes/no, 0x12 -> UY)
str0 = malloc(200); str1 = malloc(200);
# Set Limit Mode to "Hard Limit Mode" for all axes.
strcpy str0, "AA; LMH,H,H,H,H,H,H,H;"; strcpy str1, str0
strcat str0, "AX LTH PSO; AY LTH PSO; AZ LTL PSO; AT LTL PSO; AU LTL PSO; AV LTL PSO; AR LTL PSO; AS LTL PSO;"
MAXvConfig(0, str0, 0, 0)
strcat str1, "AX LTL PSE; AY LTL PSE; AZ LTL PSE; AT LTL PSO; AU LTL PSO; AV LTL PSO; AR LTL PSO; AS LTL PSO;"
MAXvConfig(1, str1, 0, 0)
free(str0); free(str1)
config0="AX LL PSO; AY LL PSO; AZ LL PSO; AT LL PSO; AU LL PSO; AV LL PSO; AR LL PSO; AS LL PSO;"
MAXvConfig(0, config0, 0x00)
MAXvConfig(1, config0, 0x00)
### Scalers: Joerger VSC8/16
### Scalers: Joerger VSC8/16
#dbLoadRecords("$(STD)/stdApp/Db/scaler.db","P=xxx:,S=scaler2,OUT=#C1 S0 @,DTYP=Joerger VSC8/16,FREQ=10000000")
#dbLoadRecords("$(STD)/stdApp/Db/scaler.db","P=xxx:,S=scaler2,OUT=#C1 S0 @,DTYP=Joerger VSC8/16,FREQ=10000000")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment