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