Skip to content

Commit 39759ee

Browse files
Add local NWPRTXPS changes frm CRISP
1 parent 21a4642 commit 39759ee

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

NWPRTXPS/NWPRTXPS-IOC-01App/Db/motor.substitutions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
file $(MOTOR)/motorApp/Db/basic_asyn_motor.db {
22
pattern {P, M, ADDR, DTYP, PORT, DESC, EGU, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, ERES, PREC, DHLM, DLLM, INIT, DIR}
3-
{"\$(P)", "\$(M)", 0, "asynMotor", "\$(XPS_PORT)", "DESC", "mm", "100", "0", "1", 0, 1, 0, "\$(MRES)", "\$(ERES)", 3, "360", "0", "", "Pos"}
3+
{"\$(P)", "\$(M)", 0, "asynMotor", "\$(XPS_PORT)\$(CARD)", "DESC", "mm", "100", "0", "1", 0, 1, 0, "\$(MRES)", "\$(ERES)", 3, "360", "0", "", "Pos"}
44
}
55

66
file "$(MOTOR)/db/XPS_extra.db"{

NWPRTXPS/iocBoot/iocNWPRTXPS-IOC-01/config.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
<macro name="AXIS1_ID" pattern="^.*[.].*$" description="The ID of the axis as set in the controller, looks like Group1.Axis1. Leave blank for no axis (default: )" defaultValue="" hasDefault="YES" />
1212
<macro name="AXIS2_ID" pattern="^.*[.].*$" description="The ID of the axis as set in the controller, looks like Group1.Axis1. Leave blank for no axis (default: )" defaultValue="" hasDefault="YES" />
13-
<macro name="AXIS3_ID" pattern="^.*[.].*$" description="The ID of the axis as set in the controller, looks like Group1.Axis1. Leave blank for no axis (default: )" defaultValue="" hasDefault="YES" />
14-
<macro name="AXIS4_ID" pattern="^.*[.].*$" description="The ID of the axis as set in the controller, looks like Group1.Axis1. Leave blank for no axis (default: )" defaultValue="" hasDefault="YES" />
1513

1614
</macros>
1715
<pvsets>

NWPRTXPS/iocBoot/iocNWPRTXPS-IOC-01/st-common.cmd

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ $(IFSIM) drvAsynSerialPortConfigure("$(XPS_PORT)", "NUL", 0, 1)
2424
$(IFSIM) motorSimCreateController("motorSim", $(NAXES))
2525
$(IFSIM) epicsEnvSet("SIMSFX","Sim")
2626

27-
$(IFNOTSIM) XPSSetup(1)
27+
$(IFNOTSIM) XPSSetup(2)
2828
$(IFNOTSIM) XPSConfig(0, "$(IP_ADDRESS)", $(IP_PORT), $(NAXES), $(MOVING_POLL), $(IDLE_POLL))
29-
$(IFNOTSIM) drvAsynMotorConfigure("$(XPS_PORT)", "motorXPS", 0, 1)
30-
$(IFNOTSIM) XPSInterpose("$(XPS_PORT)")
29+
$(IFNOTSIM) XPSConfig(1, "$(IP_ADDRESS)", $(IP_PORT), $(NAXES), $(MOVING_POLL), $(IDLE_POLL))
30+
$(IFNOTSIM) drvAsynMotorConfigure("$(XPS_PORT)00", "motorXPS", 0, 1)
31+
$(IFNOTSIM) drvAsynMotorConfigure("$(XPS_PORT)01", "motorXPS", 1, 1)
32+
$(IFNOTSIM) XPSInterpose("$(XPS_PORT)00")
33+
$(IFNOTSIM) XPSInterpose("$(XPS_PORT)01")
3134

3235
iocshCmdLoop("< st-axes.cmd", "MN=\$(I)", "I", 1, 4)
3336

@@ -46,6 +49,10 @@ dbLoadRecords("$(MOTOR)/db/motorUtil.db","P=$(MYPVPREFIX)$(IOCNAME):,$(IFIOC)= ,
4649

4750
## per controller PVs
4851
dbLoadRecords("$(MOTOR)/db/motorController.db","P=$(MYPVPREFIX),Q=MOT:MTR$(MTRCTRL):")
52+
#asynSetTraceIOMask("$(XPS_PORT)00", -1, 0x2)
53+
#asynSetTraceMask("$(XPS_PORT)00", -1, 0x9)
54+
#asynSetTraceIOMask("$(XPS_PORT)01", -1, 0x2)
55+
#asynSetTraceMask("$(XPS_PORT)01", -1, 0x9)
4956

5057
iocInit()
5158

NWPRTXPS/iocBoot/iocNWPRTXPS-IOC-01/st-motor.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ $(IFSIM) motorSimConfigAxis("motorSim", $(CARD), 200, -200, -200, 0)
1313
dcalc("ERES", "1.0/$(STEP_NUM)", 1, 12)
1414
dcalc("MRES", "1.0/$(STEP_NUM)", 1, 12)
1515

16-
dbLoadRecords("$(TOP)/db/motor$(SIMSFX=).db", "P=$(MYPVPREFIX),M=$(AMOTORPV),XPS_PORT=$(XPS_PORT),MRES=$(MRES),ERES=$(ERES),CARD=$(CARD)")
16+
dbLoadRecords("$(TOP)/db/motor$(SIMSFX=).db", "P=$(MYPVPREFIX),M=$(AMOTORPV),XPS_PORT=$(XPS_PORT)$(CARD),MRES=$(MRES),ERES=$(ERES),CARD=$(CARD)")
1717
dbLoadRecords("$(MOTOR)/db/motorStatus.db", "P=$(MYPVPREFIX),M=$(AMOTORPV),IOCNAME=$(IOCNAME)")

0 commit comments

Comments
 (0)