Hi all,
I met some little question about stream.
After I sent command, I received a sequence of character through stream.
The pv type was stringin and the value of the pv was 1(string) or 0(string).
My question was that, I need the pv value was natural number( 0 or 1 ), not string type.
I have tried to change the stringin to ai, some error came out. Then I think I could use the enum, but I could not know the usage though I tried.
Could someone give some help.
Thanks,
Li xing
My db and proto file.
---------------------------------------------------------------
record(stringin, "$(P)$(R)STAT")
{
field(DESC, "test")
field(DTYP, "stream")
field(INP, "@devplc2.proto STAT $(PORT) $(A)")
}
STAT{
out "\x0500FFBR2Y0000402F";
in "\x02%*4s%c%*c%*c%*c%*c%*c%*c%*c%*c%*c%*s";
}