SlideShare a Scribd company logo
1 of 7
Download to read offline
MyoStat Motion Control http://www.coolmuscle.com 06/08/2003
S-CURVE
DOCUMENTATION AND TUTORIAL FOR THE
S-CURVE ON THE COOL MUSCLE
MyoStat Motion Control http://www.coolmuscle.com 06/08/2003
Page 2
1. INTRODUCTION
The s-curve function allows the user to define a smooth response yet still
maintain a high acceleration. In many applications the ideal step response is
not one where the maximum speed is reached instantaneously. The jarring
effect of high acceleration and deceleration can damage the application, yet a
slow acceleration can slow down production dramatically. In these
applications the ideal step response is to have a slow initial acceleration,
leading into a high acceleration to a low deceleration to the required speed.
The resultant speed curve is what is known as an s-curve.
Step Response
0
50
100
150
200
250
0.0 0.1 0.2 0.3
seconds
pulses/second
S-Curve
Acceleration
High Aceleration
Low Acceleration
Figure 1: Step response of an S-Curve function.
Figure 1 shows how the s-curve can maintain advantages of both a high and
low acceleration. High overall acceleration is maintained yet jarring effects
are minimised.
MyoStat Motion Control http://www.coolmuscle.com 06/08/2003
Page 3
2. K69: S-CURVE K-PARAMETER
The K69 parameter is the most significant parameter when dealing with the
s-curve function. K69 is unit-less and acts as the gain of the function ranging
from 0 to 1024. When it is set to 0 the s-curve function is turned off, i.e. the
standard response for the given speed and acceleration is output. When set
to 1024 the response is the most defined s-curve function.
Calculated Speed
0
50
100
150
200
250
0.000 0.200 0.400 0.600
seconds
pulses/second
K69=0
K69=512
K69=1024
Figure 2: Calculated s-curve speed response by the Cool Muscle.
Figure 2 shows the response calculated by the Cool Muscle (how to capture
this response will be described in the tutorial following). As can bee seen in
the diagram by adjusting the K69 value from 0 to 1024 the s-curve becomes
more pronounced.
MyoStat Motion Control http://www.coolmuscle.com 06/08/2003
Page 4
3. S-CURVE TUTORIAL
3.1. Objectives and requirements
The objective of this tutorial is to familiarize the user with the s-curve
function in the Cool Muscle. K69 is the main parameter, however, creeping
speed (K51) and acceleration both play important roles in the forming of a
curve. Some prior knowledge of the Cool Muscle may be required. Firmware
versions 1.14 and above have the s-curve function implemented. A copy of
Cool Works Lite should be installed on the PC attached to a single Cool
Muscle through the RS232 port. Microsoft Excel, Matlab or an equivalent
graphing program should be available to plot the outputs. Follow the steps in
order to ensure full understanding of the function.
3.2. Tutorial steps
3.2.1. Step 1: ensure correct firmware version
Only firmware versions 1.14 and above have the s-curve implemented.
Open Cool Works Lite (CW Lite) and query “%100”. If version 1.14 or
above is loaded this will return some hardware and software information.
The line “SV=x.xx” is the current software version loaded.
3.2.2. Step 2: set the automatic poll and timer
The automatic poll and timer sets the Cool Muscle to constantly return
information. There are a number or modes available, which can be read
about in the manual. This tutorial is going to deal with the calculated
speed and the real speed. Set the following to program the Cool Muscle to
return the calculated speed at an interval of 15 ms.
• K66=1
• K67=15
Though in theory the more points the more accurate the curve generated
we don’t want to overload the Cool Muscle with communication.
Communication has the highest interrupt priority and can disrupt motion if
used to frequently.
MyoStat Motion Control http://www.coolmuscle.com 06/08/2003
Page 5
3.2.3. Step 3: set the dynamic values and resolution
Set the dynamic speed, acceleration and position to the following:
• a=100
• s=200
• p=7000
The resolution should be 1000 pulses/rev i.e. K37=3.
3.2.4. Step 4: set the creeping speed (K51)
K51, the creeping speed is important to the look of an s-curve. If high
initial accelerations are a problem, the creeping speed should be set as
low as possible. The creeping speed is defined as the speed from which
the motor will start its acceleration. I.e. if the creeping speed is set to 10
it will accelerate as fast as possible to 10 pps (pulses per second) and
then accelerate with the required acceleration from there. By default K51
is 10 pps but can be set down to 1pps. Set K51=1.
3.2.5. Step 5: graph the calculated speed
K69 is the s-curve parameter and sets the gain of the s-curve. Starting
with K69=0, execute the dynamic run command (^). The terminal
window of CW Lite should return the speed values at an interval of 15ms.
If it does not, return to step 2 and verify the K66 and K67 settings. Copy
and paste the values into a graphing program such as Excel or Matlab at
intervals of 15ms. Due to calculations in the Cool Muscle the values are
calculated with respect to 50000/10 and the maximum speed is 1000. By
dividing the returned number by 5 it can be normalized to the maximum
real speed. Repeat this step for K69=512 and K69=1024. Remember, the
dynamic values are absolute so set the current position back to the origin
(|2) before executing the dynamic command (^).
MyoStat Motion Control http://www.coolmuscle.com 06/08/2003
Page 6
Calculated Speed
0
50
100
150
200
250
0.000 0.200 0.400 0.600
seconds
pulses/second
K69=0
K69=512
K69=1024
Figure 3: Calculated speed curve by the Cool Muscle
MyoStat Motion Control http://www.coolmuscle.com 06/08/2003
Page 7
3.2.6. Step 6: graph the real speed
Repeat step 5 but with K66=3 to graph the real speed of the Cool Muscle.
It is not necessary to divide by 5 as the Cool Muscle is outputs the real
speed and no longer the calculated speed. The graph should look like the
following Figure 4.
Real Speed
0
50
100
150
200
250
0.000 0.200 0.400 0.600
seconds
pulses/second
K69=0
K69=512
K69=1024
Figure 4: Real speed of the Cool Muscle

