User Guide

Standard NetLinx API (SNAPI) R 1.8.0
166
Motor Functions (Cont.)
Name Component Channel Level Command Constant Notes
processPassbackEvent(byte[]) IModuleComponentListener When passback is on, each string received
form the device is sent to the NetLinx pro-
gram as a string. Use a DATA_EVENT
event with a STRING handler to caputre
the data from the device.
cycleMotorPreset() IMotorComponent 187 MOTOR_PRESET Momentary Function Channel: Cycle Motor
preset when channel is activated
getMotorPreset() IMotorComponent ?MOTORPRESET Query for Motor preset, responds with
MOTORPRESET-<preset>
setMotorDirection(STOP) IMotorComponent 2 MOTOR_STOP Momentary Function Channel: Set Motor
direction to stop, causing motor to stop
between opened and closed
setMotorDirection(OPEN) IMotorComponent 4 MOTOR_OPEN Momentary Function Channel: Set Motor
direction to open, causing motor to move in
the OPEN direction
setMotorDirection(CLOSE) IMotorComponent 5 MOTOR_CLOSE Momentary Function Channel: Set Motor
direction to close, causing motor to move in
the CLOSE direction
setMotorPosition(position) IMotorComponent 6 MOTOR_POS_LVL Recall Motor position, range is 0-255, 0 is
close, 255 is open
setMotorPreset(preset) IMotorComponent MOTORPRESET-<pre-
set>
Set Motor preset where <preset> is 1
through x where x is the maximum sup-
ported preset (see specific module docu-
mentation)
processMotorDirectionEvent(STOP) IMotorComponentListener 2 MOTOR_STOP_FB Feedback Channel: Motor is stopped
between opened and closed
processMotorDirectionEvent(OPEN) IMotorComponentListener 4 MOTOR_OPEN_FB Feedback Channel: Motor direction is
open, motor is moving to the OPEN posi-
tion or is open
processMotorDirectionEvent(CLOSE) IMotorComponentListener 5 MOTOR_CLOSE_FB Feedback Channel: Motor direction is
close, motor is moving to the CLOSE posi-
tion or is closed
processMotorPositionEvent(int) IMotorComponentListener 6 MOTOR_POS_LVL Motor position changed, range is 0-255, 0
is close, 255 is open
processMotorPresetEvent(int) IMotorComponentListener MOTORPRESET-<pre-
set>
Motor preset changed where <preset> is 1
through x where x is the maximum sup-
ported preset (see specific module docu-
mentation)