record(aSub, "HAD:CTS:$(NAM):Read")
{
	field(DESC, "Read trbnet Register multiple")
	field(SCAN,"1 second")
#	field(SCAN,"Passive")
	field(INAM,"mytrbInit")
	field(SNAM,"mytrbReadMem")
	field(INPA, "0x0003")
	field(FTA, "LONG")
	field(NOA, "1")
	field(INPB, "$(NN)")
	field(FTB, "LONG")
	field(NOB, "1")
	field(INPC, "$(MM)")
	field(FTC, "LONG")
	field(NOC, "1")
	field(INPD, "0")
	field(FTD, "LONG")
	field(NOD, "1")
	field(OUTA, "HAD:CTS:$(NAM):Array PP")
	field(FTVA, "LONG")
	field(NOVA, "$(MM)")
	field(FLNK, "HAD:CTS:$(NAM):Read1")
}
record(waveform, "HAD:CTS:$(NAM):Array")
{
	field(DESC, "Addr")
	field(SCAN,"Passive")
	field(INP, "0")
	field(NELM, "$(MM)")
	field(FTVL, "LONG")
}
record(aSub, "HAD:CTS:$(NAM):Read1")
{
	field(DESC, "Read trbnet Register multiple")
	field(SCAN,"Passive")
	field(INAM,"scalerN_init")
	field(SNAM,"scalerN_copy")
	field(INPA, "HAD:CTS:$(NAM):Array")
	field(FTA, "LONG")
	field(NOA, "$(MM)")
	field(INPC, "0")
	field(FTC, "LONG")
	field(NOC, "1")
	field(INPD, "8")
	field(FTD, "LONG")
	field(NOD, "1")
	field(OUTA, "HAD:CTS:REG:0xa000 PP")
	field(OUTB, "HAD:CTS:REG:0xa001 PP")
	field(OUTC, "HAD:CTS:REG:0xa002 PP")
	field(OUTD, "HAD:CTS:REG:0xa003 PP")
	field(OUTE, "HAD:CTS:REG:0xa004 PP")
	field(OUTF, "HAD:CTS:REG:0xa005 PP")
	field(OUTG, "HAD:CTS:REG:0xa006 PP")
	field(OUTH, "HAD:CTS:REG:0xa007 PP")
	field(FTVA, "LONG")
	field(FTVB, "LONG")
	field(FTVC, "LONG")
	field(FTVD, "LONG")
	field(FTVE, "LONG")
	field(FTVF, "LONG")
	field(FTVG, "LONG")
	field(FTVH, "LONG")
	field(NOVA, "1")
}
