#! Generated by VisualDCT v2.7.0
#! DBDSTART
#! DBDEND


# Connect a bi to a bo, so the wire state connected in one place shows up at an output in another place.
# NOTE: Current implementation will have a PV name conflict if you try to add more than one OUT to one IN.
#
# Macros:
#     IN_PV - The bi record that state comes from
#     OUT_PV - The bo record that is set
#     INVERT - Set to 1 to write inverted input to output, or to 0 (default)
record(calcout, "$(IN_PV)Wire") {
  field(PINI, "YES")
  field(INPA, "$(IN_PV) CP")
  field(INPB, "$(INVERT=0)")
  field(CALC, "B?!A:A")
  field(OUT, "$(OUT_PV) PP")
}

#! Further lines contain data used by VisualDCT
#! View(0,0,1.0)
#! Record("$(IN_PV)",20,20,0,0,"$(IN_PV)")
#! Field("$(IN_PV).VAL",16777215,0,"$(IN_PV).VAL")
#! Record("$(OUT_PV)",260,-35,0,0,"$(OUT_PV)")
#! Field("$(OUT_PV).DOL",16777215,0,"$(OUT_PV).DOL")
#! Link("$(OUT_PV).DOL","$(IN_PV).VAL")
#! Field("$(OUT_PV).OUT",16777215,1,"$(OUT_PV).OUT")