More Related Content

What's hot

final year presentation
final year presentationfinal year presentation
final year presentation
rao tahir
 

What's hot (7)

final year presentation
final year presentationfinal year presentation
final year presentation
 
Modeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armModeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic arm
 
Backstepping control of cart pole system
Backstepping  control of cart pole systemBackstepping  control of cart pole system
Backstepping control of cart pole system
 
Analysis & Control of Inverted Pendulum System Using PID Controller
Analysis & Control of Inverted Pendulum System Using PID ControllerAnalysis & Control of Inverted Pendulum System Using PID Controller
Analysis & Control of Inverted Pendulum System Using PID Controller
 
Advanced Mechatronics Research Final Presentation
Advanced Mechatronics Research Final PresentationAdvanced Mechatronics Research Final Presentation
Advanced Mechatronics Research Final Presentation
 
AEV 510 Group Project 2 23 2011
AEV 510 Group Project 2 23 2011AEV 510 Group Project 2 23 2011
AEV 510 Group Project 2 23 2011
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulum
 

Viewers also liked (15)

Technology s curves-in_renewable_energies
Technology s curves-in_renewable_energiesTechnology s curves-in_renewable_energies
Technology s curves-in_renewable_energies
 
2007 02t
2007 02t2007 02t
2007 02t
 
Ga2000 gp25(3) enz
Ga2000 gp25(3) enzGa2000 gp25(3) enz
Ga2000 gp25(3) enz
 
Xogo do peon
Xogo do peonXogo do peon
Xogo do peon
 
Tcf2007 dk rdg
Tcf2007 dk rdgTcf2007 dk rdg
Tcf2007 dk rdg
 
Easec13 e-3-1
Easec13 e-3-1Easec13 e-3-1
Easec13 e-3-1
 
Presentation name3
Presentation  name3Presentation  name3
Presentation name3
 
Social Media Course 2015
Social Media Course 2015Social Media Course 2015
Social Media Course 2015
 
Easec13 e-3-1
Easec13 e-3-1Easec13 e-3-1
Easec13 e-3-1
 
Gartner maturity and adoption 1
Gartner maturity and adoption 1Gartner maturity and adoption 1
Gartner maturity and adoption 1
 
Bab ii
Bab ii Bab ii
Bab ii
 
