Support Forums
A section of serial text is missing

Guys,

This is my RS232 9600 8n1 signal:

2008 10 03 15 53 56      0      0     -1 255 255   0   0   0   0   0 2119  -3  0   1   0   0   2912       6565     7  71  20   20  32  34  24
 1   -732    899 255 248  44  46
 2   5700  -1543 255 255  33  34
 3  -1167   1357 255 255  33  34
 4   -663    442 255 255  33  34
 5    256    266 255 255  32  33

Also my DT80 program:

BEGIN"SSdisp3"
DO{/n/c/u}
RA1SERIAL""
1SERIAL("%s[1$]\\013\\010",W) 1$
END

But the signal I received is receiving only 18 numbers in the first string instead of the full 31 numbers:

2008 10 03 15 53 56      0      0     -1 255 255   0   0   0   0   0 2119  -3  
 1   -732    899 255 248  44  46
 2   5700  -1543 255 255  33  34
 3  -1167   1357 255 255  33  34
 4   -663    442 255 255  33  34
 5    256    266 255 255  32  33

If I put P56=1 into the program like this:

BEGIN"SSdisp3"
DO{/n/c/u}
RA1SERIAL""
1SERIAL("%s[1$]\\013\\010",W) 1$
P56=1
END

This is the result i received for one whole input signal:

1SERIAL:   RxBuf+64[2008 10 03 15 49 46      0      0     -1 255 255   0   0   0   0]
1SERIAL:   Triggered schedule A
1SERIAL:   RxBuf=64[2008 10 03 15 49 46      0      0     -1 255 255   0   0   0   0]
1SERIAL: InputAction: "%s[1$]"
1SERIAL:   RxBuf-0[]
1SERIAL:   RxBuf+64[   0 2141  -3   0   1   0   0   2917       6572     6  71  20   ]
1SERIAL:   Triggered schedule A
1SERIAL:   RxBuf-48[0   1   0   0   2917       6572     6  71  20   ]
1SERIAL: InputAction: "\013"
1SERIAL:   RxBuf-0[]
1SERIAL:   RxBuf+64[20  33  33  24\013\010 1  -1609    605 255 255  44  46\013\010 2  -4938    6]
1SERIAL:   RxBuf-49[\010 1  -1609    605 255 255  44  46\013\010 2  -4938    6]
1SERIAL: InputAction: "\010"
1SERIAL:   RxBuf-48[ 1  -1609    605 255 255  44  46\013\010 2  -4938    6]
2008 10 03 15 49 46      0      0     -1 255 255   0   0   0   0   0 2141  -3   
1SERIAL:   RxBuf=48[ 1  -1609    605 255 255  44  46\013\010 2  -4938    6]
1SERIAL: InputAction: "%s[1$]"
1SERIAL:   RxBuf-16[\013\010 2  -4938    6]
1SERIAL: InputAction: "\013"
1SERIAL:   RxBuf-15[\010 2  -4938    6]
1SERIAL: InputAction: "\010"
1SERIAL:   RxBuf-14[ 2  -4938    6]
1SERIAL:   Triggered schedule A
 1  -1609    605 255 255  44  46
1SERIAL:   RxBuf=14[ 2  -4938    6]
1SERIAL: InputAction: "%s[1$]"
1SERIAL:   RxBuf-0[]
1SERIAL:   RxBuf+64[67 255 255  33  35\013\010 3    485    442 255 255  33  34\013\010 4   2690 ]
1SERIAL:   Triggered schedule A
1SERIAL:   RxBuf-46[\013\010 3    485    442 255 255  33  34\013\010 4   2690 ]
1SERIAL: InputAction: "\013"
1SERIAL:   RxBuf-45[\010 3    485    442 255 255  33  34\013\010 4   2690 ]
1SERIAL: InputAction: "\010"
1SERIAL:   RxBuf-44[ 3    485    442 255 255  33  34\013\010 4   2690 ]
 2  -4938    667 255 255  33  35
