Skip to content

Instantly share code, notes, and snippets.

@blaz-kranjc
Created October 26, 2017 13:50
Show Gist options
  • Save blaz-kranjc/2e26ff5b9747aa764bd6f640b3bdbd54 to your computer and use it in GitHub Desktop.
Save blaz-kranjc/2e26ff5b9747aa764bd6f640b3bdbd54 to your computer and use it in GitHub Desktop.
EPICS Heartbeat
##
# Provides heartbeat monitor
##
record(longout, "$(DEVICE):HB_TIMER") {
field(DESC, "Timer for heartbeat.")
field(SCAN, "1 second")
field(SDIS, "$(SWITCH)")
field(DISV, 0)
field(OUT, "$(DEVICE):HEART PP")
field(OMSL, "supervisory")
field(VAL, 1)
}
record(longin, "$(DEVICE):HEART") {
field(DESC, "Heartbeat monitor.")
field(FLNK, "$(DEVICE):HB_RESET")
field(VAL, 0)
}
record(calcout, "$(DEVICE):HB_RESET") {
field(DESC, "Reset heartbeat.")
field(SDIS, "$(DEVICE):HEART")
field(DISV, 0)
field(OUT, "$(DEVICE):HEART PP")
field(INPA, 0)
field(CALC, "A")
field(ODLY, 0.9)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment