Mitsubishi Electronics MR-MC241 Sleep Apnea Machine User Manual


 
9 - 19
9. INTERFACE MODE
The following is an example of when the maximum buffer number is 11.
When the buffer status resembles "Example 1: Before buffer set", and there are 5 cycles of position command
data that have been calculated by the user program, set the latest position command buffer number to 1 after
setting position command data to empty buffers 9 to 11, and buffers 0 to 1. After processing, the buffer status
resembles "Example 2: After buffer set (5 cycles)".
Under the same conditions, when there are 10 cycles of position command data that have been calculated by
the user program, set the latest position command buffer number to 4 after setting position command data to
buffers 9 to 11, and buffers 0 to 4. At this time, because there are only 8 empty buffers, 2 cycles of position
command data cannot be set. Set these buffers the next time the buffers empty. After processing, the buffer
status is becomes similar to "Example 3: After buffer set (10 cycles)".
Example 1: Before buffer set
n+9
0 1234567891011
n+7 n+8 n+10 n+11 n n+1 n+2 n+3 n+4 n+5 n+6
000
Position command
buffer before setting
command
Transmit buffer
number
Latest command
buffer number
: Empty buffer
: Set buffer
Set data
: Unused data
Example 2: After buffer set (5 cycles)
0 1234567891011
0 1234
sscIfmRenewLatestBufferEx function
sscIfmGetTransmitBufferEx function
Position command
data in the user
program
Position command
buffer before setting
command
Latest command
buffer number
Transmit buffer
number
Example 3: After buffer set (10 cycles)
0 1234567891011
0 123456789
Position command
data in the use
r
program
Position command
buffer before setting
command
Latest command
buffer number
Transmit buffer
number
On hold until next time