1SERIAL:   RxBuf=44[ 3    485    442 255 255  33  34\013\010 4   2690 ]
1SERIAL: InputAction: "%s[1$]"
1SERIAL:   RxBuf-12[\013\010 4   2690 ]
1SERIAL: InputAction: "\013"
1SERIAL:   RxBuf-11[\010 4   2690 ]
1SERIAL: InputAction: "\010"
1SERIAL:   RxBuf-10[ 4   2690 ]
1SERIAL:   Triggered schedule A
 3    485    442 255 255  33  34
1SERIAL:   RxBuf=10[ 4   2690 ]
1SERIAL:   RxBuf+68[ 4   2690    898 255 255  33  34\013\010 5   1171    578 255 255  33  34\013\010]
1SERIAL:   Triggered schedule A
1SERIAL: InputAction: "%s[1$]"
1SERIAL:   RxBuf-36[\013\010 5   1171    578 255 255  33  34\013\010]
1SERIAL: InputAction: "\013"
1SERIAL:   RxBuf-35[\010 5   1171    578 255 255  33  34\013\010]
1SERIAL: InputAction: "\010"
1SERIAL:   RxBuf-34[ 5   1171    578 255 255  33  34\013\010]
 4   2690    898 255 255  33  34
1SERIAL:   RxBuf=34[ 5   1171    578 255 255  33  34\013\010]
1SERIAL: InputAction: "%s[1$]"
1SERIAL:   RxBuf-2[\013\010]
1SERIAL: InputAction: "\013"
1SERIAL:   RxBuf-1[\010]
1SERIAL: InputAction: "\010"
1SERIAL:   RxBuf-0[]
 5   1171    578 255 255  33  34

What went wrong? Advance thanks!

orange

