|

[ Precedente ] [ Home ] [ Su ] [ Successiva ]
 | Example of the Read Format block behavior. |
Layout:
 |
| Incoming String |
I1*
|
Buff1 |
O1*
|
Notes |
|
2 |
empty |
0 |
Initial status |
|
"4,end.#MSG1,12.5," |
2 |
"4,end.#MSG1,12.5," |
0 |
A not complete message with a previous not complete message is arrived
|
|
"end.#MSG1,23.5,end." |
2 |
"4,end.#MSG1,12.5,end. #MSG1,23.5,end." |
0 |
The rest of the message is arrived with a new complete msg. The block identifies
the first msg head in the buffer and the first following message end.
|
|
"" |
0 |
"#MSG1,23.5,end." |
1 |
the
block outputs data. The control pass to the next block. The
first message, with the part of the incomplete message, is
removed from the internal buffer. |
|
""
|
1
|
empty
|
1 |
the
block outputs data. The control pass to the next block |
 | Example of two Read Format block in cascade: |
Layout:
 |
| Incoming String |
I1*
|
Buff1 |
O1*
|
I2*
|
Buffer 2 |
O2*
|
Notes |
|
2 |
empty |
0 |
0 |
empty |
0 |
Initial status |
|
"#MSG1,12.5," |
2 |
"#MSG1,12.5," |
0 |
0 |
empty |
0 |
|
|
"end.#MSG2,23.5,end." |
2 |
"#MSG1,12.5,end. #MSG2,23.5,end." |
0 |
0 |
empty |
0 |
|
|
"" |
0 |
"#MSG2,23.5,end." |
1 |
0 |
empty |
0 |
block 1 outputs data. The control pass to the 2nd block |
|
"#MSG1,14.5,end." |
0 |
"#MSG2,23.5,end." |
0 |
1 |
"#MSG1,14.5,end." |
0 |
block 2 take the control |
|
"" |
0 |
"#MSG2,23.5,end." |
0 |
2 |
"#MSG1,14.5,end." |
0 |
|
|
"#MSG2,26.3,end." |
0 |
"#MSG2,23.5,end." |
0 |
2 |
"#MSG1,14.5,end. #MSG2,26.3,end." |
0 |
|
|
"" |
0 |
"#MSG2,23.5,end." |
0 |
0 |
empty |
1 |
block 2 outputs data. The control pass to the 1st block |
|
"#MSG1,14.5,end." |
1 |
"#MSG2,23.5,end." |
0 |
0 |
empty |
0 |
|
|
"" |
2 |
"#MSG2,23.5,end. #MSG1,14.5,end." |
0 |
0 |
empty |
0 |
|
|
"" |
0 |
empty |
1 |
0 |
empty |
0 |
block
1 outputs data. The control pass to the 2nd block. |
*Legenda for the status of the input ports:
 | 0: Not enabled for write |
 | 1: Enabled for write |
 | 2: Wait for completion |
*Legenda for the status of the output ports:
 | 0: Do Not Enable the next block |
 | 1: Enable the next block |
This page has been updated on day 16/02/03. |