S curve tutorial1
S curve tutorial1S curve tutorial1
S curve tutorial1
 
Bab 2 Tinjauan Literatur
Bab 2 Tinjauan LiteraturBab 2 Tinjauan Literatur
Bab 2 Tinjauan Literatur
 
The mysterious s_curve
The mysterious s_curveThe mysterious s_curve
The mysterious s_curve
 
Qr codes
Qr codesQr codes
Qr codes
 

Similar to S curve tutorial1

Final Project Report
Final Project ReportFinal Project Report
Final Project Report
Riddhi Shah
 
Performance Analysis of Brushless DC Motor under Different Loading Conditions
Performance Analysis of Brushless DC Motor under Different Loading ConditionsPerformance Analysis of Brushless DC Motor under Different Loading Conditions
Performance Analysis of Brushless DC Motor under Different Loading Conditions
ijtsrd
 
documents.pub_solar-tracking-ppt.pdf
documents.pub_solar-tracking-ppt.pdfdocuments.pub_solar-tracking-ppt.pdf
documents.pub_solar-tracking-ppt.pdf
BhPrkh2
 

Similar to S curve tutorial1 (20)

Two stage op amp design on cadence
Two stage op amp design on cadenceTwo stage op amp design on cadence
Two stage op amp design on cadence
 
Compensator Design for Speed Control of DC Motor by Root Locus Approach using...
Compensator Design for Speed Control of DC Motor by Root Locus Approach using...Compensator Design for Speed Control of DC Motor by Root Locus Approach using...
Compensator Design for Speed Control of DC Motor by Root Locus Approach using...
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller Assignment
 
Final Project Report
Final Project ReportFinal Project Report
Final Project Report
 
Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...
Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...
Design of Compensators for Speed Control of DC Motor by using Bode Plot Techn...
 
Performance Analysis of Brushless DC Motor under Different Loading Conditions
Performance Analysis of Brushless DC Motor under Different Loading ConditionsPerformance Analysis of Brushless DC Motor under Different Loading Conditions
Performance Analysis of Brushless DC Motor under Different Loading Conditions
 
Pi controller ieee format
Pi controller ieee formatPi controller ieee format
Pi controller ieee format
 
cruise control system
cruise control systemcruise control system
cruise control system
 
Sensory Substitution
Sensory SubstitutionSensory Substitution
Sensory Substitution
 
H010245763
H010245763H010245763
H010245763
 
documents.pub_solar-tracking-ppt.pdf
documents.pub_solar-tracking-ppt.pdfdocuments.pub_solar-tracking-ppt.pdf
documents.pub_solar-tracking-ppt.pdf
 
final report updated
final report updatedfinal report updated
final report updated
 
Design and Implementation of a Dual Stage Operational Amplifier
Design and Implementation of a Dual Stage Operational AmplifierDesign and Implementation of a Dual Stage Operational Amplifier
Design and Implementation of a Dual Stage Operational Amplifier
 
ECET 365 Entire Course NEW
ECET 365 Entire Course NEWECET 365 Entire Course NEW
ECET 365 Entire Course NEW
 
Quick return mechanism
Quick return mechanismQuick return mechanism
Quick return mechanism
 
IRJET- Sensrless Luenberger Observer Based Sliding Mode Control of DC Motor
IRJET- 	  Sensrless Luenberger Observer Based Sliding Mode Control of DC MotorIRJET- 	  Sensrless Luenberger Observer Based Sliding Mode Control of DC Motor
IRJET- Sensrless Luenberger Observer Based Sliding Mode Control of DC Motor
 
Sensrless Luenberger Observer Based Sliding Mode Control of DC Motor
Sensrless Luenberger Observer Based Sliding Mode Control of DC MotorSensrless Luenberger Observer Based Sliding Mode Control of DC Motor
Sensrless Luenberger Observer Based Sliding Mode Control of DC Motor
 
Design, analysis and controlling of an offshore load transfer system Dimuthu ...
Design, analysis and controlling of an offshore load transfer system Dimuthu ...Design, analysis and controlling of an offshore load transfer system Dimuthu ...
Design, analysis and controlling of an offshore load transfer system Dimuthu ...
 