Guys, This is my RS232 9600 8n1 signal: ```` 2008 10 03 15 53 56 0 0 -1 255 255 0 0 0 0 0 2119 -3 0 1 0 0 2912 6565 7 71 20 20 32 34 24 1 -732 899 255 248 44 46 2 5700 -1543 255 255 33 34 3 -1167 1357 255 255 33 34 4 -663 442 255 255 33 34 5 256 266 255 255 32 33 ```` Also my DT80 program: ```` BEGIN"SSdisp3" DO{/n/c/u} RA1SERIAL"" 1SERIAL("%s[1$]\\013\\010",W) 1$ END ```` But the signal I received is receiving only 18 numbers in the first string instead of the full 31 numbers: ```` 2008 10 03 15 53 56 0 0 -1 255 255 0 0 0 0 0 2119 -3 1 -732 899 255 248 44 46 2 5700 -1543 255 255 33 34 3 -1167 1357 255 255 33 34 4 -663 442 255 255 33 34 5 256 266 255 255 32 33 ```` If I put P56=1 into the program like this: ```` BEGIN"SSdisp3" DO{/n/c/u} RA1SERIAL"" 1SERIAL("%s[1$]\\013\\010",W) 1$ P56=1 END ```` This is the result i received for one whole input signal: ```` 1SERIAL: RxBuf+64[2008 10 03 15 49 46 0 0 -1 255 255 0 0 0 0] 1SERIAL: Triggered schedule A 1SERIAL: RxBuf=64[2008 10 03 15 49 46 0 0 -1 255 255 0 0 0 0] 1SERIAL: InputAction: "%s[1$]" 1SERIAL: RxBuf-0[] 1SERIAL: RxBuf+64[ 0 2141 -3 0 1 0 0 2917 6572 6 71 20 ] 1SERIAL: Triggered schedule A 1SERIAL: RxBuf-48[0 1 0 0 2917 6572 6 71 20 ] 1SERIAL: InputAction: "\013" 1SERIAL: RxBuf-0[] 1SERIAL: RxBuf+64[20 33 33 24\013\010 1 -1609 605 255 255 44 46\013\010 2 -4938 6] 1SERIAL: RxBuf-49[\010 1 -1609 605 255 255 44 46\013\010 2 -4938 6] 1SERIAL: InputAction: "\010" 1SERIAL: RxBuf-48[ 1 -1609 605 255 255 44 46\013\010 2 -4938 6] 2008 10 03 15 49 46 0 0 -1 255 255 0 0 0 0 0 2141 -3 1SERIAL: RxBuf=48[ 1 -1609 605 255 255 44 46\013\010 2 -4938 6] 1SERIAL: InputAction: "%s[1$]" 1SERIAL: RxBuf-16[\013\010 2 -4938 6] 1SERIAL: InputAction: "\013" 1SERIAL: RxBuf-15[\010 2 -4938 6] 1SERIAL: InputAction: "\010" 1SERIAL: RxBuf-14[ 2 -4938 6] 1SERIAL: Triggered schedule A 1 -1609 605 255 255 44 46 1SERIAL: RxBuf=14[ 2 -4938 6] 1SERIAL: InputAction: "%s[1$]" 1SERIAL: RxBuf-0[] 1SERIAL: RxBuf+64[67 255 255 33 35\013\010 3 485 442 255 255 33 34\013\010 4 2690 ] 1SERIAL: Triggered schedule A 1SERIAL: RxBuf-46[\013\010 3 485 442 255 255 33 34\013\010 4 2690 ] 1SERIAL: InputAction: "\013" 1SERIAL: RxBuf-45[\010 3 485 442 255 255 33 34\013\010 4 2690 ] 1SERIAL: InputAction: "\010" 1SERIAL: RxBuf-44[ 3 485 442 255 255 33 34\013\010 4 2690 ] 2 -4938 667 255 255 33 35 1SERIAL: RxBuf=44[ 3 485 442 255 255 33 34\013\010 4 2690 ] 1SERIAL: InputAction: "%s[1$]" 1SERIAL: RxBuf-12[\013\010 4 2690 ] 1SERIAL: InputAction: "\013" 1SERIAL: RxBuf-11[\010 4 2690 ] 1SERIAL: InputAction: "\010" 1SERIAL: RxBuf-10[ 4 2690 ] 1SERIAL: Triggered schedule A 3 485 442 255 255 33 34 1SERIAL: RxBuf=10[ 4 2690 ] 1SERIAL: RxBuf+68[ 4 2690 898 255 255 33 34\013\010 5 1171 578 255 255 33 34\013\010] 1SERIAL: Triggered schedule A 1SERIAL: InputAction: "%s[1$]" 1SERIAL: RxBuf-36[\013\010 5 1171 578 255 255 33 34\013\010] 1SERIAL: InputAction: "\013" 1SERIAL: RxBuf-35[\010 5 1171 578 255 255 33 34\013\010] 1SERIAL: InputAction: "\010" 1SERIAL: RxBuf-34[ 5 1171 578 255 255 33 34\013\010] 4 2690 898 255 255 33 34 1SERIAL: RxBuf=34[ 5 1171 578 255 255 33 34\013\010] 1SERIAL: InputAction: "%s[1$]" 1SERIAL: RxBuf-2[\013\010] 1SERIAL: InputAction: "\013" 1SERIAL: RxBuf-1[\010] 1SERIAL: InputAction: "\010" 1SERIAL: RxBuf-0[] 5 1171 578 255 255 33 34 ```` What went wrong? Advance thanks! orange

Good morning Orange,

The string variables n$ are a maximum 80 characters long. The string you are seeing is exactly 80 characters (Please refer to page 29 of the DT80 User manual).

Cheers,
Roger

Good morning Orange, The string variables n$ are a maximum 80 characters long. The string you are seeing is exactly 80 characters (Please refer to page 29 of the DT80 User manual). Cheers, Roger

If there any elegant way around this limitation while still using n$, or I must use CV only like this?

1SERIAL("%d[1CV] %d[2CV] %d[3CV] %d[4CV]....%d[31CV]")
If there any elegant way around this limitation while still using n$, or I must use CV only like this? ```` 1SERIAL("%d[1CV] %d[2CV] %d[3CV] %d[4CV]....%d[31CV]") ````
24
3
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft