Skip to content
Snippets Groups Projects
Commit 629d181b authored by Marco Filho's avatar Marco Filho
Browse files

Add bo record to set every ST channel all at once.

Before this, you would need to put array of values into ST-S.
Now you can simply put 1 or 0 into AllST-S and it will set all channels.

OOPT "on change" field is needed because for some reason without it even
if you put PINI=NO in all these three ST-S records, it processes on IOC
initialization, which I don't think is desired.
parent 95201d33
No related branches found
No related tags found
2 merge requests!4Add arrays to set channels,!3Add ST channel setting records
where_am_I := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
include $(E3_REQUIRE_TOOLS)/driver.makefile
REQUIRED += calc
APP:=vmmTblApp
APPDB:=$(APP)/Db
APPSRC:=$(APP)/src
......
......@@ -46,3 +46,16 @@ record(aao, "$(P)$(R)Hyb$(HYB)ST-S"){
field(OUT, "@asyn($(PORT),$(ADDR),$(TIMEOUT))HYB_ST0_SETTER")
}
record(bo, "$(P)$(R)Hyb$(HYB)AllST-S") {
field(DESC, "Set all ST channels")
field(VAL, "0")
}
record(acalcout, "$(P)$(R)Hyb$(HYB)#AllST-S") {
field(NELM, "64")
field(CALC, "A=1?1:0")
field(OOPT, "On Change")
field(INPA, "$(P)$(R)Hyb$(HYB)AllST-S CPP")
field(INAA, "$(P)$(R)Hyb$(HYB)ST-S")
field(OUT, "$(P)$(R)Hyb$(HYB)ST-S PP")
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment