Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E-727 and Closed Loop Control commands #10

Merged
merged 2 commits into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions iocs/pigcs2IOC/iocBoot/iocPIGCS2/PI_GCS2 _CL.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# PI GCS2 support with Closed loop params

dbLoadTemplate("PI_GCS2.substitutions")

drvAsynIPPortConfigure("C867_ETH","192.168.1.75:50000",0,0,0)
# Turn on asyn trace
asynSetTraceMask("C867_ETH",0,3)
asynSetTraceIOMask("C867_ETH",0,1)

# PI_GCS2_CreateController(portName, asynPort, numAxes, priority, stackSize, movingPollingRate, idlePollingRate)
PI_GCS2_CreateController("C867", "C867_ETH",2, 0,0, 100, 1000)

# Turn off asyn trace
asynSetTraceMask("C867_ETH",0,1)
asynSetTraceIOMask("C867_ETH",0,0)

#!dbLoadRecords("$(TOP)/db/PI_Support.db","P=pigcs2:,R=m1:,PORT=C867,ADDR=0,TIMEOUT=1")
#!dbLoadRecords("$(TOP)/db/PI_Support.db","P=pigcs2:,R=m2:,PORT=C867,ADDR=1,TIMEOUT=1")
dbLoadRecords("$(TOP)/db/PI_SupportCL.db","P=pigcs2:,PORT=C867_ETH")

# asyn record for troubleshooting
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=pigcs2:,R=asyn_1,PORT=C867_ETH,ADDR=0,OMAX=256,IMAX=256")
1 change: 1 addition & 0 deletions pigcs2App/Db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ include $(TOP)/configure/CONFIG

DB += PI_SupportCtrl.db
DB += PI_Support.db
DB += PI_SupportCL.db

#----------------------------------------------------
# If <anyname>.db template is not named <anyname>*.template add
Expand Down
Loading