T-Series/Commands/Return Event Instruction

From ZaberWiki
Jump to: navigation, search

Return Event Instruction - Cmd 31

Warning: This is an "include" page. As such, its contents may be included in multiple other pages. To see a list of all pages that include this page, click on "What links here" in the bottom left navbar. If you make changes to this page, be sure that your changes are appropriate to all pages on which this content will be included. You are also encouraged to review our Zaber Wiki Editing Guidelines. This header will not be included in other pages.

Instruction Name Return Event Instruction
Applies to T-JOY
Firmware Version 5.04 and up
Command Number 31
Command Type Command
Command Data Key Event
Reply Data n/a
Safe to retry? Yes
Returns Current Position? No
Persistence n/a
Summary Returns the the event-triggered instruction associated with the key-event.

See the Load Event-Triggered Instruction (#30) for more information on definition of key events and event-triggered instructions.

To return the event-triggered instruction associated with a particular key event, issue the Return Event Instruction (#31) command to the joystick with data as follows:

Command Data = Key * 10 + Trigger

Where:

  • Key is a number from 1 to 5 corresponding to the key location
  • Event is a number from 1 to 4 corresponding to the key event

The reply will be comprised of the device, command and data of the event-triggered instruction associated with the specified key event. Note that as far as the computer is concerned, the reply will appear to come from whatever device the event-triggered instruction is addressed to, which may not be the joystick. We recommend that all additional devices be disconnected from the joystick before loading or returning event-triggered instructions to avoid confusion.

Personal tools
Zaber Website