default integer

This commit is contained in:
2026-04-28 14:51:29 +02:00
commit 6781153fb2
6 changed files with 63 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
record(longout, "$(DEVICE)_command_$(PARAMETER_NAME)_$(PARAMETER_ID)") {
field(DTYP, "stream")
field(PINI, "NO")
field(OUT, "@ePowerSwitch.proto command($(PARAMETER_ID)) $(PORT)")
}
+5
View File
@@ -0,0 +1,5 @@
OutTerminator = "\r\n";
command {
out "GET /M0:O\$1=%{OFF|ON|RESTART}";
}
+4
View File
@@ -0,0 +1,4 @@
record(longout, "$(DEVICE)_config_$(PARAMETER_NAME)") {
field(VAL, "$(VALUE)")
}
+10
View File
@@ -0,0 +1,10 @@
require stream
epicsEnvSet("ASYN_PORT","myDriverPort")
drvAsynIPPortConfigure("$(ASYN_PORT)","127.0.0.1:55555 http", 0, 0, 0)
dbLoadTemplate("template8.substitutions", "PORT=$(ASYN_PORT)")
iocInit()
+16
View File
@@ -0,0 +1,16 @@
file ePowerSwitch.db
{
pattern
{ DEVICE, PARAMETER_NAME, PARAMETER_ID}
{ "ePowerSwitch", "outlet", 0 }
{ "ePowerSwitch", "outlet", 1 }
{ "ePowerSwitch", "outlet", 2 }
{ "ePowerSwitch", "outlet", 3 }
}
file ePowerSwitch_info.db
{
pattern
{DEVICE, PARAMETER_NAME, VALUE}
{ "ePowerSwitch", "maxOutlet", 4}
}
+20
View File
@@ -0,0 +1,20 @@
file ePowerSwitch.db
{
pattern
{ DEVICE, PARAMETER_NAME, PARAMETER_ID}
{ "ePowerSwitch", "outlet", 0 }
{ "ePowerSwitch", "outlet", 1 }
{ "ePowerSwitch", "outlet", 2 }
{ "ePowerSwitch", "outlet", 3 }
{ "ePowerSwitch", "outlet", 4 }
{ "ePowerSwitch", "outlet", 5 }
{ "ePowerSwitch", "outlet", 6 }
{ "ePowerSwitch", "outlet", 7 }
}
file ePowerSwitch_info.db
{
pattern
{DEVICE, PARAMETER_NAME, VALUE}
{ "ePowerSwitch", "maxOutlet", 8}
}