Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
epics-twincat-ads
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
epics-modules
epics-twincat-ads
Commits
96c5b37a
Commit
96c5b37a
authored
5 years ago
by
Anders Sandström
Browse files
Options
Downloads
Patches
Plain Diff
Update example startup scripts
parent
4f7518da
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
startup/adsMotorRecord.cmd
+5
-3
5 additions, 3 deletions
startup/adsMotorRecord.cmd
startup/adsOnlyIO.cmd
+4
-2
4 additions, 2 deletions
startup/adsOnlyIO.cmd
with
9 additions
and
5 deletions
startup/ads
Axis
Record.cmd
→
startup/ads
Motor
Record.cmd
+
5
−
3
View file @
96c5b37a
require
axis
,
10
.1.5
require
ads
,
anderssandstrom
require
ads
,
develop
require
stream
,
2
.8.10
require
EthercatMC
3
.0.0
##############################################################################
#
Demo
file
to
run
one
motor
record
axis
(
or
actually
axis
record
)
.
...
...
@@ -26,9 +27,10 @@ require ads,anderssandstrom
#
9
.
max
delay
time
ms
(
buffer
time
in
plc
)
:
1000
#
10
.
ADS
command
timeout
in
ms
:
1000
#
11
.
default
time
source
(
PLC
=
0
,
EPICS
=
1
)
:
0
(
PLC
)
NOTE
:
record
TSE
field
need
to
be
set
to
-
2
for
timestamp
in
asyn
(
"field(TSE, -2)"
)
adsAsynPortDriverConfigure
(
"ADS_1"
,
"192.168.88.44"
,
"192.168.88.44.1.1"
,
851
,
1000
,
0
,
0
,
50
,
100
,
1000
,
0
)
epicsEnvSet
(
STREAM_PROTOCOL_PATH
,
$
{
ads_DB
}
asynOctetSetOutputEos
(
"ADS_1"
,
-
1
,
"\n"
)
asynOctetSetInputEos
(
"ADS_1"
,
-
1
,
"\n"
)
asynSetTraceMask
(
"ADS_1"
,
-
1
,
0x41
)
...
...
This diff is collapsed.
Click to expand it.
startup/adsOnlyIO.cmd
+
4
−
2
View file @
96c5b37a
require
ads
,
anderssandstrom
require
ads
,
develop
require
stream
,
2
.8.10
##############################################################################
#
Demo
file
to
link
an
EPICS
IOC
with
some
I
/O
in
a
TwinCAT
plc
...
...
@@ -22,9 +23,10 @@ require ads,anderssandstrom
#
9
.
max
delay
time
ms
(
buffer
time
in
plc
)
:
1000
#
10
.
ADS
command
timeout
in
ms
:
1000
#
11
.
default
time
source
(
PLC
=
0
,
EPICS
=
1
)
:
0
(
PLC
)
NOTE
:
record
TSE
field
need
to
be
set
to
-
2
for
timestamp
in
asyn
(
"field(TSE, -2)"
)
adsAsynPortDriverConfigure
(
"ADS_1"
,
"192.168.88.44"
,
"192.168.88.44.1.1"
,
851
,
1000
,
0
,
0
,
50
,
100
,
1000
,
0
)
epicsEnvSet
(
STREAM_PROTOCOL_PATH
,
$
{
ads_DB
}
asynOctetSetOutputEos
(
"ADS_1"
,
-
1
,
"\n"
)
asynOctetSetInputEos
(
"ADS_1"
,
-
1
,
"\n"
)
asynSetTraceMask
(
"ADS_1"
,
-
1
,
0x41
)
...
...
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