Hi Wanrosli,
Does the width of the incoming string varies? can you keep that constant.
I tried the following workaround on my logger and it works
i saved the incoming string as character into CV and the value saved is numeric
Transmission :
DT80> 1serial("{Pull}")
1SERIAL: RxBuf=0[]
1SERIAL: OutputActions: "Pull"
1SERIAL: Tx [Pull]
1SERIAL 0 Stat
Receiving and Parsing :
DT80> 1SERIAL: RxBuf+4[Pull]
1serial("%4c[10CV]")
1SERIAL: RxBuf=4[Pull]
1SERIAL: InputAction: "%4c[10CV]"
1SERIAL: RxBuf-0[]
1SERIAL 0 State
DT80> 10cv
10CV 108.0
Another Example:
DT80> 10cv
10CV 0.0
DT80> 1serial("%4c[10CV]")
1SERIAL: RxBuf=4[Stop]
1SERIAL: InputAction: "%4c[10CV]"
1SERIAL: RxBuf-0[]
1SERIAL 0 State
DT80> 10cv
10CV 112.0
You can use the CV values in your If statements
Thanks
Regards
Lokesh
Hi Wanrosli,
Does the width of the incoming string varies? can you keep that constant.
I tried the following workaround on my logger and it works
i saved the incoming string as character into CV and the value saved is numeric
Transmission :
DT80> 1serial("{Pull}")
1SERIAL: RxBuf=0[]
1SERIAL: OutputActions: "Pull"
1SERIAL: Tx [Pull]
1SERIAL 0 Stat
Receiving and Parsing :
DT80> 1SERIAL: RxBuf+4[Pull]
1serial("%4c[10CV]")
1SERIAL: RxBuf=4[Pull]
1SERIAL: InputAction: "%4c[10CV]"
1SERIAL: RxBuf-0[]
1SERIAL 0 State
DT80> 10cv
10CV 108.0
Another Example:
DT80> 10cv
10CV 0.0
DT80> 1serial("%4c[10CV]")
1SERIAL: RxBuf=4[Stop]
1SERIAL: InputAction: "%4c[10CV]"
1SERIAL: RxBuf-0[]
1SERIAL 0 State
DT80> 10cv
10CV 112.0
You can use the CV values in your If statements
Thanks
Regards
Lokesh