beautypg.com

Manual-23 – Rane SR 2 User Manual

Page 23

background image

Manual-23

To write the Software Input Lock status:

Send: ILK,n1

Where: n1 is the Software Input Lock byte. The lock byte

range is [0, 7].

Example: ILK,2 locks the second level.

Response: "OK"

IQ
Input Query

Returns the current main level and second level. Resets the command state to No

Operation.

Send: IQ

Response: n1,n2,"OK"

Where: n1 is the current main level. The main level range

is [1, 31].

n2 is the current second level. The second level range

is [1, 31].

Example: 15,4, “OK” means that the current main level is 15

and the current second level is 4.

IR
Input Raw

Returns the current level, second level, command state, and the length of time the

encoder button has been pressed.

Resets the command state to No Operation.

Send: IR

Response: n1,n2,n3,n4,"OK"

Where: n1 is the current main level. The main level range

is [1, 31].

n2 is the current second level. The second level range

is [1, 31].

n3 is the current command state. The command state

represents the state of the encoder.

The possible states follow:

0 No Operation The encoder has not changed.

1 Encoder Left

The encoder has been turned counter clockwise.

2 Encoder Right The encoder has been turned clockwise

16 Selection Left The encoder has been pushed in and turned counter clockwise.

32 Selection Right The encoder has been pushed in and turned clockwise.

64 Enter The encoder has been pushed in and released without being turned.

n4 is the length of time the encoder button has been pressed. The time the button has

been pressed is in units of .01 seconds and the range is [0, 255] or 0 to 2.55 seconds.

The button timer starts at the press of the button and is reset to zero when the button

is released.

Example: 1,2,32,100,”OK” means the current main level is 1, the current second level

is 2, the current command state byte is a Second Level Right and the button has been

held in for 1 second.