-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified the newfocus8742 example. Made it easier to copy to a diff…
…erent IOC.
- Loading branch information
Showing
5 changed files
with
35 additions
and
72 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
iocs/newFocusIOC/iocBoot/iocNewFocus/newfocus8742.asyn.motor.substitutions
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
iocs/newFocusIOC/iocBoot/iocNewFocus/newfocus8742.asyn.st.cmd.linux-x86
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
epicsEnvSet("PORT", "NF1") | ||
epicsEnvSet("IP_ADDR", "10.28.2.211") | ||
|
||
# Setup IP port for 8742 | ||
drvAsynIPPortConfigure("$(PORT)_ETH", "$(IP_ADDR):23") | ||
asynOctetSetInputEos("$(PORT)_ETH",0,"\r\n") | ||
asynOctetSetOutputEos("$(PORT)_ETH",0,"\r") | ||
|
||
#db asyn debug traces | ||
asynSetTraceMask("$(PORT)_ETH",-1,0x1) | ||
asynSetTraceIOMask("$(PORT)_ETH",-1,0x1) | ||
|
||
# New Focus Picomotor Network Controller (model 87xx) configuration parameters: | ||
# (1) Controller asyn port name (string) | ||
# (2) IP asyn port name (string) | ||
# (3) Number of axes | ||
# (4) Moving poll period (ms) | ||
# (5) Idle poll period (ms) | ||
nf874xCreateController("$(PORT)", "$(PORT)_ETH", 3, 200, 1000) | ||
|
||
## Load record instances | ||
dbLoadTemplate("newfocus8742.substitutions", "P=$(PREFIX),PORT=$(PORT)") | ||
|
||
dbLoadRecords("$(ASYN)/db/asynRecord.db", "P=$(PREFIX),R=asyn_1,PORT=$(PORT),ADDR=,OMAX=80,IMAX=80") |
8 changes: 8 additions & 0 deletions
8
iocs/newFocusIOC/iocBoot/iocNewFocus/newfocus8742.substitutions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
file "$(MOTOR)/db/asyn_motor.db" | ||
{ | ||
pattern | ||
{M, DTYP, ADDR, DESC, EGU, DIR, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT} | ||
{"m1", "asynMotor", 1, "m1", counts, Pos, 100, 25, 1, 0, 0, 50, 1, 0, 0, 0, ""} | ||
{"m2", "asynMotor", 2, "m2", counts, Pos, 100, 25, 1, 0, 0, 50, 1, 0, 0, 0, ""} | ||
{"m3", "asynMotor", 3, "m3", counts, Pos, 100, 25, 1, 0, 0, 50, 1, 0, 0, 0, ""} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters