Programming the Mio R-4

 

 

 

 

 

 

 

"^" Button Commands (Cont.)

 

 

 

 

 

 

 

 

 

^FON

Set a font to a specific Font ID value for those buttons with a defined address range. Font

 

Set a font to a

ID numbers are generated by the TPDesign4 programmers report.

 

Syntax:

 

 

 

 

specific Font ID

 

 

 

 

value for those

"'^FON-<vt addr range>,<button states range>,<font value>'"

 

buttons with a

 

Variable:

 

 

 

 

defined address

 

 

 

 

 

 

 

 

 

 

 

range

• variable text address range = 1 - 4000.

 

 

• button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons

 

 

1 = Off state and 2 = On state).

 

 

• font value = range = 1 - XXX. Refer to theFixed Fonts and ID Numbers table on page 37.

 

 

Example:

 

 

 

 

 

SEND_COMMAND Device,"'^FON-500.504&510.515,1&2,4'"

 

 

Sets the font size to font ID #4 for the On and Off states of buttons with the variable text

 

 

range of 500-504 & 510-515.

 

 

Note: The Font ID is generated by TPD4 and is located in TPD4 through the Main menu.

 

 

Panel > Generate Programmer's Report >Text Only Format >Readme.txt.

 

 

 

 

 

 

 

 

^GDI

Change the bargraph drag increment.

 

Change the

Syntax:

 

 

 

 

bargraph drag

"'^GDI-<vt addr range>,<bargraph drag increment>'"

 

increment

 

Variable:

 

 

 

 

 

 

 

 

 

 

• variable text address range = 1 - 4000.

 

 

• bargraph drag increment = The default drag increment is 256.

 

 

Example:

 

 

 

 

 

SEND_COMMAND Device,"'^GDI-7,128'"

 

 

Sets the bargraph with variable text 7 to a drag increment of 128.

 

 

 

 

 

 

 

 

^GIV

Invert the joystick axis to move the origin to another corner. Parameters 1,2, and 3 will

 

Invert the

cause a bargraph or slider to be inverted regardless of orientation. Their effect will be as

 

described for joysticks.

 

 

joystick axis to

 

 

Syntax:

 

 

 

 

move the origin to

 

 

 

 

another corner

"'^GIV-<vt addr range>,<joystick axis to invert>'"

 

 

 

 

Variable:

 

 

 

 

 

• variable text address range = 1 - 4000.

 

 

• joystick axis to invert = 0 - 3.

 

 

 

 

 

 

 

0 = Normal

 

 

 

0

 

1

 

 

 

 

 

 

 

 

1 = Invert horizontal axis

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2 = Invert vertical axis

 

 

 

2

 

3

 

 

 

 

 

 

3 = Invert both axis locations

 

 

For a bargraph 1 = Invert , 0 = Non Invert

 

 

Example:

 

 

 

 

 

SEND_COMMAND Device,"'^GIV-500,3'"

 

 

Inverts the joystick axis origin to the bottom right corner.

 

 

 

 

 

 

 

 

^GLH

Change the bargraph upper limit.

 

Change the

Syntax:

 

 

 

 

bargraph upper

"'^GLH-<vt addr range>,<bargraph hi>'"

 

limit

 

Variable:

 

 

 

 

 

 

 

 

 

 

• variable text address range = 1 - 4000.

 

 

• bargraph limit range = 1 - 65535 (bargraph upper limit range).

 

 

Example:

 

 

 

 

 

SEND_COMMAND Device,"'^GLH-500,1000'"

 

 

Changes the bargraph upper limit to 1000.

 

 

 

 

 

 

 

 

 

Mio Modero R-4

59

 

 

Page 65
Image 65
AMX Mio Modero R-4 manual Fon, Gdi, Giv, Glh