User Guide

89
Standard NetLinx API (SNAPI) R 1.8.0
Motor
Component
Name: Motor
Interface: IMotorComponent
IMotorComponent
Component Functions:
Name: Channel: Level: Command: Constant: Notes:
cycleMotorPreset() 187 MOTOR_PRESET Momentary Function Channel: Cycle Motor preset when channel is activated
getMotorPreset() ?MOTORPRESET Query for Motor preset, responds with MOTORPRESET-<preset>
setMotorDirec-
tion(CLOSE)
5 MOTOR_CLOSE Momentary Function Channel: Set Motor direction to close, causing motor to move in
the CLOSE direction
setMotorDirec-
tion(OPEN)
4 MOTOR_OPEN Momentary Function Channel: Set Motor direction to open, causing motor to move in
the OPEN direction
setMotorDirec-
tion(STOP)
2 MOTOR_STOP Momentary Function Channel: Set Motor direction to stop, causing motor to stop
between opened and closed
setMotorPosition(posi-
tion)
6 MOTOR_POS_LVL Recall Motor position, range is 0-255, 0 is close, 255 is open
setMotorPreset(preset) MOTORPRESET-<preset> Set Motor preset where <preset> is 1 through x where x is the maximum supported pre-
set (see specific module documentation)
Listener
Name: Motor Listener
Interface: IMotorComponentListener
IMotorComponentListener
Listener Functions:
Name: Channel: Level: Command: Constant: Notes:
processMotorDirection-
Event
5 MOTOR_CLOSE_FB Feedback Channel: Motor direction is close, motor is moving to the CLOSE position or
is closed
processMotorDirection-
Event
4 MOTOR_OPEN_FB Feedback Channel: Motor direction is open, motor is moving to the OPEN position or is
open
processMotorDirection-
Event
2 MOTOR_STOP_FB Feedback Channel: Motor is stopped between opened and closed
processMotorPosition-
Event
6 MOTOR_POS_LVL Motor position changed, range is 0-255, 0 is close, 255 is open
processMotorPre-
setEvent
MOTORPRESET-<preset> Motor preset changed where <preset> is 1 through x where x is the maximum sup-
ported preset (see specific module documentation)