Difference between revisions of "Firmware-820 Command-048"
(Created page with "==SET OUTPUT (48, 30h)== The SET OUTPUT command can be used to turn any of the 8 available actuator outputs on or off. Enabling the pulse overrides the output on/off setting....") |
|||
Line 1: | Line 1: | ||
==SET OUTPUT (48, 30h)== | ==SET OUTPUT (48, 30h)== | ||
− | The SET OUTPUT command can be used to turn any of the 8 available actuator outputs on or off. Enabling | + | The SET OUTPUT command can be used to turn any of the 8 available actuator outputs on or off. Enabling continuous control overrides the output on/off setting. The command can be used in both modes of operation. After a RESET of the WiDig, all outputs’ continuous control statuses are retrieved from non-volatile memory as set by the SET OUTPUT INIT command. Upon completion of the command the digitizer sends out the same command. To get the values stored in non-volatile memory, use the [[Firmware-820_Command-058 |DUMP OUTPUT command]]. |
The [BODY] of the SET OUTPUT command consists of two 7-bit bytes with the following format: | The [BODY] of the SET OUTPUT command consists of two 7-bit bytes with the following format: | ||
Line 13: | Line 13: | ||
|- | |- | ||
| | | | ||
− | |p = 1; enable | + | |p = 1; enable continuous control (also at power-up), in the form of actuator method or pulse width variation |
|- | |- | ||
| | | | ||
− | |p = 0; disable | + | |p = 0; disable continuous control (also at power-up), in the form of actuator method or pulse width variation |
|- | |- | ||
| | | | ||
Line 22: | Line 22: | ||
|- | |- | ||
|0zzzzzzz: | |0zzzzzzz: | ||
− | |zzzzzzz = [0..127]; pulse width 1-2 ms (ie. steps of approx. 8 microseconds) | + | |zzzzzzz = [0..127]; actuator method MSB or pulse width 1-2 ms (ie. steps of approx. 8 microseconds) |
+ | |- | ||
+ | |0wwwwwww: | ||
+ | |wwwwwww = [0..127]; actuator method LSB or not used | ||
|} | |} | ||
Line 29: | Line 32: | ||
In order to set the 2nd actuator output pulse width to 2.0ms, the following message is sent: | In order to set the 2nd actuator output pulse width to 2.0ms, the following message is sent: | ||
− | :240, 125, 0 {DEV}, 48 {SET OUTPUT}, 97 {x = 1, p = 1, yyy = 1}, 127 {pulse width}, 247 (F0h, 7Dh, 00h, 30h, 61h, 7Fh, F7h) | + | :240, 125, 0 {DEV}, 48 {SET OUTPUT}, 97 {x = 1, p = 1, yyy = 1}, 127 {pulse width}, 0, 247 (F0h, 7Dh, 00h, 30h, 61h, 7Fh, 00h, F7h) |
The pulse width is 1 + 127*0.008 = 2.0ms | The pulse width is 1 + 127*0.008 = 2.0ms | ||
Line 35: | Line 38: | ||
In order to turn the same actuator output on but disable the pulse, the following message is sent: | In order to turn the same actuator output on but disable the pulse, the following message is sent: | ||
− | :240, 125, 0 {DEV}, 48 {SET OUTPUT}, 65 {x = 1, p = 0, yyy = 1}, 0 {pulse width}, 247 (F0h, 7Dh, 00h, 30h, 41h, 00h F7h) | + | :240, 125, 0 {DEV}, 48 {SET OUTPUT}, 65 {x = 1, p = 0, yyy = 1}, 0 {pulse width}, 0, 247 (F0h, 7Dh, 00h, 30h, 41h, 00h, 00h, F7h) |
− | When disabling the | + | When disabling continuous control the actuator method MSB and LSB values or pulse width value is ignored. |
Revision as of 00:47, 24 February 2022
SET OUTPUT (48, 30h)
The SET OUTPUT command can be used to turn any of the 8 available actuator outputs on or off. Enabling continuous control overrides the output on/off setting. The command can be used in both modes of operation. After a RESET of the WiDig, all outputs’ continuous control statuses are retrieved from non-volatile memory as set by the SET OUTPUT INIT command. 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 command.
The [BODY] of the SET OUTPUT command consists of two 7-bit bytes with the following format:
0xp00yyy: | x = 1; output on |
x = 0; output off | |
p = 1; enable continuous control (also at power-up), in the form of actuator method or pulse width variation | |
p = 0; disable continuous control (also at power-up), in the form of actuator method or pulse width variation | |
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]; actuator method MSB or pulse width 1-2 ms (ie. steps of approx. 8 microseconds) |
0wwwwwww: | wwwwwww = [0..127]; actuator method LSB or not used |
Example:
In order to set the 2nd actuator output pulse width to 2.0ms, the following message is sent:
- 240, 125, 0 {DEV}, 48 {SET OUTPUT}, 97 {x = 1, p = 1, yyy = 1}, 127 {pulse width}, 0, 247 (F0h, 7Dh, 00h, 30h, 61h, 7Fh, 00h, F7h)
The pulse width is 1 + 127*0.008 = 2.0ms
In order to turn the same actuator output on but disable the pulse, the following message is sent:
- 240, 125, 0 {DEV}, 48 {SET OUTPUT}, 65 {x = 1, p = 0, yyy = 1}, 0 {pulse width}, 0, 247 (F0h, 7Dh, 00h, 30h, 41h, 00h, 00h, F7h)
When disabling continuous control the actuator method MSB and LSB values or pulse width value is ignored.