7. pid controller designing for active suspension system of bike
7. pid controller designing for active suspension system of bike7. pid controller designing for active suspension system of bike
7. pid controller designing for active suspension system of bike
 
All digital wide range msar controlled duty cycle corrector
All digital wide range msar controlled duty cycle correctorAll digital wide range msar controlled duty cycle corrector
All digital wide range msar controlled duty cycle corrector
 

More from Muhammad Sadiq Aftab (20)

Tsc
TscTsc
Tsc
 
The mysterious s_curve
The mysterious s_curveThe mysterious s_curve
The mysterious s_curve
 
The origins of the s curve in business functions
The origins of the s curve in business functionsThe origins of the s curve in business functions
The origins of the s curve in business functions
 
Scurve231 m en
Scurve231 m enScurve231 m en
Scurve231 m en
 
S curve1
S curve1S curve1
S curve1
 
S curve
S curveS curve
S curve
 
Pras s curve final
Pras s curve finalPras s curve final
Pras s curve final
 
Jce 64 2012_8_3_1036_en
Jce 64 2012_8_3_1036_enJce 64 2012_8_3_1036_en
Jce 64 2012_8_3_1036_en
 
Isarc2007 4.3 2-065
Isarc2007 4.3 2-065Isarc2007 4.3 2-065
Isarc2007 4.3 2-065
 
Innovation lifecycles
Innovation lifecyclesInnovation lifecycles
Innovation lifecycles
 
Exploring the limits_of_the_technology_s-curve
Exploring the limits_of_the_technology_s-curveExploring the limits_of_the_technology_s-curve
Exploring the limits_of_the_technology_s-curve
 
Brice dattee
Brice datteeBrice dattee
Brice dattee
 
Bowden 0
Bowden 0Bowden 0
Bowden 0
 
Accenture jumping the_s_curve
Accenture jumping the_s_curveAccenture jumping the_s_curve
Accenture jumping the_s_curve
 
4267
42674267
4267
 
1005.2122
1005.21221005.2122
1005.2122
 
109 bahmani oskooee
109 bahmani oskooee109 bahmani oskooee
109 bahmani oskooee
 
73
7373
73
 
Tsc
TscTsc
Tsc
 
Technology s curves-in_renewable_energies
Technology s curves-in_renewable_energiesTechnology s curves-in_renewable_energies
Technology s curves-in_renewable_energies
 

Recently uploaded

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 

