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

6040 Pearl Pressure Controller #1

Merged
merged 12 commits into from
Oct 8, 2021
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
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
__pycache__/
*.py[cod]
*$py.class
/test-reports/

O.*/
/db
/bin
/dbd
/include
/lib
/templates
envPaths
cdCommands
dllPath.bat
runIOC.bat
runIOC.sh
relPaths.sh
.project
/data
.idea/
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
TOP = .
include $(TOP)/configure/CONFIG

DIRS += configure
DIRS += $(wildcard *Sup)
DIRS += $(wildcard *App)
DIRS += $(wildcard *Top)
DIRS += $(wildcard iocBoot)

# The build order is controlled by these dependency rules:

# All dirs except configure depend on configure
$(foreach dir, $(filter-out configure, $(DIRS)), \
$(eval $(dir)_DEPEND_DIRS += configure))

# Any *App dirs depend on all *Sup dirs
$(foreach dir, $(filter %App, $(DIRS)), \
$(eval $(dir)_DEPEND_DIRS += $(filter %Sup, $(DIRS))))

# Any *Top dirs depend on all *Sup and *App dirs
$(foreach dir, $(filter %Top, $(DIRS)), \
$(eval $(dir)_DEPEND_DIRS += $(filter %Sup %App, $(DIRS))))

# iocBoot depends on all *App dirs
iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS))

# Add any additional dependency rules here:

include $(TOP)/configure/RULES_TOP

ioctests:
.\system_tests\run_tests.bat
11 changes: 11 additions & 0 deletions PearlPCSup/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
TOP=..
include $(TOP)/configure/CONFIG
#=======================================

# Install .dbd and .db files
DATA += PearlPC.proto

DB += devPearl.db

#=======================================
include $(TOP)/configure/RULES
93 changes: 93 additions & 0 deletions PearlPCSup/PearlPC.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
OutTerminator = "\r\n";
InTerminator = "\r\r\n";

ReplyTimeout = 2000;

get_st {
out "st";
in "%(\$1.A)d %(\$1.B)d %(\$1.C)d %(\$1.D)d %(\$1.E)d %(\$1.F)d %(\$1.G)d %(\$1.H)d %(\$1.I)d %(\$1.J)d %(\$1.K)d %(\$2.A)d %(\$2.B)d %(\$2.C)d %(\$2.D)d";
}

get_st_array {
out "st";
in "%d";
}

set_ra{
out "ra%#04d"
}

set_mx{
out "mx%#04d"
}

set_mn{
out "mn%#04d"
}

set_sp{
out "sp%#04d"
}

set_sf{
out "sf%#04d"
}

set_si{
out "si%#04d"
}

set_sd{
out "sd%#04d"
}

set_sloop{
out "sloop%#01d"
}

set_by{
out "By%#01d"
}

set_ru{
out "Ru%#01d"
}

set_re{
out "Re%#01d"
}

set_St{
out "St%#01d"
}

set_EM{
out "Em%#01d"
}

set_ER{
out "Er%#01d"
}

set_AM{
out "AM%#01d"
}

set_GO{
out "GO%d"
}

get_id {
ExtraInput = Ignore;
out "id";
in "%/[0-9]{4} [0-9]{4}/";
}

set_reset_pistons {
out "reset%#01d"
}

get_piston_status {
out "reset";
in "%/[0-1]{1}";
}
Loading