Firmware-633 Command-049
SET OUTPUT INIT (49, 31h)
The SET OUTPUT INIT command sets the output status at power-up of the USB-microDig. The command can be used in both host and stand-alone modes of operation. All output settings are stored in both volatile and non-volatile memory. After a RESET of the USB-microDig, all outputs’ statuses are retrieved from non-volatile memory whether in stand-alone mode or in host mode. Upon completion of the command the digitizer sends out the same command. To get the values stored in non-volatile memory, use the DUMP OUTPUT INIT command.
The [BODY] of the SET OUTPUT INIT command consists of two 7-bit bytes with the following format:
0xp00yyy: | x = 1; output on |
x = 0; output off | |
p = [0..1]; setting without effect | |
yyy = [0..7]; actuator output number, where the first actuator output number = 0, and the last (8th) actuator output number = 7 | |
0zzzzzzz: | zzzzzzz = [0..127]; setting without effect |
Example:
In order to turn the 2nd actuator output on, ie. to 5V, the following message is sent:
- 240, 125, 0 {DEV}, 49 {SET OUTPUT INIT}, 65 {x = 1, p = 0, yyy = 1}, 0, 247 (F0h, 7Dh, 00h, 30h, 41h, 00h, F7h)
In order to turn the same actuator output off, ie. to 0V, the following message is sent:
- 240, 125, 0 {DEV}, 49 {SET OUTPUT INIT}, 1 {x = 0, p = 0, yyy = 1}, 0, 247 (F0h, 7Dh, 00h, 30h, 01h, 00h F7h)