S curve tutorial1

  • 1. MyoStat Motion Control http://www.coolmuscle.com 06/08/2003 S-CURVE DOCUMENTATION AND TUTORIAL FOR THE S-CURVE ON THE COOL MUSCLE
  • 2. MyoStat Motion Control http://www.coolmuscle.com 06/08/2003 Page 2 1. INTRODUCTION The s-curve function allows the user to define a smooth response yet still maintain a high acceleration. In many applications the ideal step response is not one where the maximum speed is reached instantaneously. The jarring effect of high acceleration and deceleration can damage the application, yet a slow acceleration can slow down production dramatically. In these applications the ideal step response is to have a slow initial acceleration, leading into a high acceleration to a low deceleration to the required speed. The resultant speed curve is what is known as an s-curve. Step Response 0 50 100 150 200 250 0.0 0.1 0.2 0.3 seconds pulses/second S-Curve Acceleration High Aceleration Low Acceleration Figure 1: Step response of an S-Curve function. Figure 1 shows how the s-curve can maintain advantages of both a high and low acceleration. High overall acceleration is maintained yet jarring effects are minimised.
  • 3. MyoStat Motion Control http://www.coolmuscle.com 06/08/2003 Page 3 2. K69: S-CURVE K-PARAMETER The K69 parameter is the most significant parameter when dealing with the s-curve function. K69 is unit-less and acts as the gain of the function ranging from 0 to 1024. When it is set to 0 the s-curve function is turned off, i.e. the standard response for the given speed and acceleration is output. When set to 1024 the response is the most defined s-curve function. Calculated Speed 0 50 100 150 200 250 0.000 0.200 0.400 0.600 seconds pulses/second K69=0 K69=512 K69=1024 Figure 2: Calculated s-curve speed response by the Cool Muscle. Figure 2 shows the response calculated by the Cool Muscle (how to capture this response will be described in the tutorial following). As can bee seen in the diagram by adjusting the K69 value from 0 to 1024 the s-curve becomes more pronounced.
  • 4. MyoStat Motion Control http://www.coolmuscle.com 06/08/2003 Page 4 3. S-CURVE TUTORIAL 3.1. Objectives and requirements The objective of this tutorial is to familiarize the user with the s-curve function in the Cool Muscle. K69 is the main parameter, however, creeping speed (K51) and acceleration both play important roles in the forming of a curve. Some prior knowledge of the Cool Muscle may be required. Firmware versions 1.14 and above have the s-curve function implemented. A copy of Cool Works Lite should be installed on the PC attached to a single Cool Muscle through the RS232 port. Microsoft Excel, Matlab or an equivalent graphing program should be available to plot the outputs. Follow the steps in order to ensure full understanding of the function. 3.2. Tutorial steps 3.2.1. Step 1: ensure correct firmware version Only firmware versions 1.14 and above have the s-curve implemented. Open Cool Works Lite (CW Lite) and query “%100”. If version 1.14 or above is loaded this will return some hardware and software information. The line “SV=x.xx” is the current software version loaded. 3.2.2. Step 2: set the automatic poll and timer The automatic poll and timer sets the Cool Muscle to constantly return information. There are a number or modes available, which can be read about in the manual. This tutorial is going to deal with the calculated speed and the real speed. Set the following to program the Cool Muscle to return the calculated speed at an interval of 15 ms. • K66=1 • K67=15 Though in theory the more points the more accurate the curve generated we don’t want to overload the Cool Muscle with communication. Communication has the highest interrupt priority and can disrupt motion if used to frequently.
  • 5. MyoStat Motion Control http://www.coolmuscle.com 06/08/2003 Page 5 3.2.3. Step 3: set the dynamic values and resolution Set the dynamic speed, acceleration and position to the following: • a=100 • s=200 • p=7000 The resolution should be 1000 pulses/rev i.e. K37=3. 3.2.4. Step 4: set the creeping speed (K51) K51, the creeping speed is important to the look of an s-curve. If high initial accelerations are a problem, the creeping speed should be set as low as possible. The creeping speed is defined as the speed from which the motor will start its acceleration. I.e. if the creeping speed is set to 10 it will accelerate as fast as possible to 10 pps (pulses per second) and then accelerate with the required acceleration from there. By default K51 is 10 pps but can be set down to 1pps. Set K51=1. 3.2.5. Step 5: graph the calculated speed K69 is the s-curve parameter and sets the gain of the s-curve. Starting with K69=0, execute the dynamic run command (^). The terminal window of CW Lite should return the speed values at an interval of 15ms. If it does not, return to step 2 and verify the K66 and K67 settings. Copy and paste the values into a graphing program such as Excel or Matlab at intervals of 15ms. Due to calculations in the Cool Muscle the values are calculated with respect to 50000/10 and the maximum speed is 1000. By dividing the returned number by 5 it can be normalized to the maximum real speed. Repeat this step for K69=512 and K69=1024. Remember, the dynamic values are absolute so set the current position back to the origin (|2) before executing the dynamic command (^).
  • 6. MyoStat Motion Control http://www.coolmuscle.com 06/08/2003 Page 6 Calculated Speed 0 50 100 150 200 250 0.000 0.200 0.400 0.600 seconds pulses/second K69=0 K69=512 K69=1024 Figure 3: Calculated speed curve by the Cool Muscle
  • 7. MyoStat Motion Control http://www.coolmuscle.com 06/08/2003 Page 7 3.2.6. Step 6: graph the real speed Repeat step 5 but with K66=3 to graph the real speed of the Cool Muscle. It is not necessary to divide by 5 as the Cool Muscle is outputs the real speed and no longer the calculated speed. The graph should look like the following Figure 4. Real Speed 0 50 100 150 200 250 0.000 0.200 0.400 0.600 seconds pulses/second K69=0 K69=512 K69=1024 Figure 4: Real speed of the Cool Muscle