_R-STS01mightyZAP Servo Tester Shield Manual_ENG_V1.2 19D5

IR-STS01 Servo Tester Shield Manual V.1.1
29
6.11.Example - Stroke Limit
Example to set stroke limit(limit for position) using StrokeLimit() command.
Select [Example] - [MightyZap] - [UNO] or[LEO]–[ServoTester_ StrokeLimit]
Tester.Mightyzap .StrokeLimit(int ID_NUM ,int Direction)/Parameter Read
Function : Servo Motor position limit read
Parameter
- ID_NUM : Servo motor ID
- Direction : Direction of Servo motor (Long or short)
Tester.Mightyzap .StrokeLimit(int ID_NUM,int Direction, int position)/Parameter Write
Function : Servo motor position limit setting
Parameter
- ID_NUM : Servo motor ID
- Direction : Servo motor position direction setting
Data Bit
Short Retract(min) limit position
Long Extend(max) limit position
- Position : Limit position value setting (default : 0~4095)
1.StrokeLimit()
- Setting max(long)/min(short) position limit to control servo motor
position’s limit.
- User may decrease max(long) stroke limit or increase min(short)
stroke limit.
2. Shot Stroke(A)
Long Stroke(C)