Output Interface Example (Sinking Output)
The following circuit example shows a load connected to an I/O point that will be configured as a sinking
output.
Figure 2.3.8: Sinking Output Example
Code Sample
For the code sample, the load will be an LED. The I/O point will be configured such that the LED will be
unlit while the velocity is changing. Use the switch set-up from the previous input, modified to be sinking,
example to soft stop the motor.
S1=5,0,0
S1=20,0,0
SL 2000000
While the motor is accelerating the LED will be dark, but will light up when the motor reaches a constant
velocity. When the Soft Stop switch is depressed the motor will begin to decelerate, the LED will go dark
again while velocity is changing.
Part 2: Connecting and Interfacing
����������
����������������������������
���������������������
�����������������
��������
�������
�������
������
���
��������
���������������������������������
'set IO point 1 to be a Soft Stop input, active when LOW,
'sinking.
'set IO point 2 to be a Velocity Changing output, active
'when LOW
'enter this to slew the motor at 200000 µsteps/sec
�
�����
���������������������
���������������
�������µ�
����
���
���������������������
����������
�����
Sinking Output
�
�����
����
2-21
Need help?
Do you have a question about the MDrive17Plus and is the answer not in the manual?