beautypg.com

Manual-39 – Rane SR 3 User Manual

Page 39

background image

Manual-39

Get LCD Image Example
This example first selects page 0 to display the target image to upload. The SR 3 limits

its <command/data> size to 250 characters, so image data must be requested a line at

a time. The Move Cursor and Hex Data Read commands are concatenated. The image

data is represented in ASCII hex so there is a two character representation for each

byte of data. The encoder is locked out before the data requests to prevent someone

changing the display during an upload. See the ILK command in the SR 3 Com-

mand Set

section for details. The encoder is then unlocked after the upload to restore

normal encoder operation.

1. Temporarily lock the encoder.

Send: ILK,127

Response: "OK"

2. Select Page 0 to display target image.

Send: PS,0

Response: "OK"

3. Get line 0 image data

Send: MC,0,0,XDR,98

Response: xxxxxx…,"OK"

4. Repeat for lines 1-7

Send: MC,0,1,XDR,98

Response: xxxxxx…,"OK"

Send: MC,0,2,XDR,98

Response: xxxxxx…,"OK"

Send: MC,0,3,XDR,98

Response: xxxxxx…,"OK"

Send: MC,0,4,XDR,98

Response: xxxxxx…,"OK"

Send: MC,0,5,XDR,98

Response: xxxxxx…,"OK"

Send: MC,0,6,XDR,98

Response: xxxxxx…,"OK"

Send: MC,0,7,XDR,98

Response: xxxxxx…,"OK"

5. Unlock the encoder.

Send: ILK,0

Response: "OK"