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, "16")
	field(FTD, "LONG")
	field(NOD, "1")
	field(OUTA, "HAD:CTS:REG:0xa0c0 PP")
	field(OUTB, "HAD:CTS:REG:0xa0c1 PP")
	field(OUTC, "HAD:CTS:REG:0xa0c2 PP")
	field(OUTD, "HAD:CTS:REG:0xa0c3 PP")
	field(OUTE, "HAD:CTS:REG:0xa0c4 PP")
	field(OUTF, "HAD:CTS:REG:0xa0c5 PP")
	field(OUTG, "HAD:CTS:REG:0xa0c6 PP")
	field(OUTH, "HAD:CTS:REG:0xa0c7 PP")
	field(OUTI, "HAD:CTS:REG:0xa0c8 PP")
	field(OUTJ, "HAD:CTS:REG:0xa0c9 PP")
	field(OUTK, "HAD:CTS:REG:0xa0ca PP")
	field(OUTL, "HAD:CTS:REG:0xa0cb PP")
	field(OUTM, "HAD:CTS:REG:0xa0cc PP")
	field(OUTN, "HAD:CTS:REG:0xa0cd PP")
	field(OUTO, "HAD:CTS:REG:0xa0ce PP")
	field(OUTP, "HAD:CTS:REG:0xa0cf 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(FTVI, "LONG")
	field(FTVJ, "LONG")
	field(FTVK, "LONG")
	field(FTVL, "LONG")
	field(FTVM, "LONG")
	field(FTVN, "LONG")
	field(FTVO, "LONG")
	field(FTVP, "LONG")
	field(NOVA, "1")
	field(FLNK, "HAD:CTS:$(NAM):Read2")
}
record(aSub, "HAD:CTS:$(NAM):Read2")
{
	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, "16")
	field(FTC, "LONG")
	field(NOC, "1")
	field(INPD, "16")
	field(FTD, "LONG")
	field(NOD, "1")
	field(OUTA, "HAD:CTS:REG:0xa0d0 PP")
	field(OUTB, "HAD:CTS:REG:0xa0d1 PP")
	field(OUTC, "HAD:CTS:REG:0xa0d2 PP")
	field(OUTD, "HAD:CTS:REG:0xa0d3 PP")
	field(OUTE, "HAD:CTS:REG:0xa0d4 PP")
	field(OUTF, "HAD:CTS:REG:0xa0d5 PP")
	field(OUTG, "HAD:CTS:REG:0xa0d6 PP")
	field(OUTH, "HAD:CTS:REG:0xa0d7 PP")
	field(OUTI, "HAD:CTS:REG:0xa0d8 PP")
	field(OUTJ, "HAD:CTS:REG:0xa0d9 PP")
	field(OUTK, "HAD:CTS:REG:0xa0da PP")
	field(OUTL, "HAD:CTS:REG:0xa0db PP")
	field(OUTM, "HAD:CTS:REG:0xa0dc PP")
	field(OUTN, "HAD:CTS:REG:0xa0dd PP")
	field(OUTO, "HAD:CTS:REG:0xa0de PP")
	field(OUTP, "HAD:CTS:REG:0xa0df 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(FTVI, "LONG")
	field(FTVJ, "LONG")
	field(FTVK, "LONG")
	field(FTVL, "LONG")
	field(FTVM, "LONG")
	field(FTVN, "LONG")
	field(FTVO, "LONG")
	field(FTVP, "LONG")
	field(NOVA, "1")
	field(FLNK, "HAD:CTS:$(NAM):Read3")
}
record(aSub, "HAD:CTS:$(NAM):Read3")
{
	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, "32")
	field(FTC, "LONG")
	field(NOC, "1")
	field(INPD, "16")
	field(FTD, "LONG")
	field(NOD, "1")
	field(OUTA, "HAD:CTS:REG:0xa0e0 PP")
	field(OUTB, "HAD:CTS:REG:0xa0e1 PP")
	field(OUTC, "HAD:CTS:REG:0xa0e2 PP")
	field(OUTD, "HAD:CTS:REG:0xa0e3 PP")
	field(OUTE, "HAD:CTS:REG:0xa0e4 PP")
	field(OUTF, "HAD:CTS:REG:0xa0e5 PP")
	field(OUTG, "HAD:CTS:REG:0xa0e6 PP")
	field(OUTH, "HAD:CTS:REG:0xa0e7 PP")
	field(OUTI, "HAD:CTS:REG:0xa0e8 PP")
	field(OUTJ, "HAD:CTS:REG:0xa0e9 PP")
	field(OUTK, "HAD:CTS:REG:0xa0ea PP")
	field(OUTL, "HAD:CTS:REG:0xa0eb PP")
	field(OUTM, "HAD:CTS:REG:0xa0ec PP")
	field(OUTN, "HAD:CTS:REG:0xa0ed PP")
	field(OUTO, "HAD:CTS:REG:0xa0ee PP")
	field(OUTP, "HAD:CTS:REG:0xa0ef 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(FTVI, "LONG")
	field(FTVJ, "LONG")
	field(FTVK, "LONG")
	field(FTVL, "LONG")
	field(FTVM, "LONG")
	field(FTVN, "LONG")
	field(FTVO, "LONG")
	field(FTVP, "LONG")
	field(NOVA, "1")
}
