Hi Richard,
For statements that use square brackets for the parameters, like HSERIN ... The array elements must use Round brackets. Otherwise PBP gets a bit confused.
And the 13,10 on the end isn't needed. They'll be ignored on the next WAIT.
Or, you could do it this way. Not better, just different ...Code:HSerIn Timeout,Receive,[WAIT(":"),DEC2 BufRX(0),DEC2 BufRX(1),DEC2 BufRX(2), _ DEC2 BufRX(3),DEC2 BufRX(4),DEC2 BufRX(5)]Code:FieldCount VAR byte HSerIn Timeout,Receive,[WAIT(":")] For FieldCount = 0 to 5 HSerIn Timeout,Receive,[DEC2 BufRX(FieldCount)] Next FieldCount




Bookmarks