Download A new version 3 manual can be downloaded here.

Transcript
MotorVator 4 User Manual
MotorVator 4 User Manual
Play Tune (49)
Read Button (35)
Argument
Tune String
Argument
Button No
A
Type
String or
Address
Type
Constant
Byte
Byte
Variable
Play Tune will play a tune following modified RTTTL (Ring Tone Transfer
Language) format rules.
Checks the current status of the Director Buttons, and sets Variable A
to either 0 if the button is released or 1 if the button is depressed.
Button Numbers are
Randomize Byte (59)
1 = Director Left Button
Argument
A
Type
Variable Byte
Will load a pseudo-random value between 0 and 255 into the Byte
Variable A.
Read Analog Input (32)
Argument
Analog Port Read_Value
Type
Constant
Byte
Variable
Byte
Read the current analog value from the specified port (1..6) into the
variable Read_Value.
2 = Director Left Stick
3 = Director Right Button
4 = Director Right Stick
Read Data Byte (16)
Argument
Data Pointer Variable
Type
Word
Pointer
Read the value of the byte pointed to by Data Pointer, store into
Variable and increment the Data Pointer to point to the next byte.
Page 177
© AmpWorks Limited 2003-2006
MotorVator 4 User Manual
Read Data Word
Byte
Variable
Page 178
© AmpWorks Limited 2003-2006
MotorVator 4 User Manual
(18)
Argument
Data Pointer Variable
Type
Word
Pointer
Word
Variable
Read Joystick One (27)
Read Joystick Two (28)
Read the value of the Word pointed to by Data Pointer, store into
Variable and increment the Data Pointer to point to the next ord.
Argument
Joystick Port
Type
Constant Byte Variable Byte
Read Digital Input (31)
Read the current Joystick “adjusted values” from the specified
Joystick1 Axis (“X” or “Y”) into the variables Direction and Reading.
Argument
Digital Port
No
Type
Constant.
Byte
Value 1 to 4 Variable
A
See Also: Read Button. Read Timed Input, Read Analog Input
Direction
Each value will be 0 to 100, representing a reading from Center (0) to
Up or Full Down or Full Left to Full Right (100). Direction will be either “F”
or “B”.
Read Pulse Count Digital (36)
Read the current state of any of the Digital Inputs.
Read Pulse Count Timed (37)
Variable A will be set to either 0 (if Digital input is open) or 1 (if
Closed).
Argument
Page 179
© AmpWorks Limited 2003-2006
Reading
Variable Byte
Port Number Count
Constant
(1..4)
Byte
Variable
Page 180
© AmpWorks Limited 2003-2006