record(aSub, "$(PRE)Read0")
{
	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, "0xa008")
	field(FTB, "LONG")
	field(NOB, "1")
	field(INPC, "74")
	field(FTC, "LONG")
	field(NOC, "1")
	field(INPD, "0")
	field(FTD, "LONG")
	field(NOD, "1")
	field(OUTA, "$(PRE)Scalerarray PP")
	field(FTVA, "LONG")
	field(NOVA, "74")
	field(FLNK, "$(PRE)Read1")
}
record(waveform, "$(PRE)Scalerarray")
{
	field(DESC, "Addr")
	field(SCAN,"Passive")
	field(INP, "0")
	field(NELM, "74")
	field(FTVL, "LONG")
}
record(aSub, "$(PRE)Read1")
{
	field(DESC, "Read trbnet Register multiple")
	field(SCAN,"Passive")
	field(INAM,"scalerN_init")
	field(SNAM,"scalerN_copy")
	field(INPA, "$(PRE)Scalerarray")
	field(FTA, "LONG")
	field(NOA, "74")
	field(INPC, "0")
	field(FTC, "LONG")
	field(NOC, "1")
	field(INPD, "18")
	field(FTD, "LONG")
	field(NOD, "1")
	field(OUTA, "$(PRE)I:0 PP")
	field(OUTB, "$(PRE)I:1 PP")
	field(OUTC, "$(PRE)I:2 PP")
	field(OUTD, "$(PRE)I:3 PP")
	field(OUTE, "$(PRE)I:4 PP")
	field(OUTF, "$(PRE)I:5 PP")
	field(OUTG, "$(PRE)I:6 PP")
	field(OUTH, "$(PRE)I:7 PP")
	field(OUTI, "$(PRE)I:8 PP")
	field(OUTJ, "$(PRE)I:9 PP")
	field(OUTK, "$(PRE)I:10 PP")
	field(OUTL, "$(PRE)I:11 PP")
	field(OUTM, "$(PRE)I:12 PP")
	field(OUTN, "$(PRE)I:13 PP")
	field(OUTO, "$(PRE)I:14 PP")
	field(OUTP, "$(PRE)I:15 PP")
	field(OUTQ, "$(PRE)I:16 PP")
	field(OUTR, "$(PRE)I:17 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(FTVQ, "LONG")
	field(FTVR, "LONG")
	field(NOVA, "1")
	field(FLNK, "$(PRE)Read2")
}
record(aSub, "$(PRE)Read2")
{
	field(DESC, "Read trbnet Register multiple")
	field(SCAN,"Passive")
	field(INAM,"scalerN_init")
	field(SNAM,"scalerN_copy")
	field(INPA, "$(PRE)Scalerarray")
	field(FTA, "LONG")
	field(NOA, "74")
	field(INPC, "18")
	field(FTC, "LONG")
	field(NOC, "1")
	field(INPD, "18")
	field(FTD, "LONG")
	field(NOD, "1")
	field(OUTA, "$(PRE)I:18 PP")
	field(OUTB, "$(PRE)I:19 PP")
	field(OUTC, "$(PRE)I:20 PP")
	field(OUTD, "$(PRE)I:21 PP")
	field(OUTE, "$(PRE)I:22 PP")
	field(OUTF, "$(PRE)I:23 PP")
	field(OUTG, "$(PRE)I:24 PP")
	field(OUTH, "$(PRE)I:25 PP")
	field(OUTI, "$(PRE)I:26 PP")
	field(OUTJ, "$(PRE)I:27 PP")
	field(OUTK, "$(PRE)I:28 PP")
	field(OUTL, "$(PRE)I:29 PP")
	field(OUTM, "$(PRE)I:30 PP")
	field(OUTN, "$(PRE)I:31 PP")
	field(OUTO, "$(PRE)I:32 PP")
	field(OUTP, "$(PRE)I:33 PP")
	field(OUTQ, "$(PRE)I:34 PP")
	field(OUTR, "$(PRE)I:35 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(FTVQ, "LONG")
	field(FTVR, "LONG")
	field(NOVA, "1")
	field(FLNK, "$(PRE)Read3")
}
record(aSub, "$(PRE)Read3")
{
	field(DESC, "Read trbnet Register multiple")
	field(SCAN,"Passive")
	field(INAM,"scalerN_init")
	field(SNAM,"scalerN_copy")
	field(INPA, "$(PRE)Scalerarray")
	field(FTA, "LONG")
	field(NOA, "74")
	field(INPC, "36")
	field(FTC, "LONG")
	field(NOC, "1")
	field(INPD, "19")
	field(FTD, "LONG")
	field(NOD, "1")
	field(OUTA, "$(PRE)D:0 PP")
	field(OUTB, "$(PRE)D:1 PP")
	field(OUTC, "$(PRE)D:2 PP")
	field(OUTD, "$(PRE)D:3 PP")
	field(OUTE, "$(PRE)D:4 PP")
	field(OUTF, "$(PRE)D:5 PP")
	field(OUTG, "$(PRE)D:6 PP")
	field(OUTH, "$(PRE)D:7 PP")
	field(OUTI, "$(PRE)D:8 PP")
	field(OUTJ, "$(PRE)D:9 PP")
	field(OUTK, "$(PRE)D:10 PP")
	field(OUTL, "$(PRE)D:11 PP")
	field(OUTM, "$(PRE)D:12 PP")
	field(OUTN, "$(PRE)D:13 PP")
	field(OUTO, "$(PRE)D:14 PP")
	field(OUTP, "$(PRE)D:15 PP")
	field(OUTQ, "$(PRE)D:16 PP")
	field(OUTR, "$(PRE)D:17 PP")
	field(OUTS, "$(PRE)D:18 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(FTVQ, "LONG")
	field(FTVR, "LONG")
	field(FTVS, "LONG")
	field(NOVA, "1")
	field(FLNK, "$(PRE)Read4")
}
record(aSub, "$(PRE)Read4")
{
	field(DESC, "Read trbnet Register multiple")
	field(SCAN,"Passive")
	field(INAM,"scalerN_init")
	field(SNAM,"scalerN_copy")
	field(INPA, "$(PRE)Scalerarray")
	field(FTA, "LONG")
	field(NOA, "74")
	field(INPC, "55")
	field(FTC, "LONG")
	field(NOC, "1")
	field(INPD, "19")
	field(FTD, "LONG")
	field(NOD, "1")
	field(OUTA, "$(PRE)A:0 PP")
	field(OUTB, "$(PRE)A:1 PP")
	field(OUTC, "$(PRE)A:2 PP")
	field(OUTD, "$(PRE)A:3 PP")
	field(OUTE, "$(PRE)A:4 PP")
	field(OUTF, "$(PRE)A:5 PP")
	field(OUTG, "$(PRE)A:6 PP")
	field(OUTH, "$(PRE)A:7 PP")
	field(OUTI, "$(PRE)A:8 PP")
	field(OUTJ, "$(PRE)A:9 PP")
	field(OUTK, "$(PRE)A:10 PP")
	field(OUTL, "$(PRE)A:11 PP")
	field(OUTM, "$(PRE)A:12 PP")
	field(OUTN, "$(PRE)A:13 PP")
	field(OUTO, "$(PRE)A:14 PP")
	field(OUTP, "$(PRE)A:15 PP")
	field(OUTQ, "$(PRE)A:16 PP")
	field(OUTR, "$(PRE)A:17 PP")
	field(OUTS, "$(PRE)A:18 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(FTVQ, "LONG")
	field(FTVR, "LONG")
	field(FTVS, "LONG")
	field(NOVA, "1")
}
