You are on page 1of 5

4/24/2016

35710MotionExampleCoordinatedMotion

(/app/answers/detail/a_id/35710/related/1#)

Support Center (/app/home)

Menu

Motion Example - Coordinated Motion


35710 | Date Created: 10/31/2006 | Last Updated: 03/30/2015
Access Level: TechConnect

Emailthispage

SubscribetoUpdates

Question
ForRSLogix5000,arethereguidelinesforaMotionorCoordinatedMotion?
CanIgetsomeexamplesofwhatMCLMandMCCMinstructionslooklike?
Itseemsliketherearealotofstepstosetupmotionsteps.Isthereaneasierway?

Answer
AttachedisaCoordinatedMotionExamplethat:

RequiresRSLogix5000version12.
UsesMCLMandMCCMinstructionstoproduceaseriesofcoordinatedmovesthataredefinedinabuffer.
EachelementinthebuffercontainstheinformationneededfortheMCLMandMCCMinstructions.

StartingtheMotion
ThreeBooleantagsareusedtostartthemotion:

ThefirstBooleantagcanbefoundinthe Cood_MainRoutine .
ThesecondandthirdBooleantagscanbefoundinthe Move_Buffer routine.
Routine
Run_Coord_Move_Buffer
Home_And_Run

Description
WhenSet,executesthemovebufferroutine
Willhometheaxesthenexecutethemotionasdefinedinthebuffer

Run_Program
https://rockwellautomation.custhelp.com/app/answers/detail/a_id/35710/related/1

1/5

4/24/2016

35710MotionExampleCoordinatedMotion

Run_Program

Willexecutethemotionasdefinedinthebuffer

IncludedintheprojectisaTrendthatwillplotthepositionoftheaxes(plotpositiontrend).Theplotofthemotiondefinedinthisexampleisshownbelow:

Move_BufferDebug
Inaddition,the Move_Buffer routinehasthefollowingdebugfeatures:

SingleStepCanSingleStepthoughthebuffer.WhenRunSingleStepistrue,onebufferstepisexecutedeachtimeSingleStepisset.
RuntoStepWillexecutetoastepwithinthebuffer,thenstop.WhenStopRunisset,themotionwillbeexecuteduntilthestepspecifiedinStopBLockisreached.Atthispoint
RunSingleStepisset,stopping"Auto"mode.

UseAttachedTimeSavingSpreadsheedtosetupMotionSteps
AlsoincludedisanExcelspreadsheetthatisusedtosetupthemotionsteps.ThemovebuffercanbefilledusingthetagmonitorwithinRSLogix5000,butthiscanbetimeconsuming.The
tractorprogramhas240steps,withalmost20fieldsforeachstep.TheExcelspreadsheethasalltheinformationneededtodefinethesteps,butforlinearandcircularmoves.Allthefields
matchthedatarequiredbytheMCLMandMCCMinstructionexceptDwellandNextBlock.

Dwellisnotfunctioning,thoughitissomethingthatIplantoaddinthefuture.
https://rockwellautomation.custhelp.com/app/answers/detail/a_id/35710/related/1

2/5

4/24/2016

35710MotionExampleCoordinatedMotion

NextBlockdefineswhichstepshouldbeexecutednext.Normallyitwouldpointtothenextstep,butitcanbeusedtoskipstepsorjumpbacktothestart.Executionofthebuffered
moveswillstopwithNextBlockis1.
Thespreadsheethas3buttons.

Transfer
HomeMove
StartMove

Transfer Button
Usethisbuttontopokethedatafromthespreadsheettothemovebufferwithinthecontroller.Apopupwillappearwhenthetransferiscomplete.

Duetotheinefficientmethodofpokingdata,240stepscouldtakeaminuteortwo.

Home Move Button


Usethisbuttontohometheaxisandstartexecution.

Start Move Button


Usethisbuttontostartexecution.Inthespreadsheet,youwillhavetosettheTopicIDincellB1oftheRSLogixcontrollerinRSLinx(RSLinxlitedoesnotsupportthisfunctionality).

$MotionProactiveChatPopup

Attachments
R12_Coordnated_Motion.ACD(/ci/fattach/get/764715/0/filename/R12_Coordnated_Motion.ACD) (228.38KB)Tractor1.xls(/ci/fattach/get/764716/0/filename/Tractor1.xls)
(98.5KB)

DISCLAIMER

https://rockwellautomation.custhelp.com/app/answers/detail/a_id/35710/related/1

3/5

4/24/2016

35710MotionExampleCoordinatedMotion

Thisknowledgebasewebsiteisintendedtoprovidegeneraltechnicalinformationonaparticularsubjectorsubjectsandisnotanexhaustivetreatmentofsuchsubjects.Accordingly,the
informationinthiswebsiteisnotintendedtoconstituteapplication,design,softwareorotherprofessionalengineeringadviceorservices.Beforemakinganydecisionortakinganyaction,
whichmightaffectyourequipment,youshouldconsultaqualifiedprofessionaladvisor.
ROCKWELLAUTOMATIONDOESNOTWARRANTTHECOMPLETENESS,TIMELINESSORACCURACYOFANYOFTHEDATACONTAINEDINTHISWEBSITEANDMAYMAKECHANGES
THERETOATANYTIMEINITSSOLEDISCRETIONWITHOUTNOTICE.FURTHER,ALLINFORMATIONCONVEYEDHEREBYISPROVIDEDTOUSERS"ASIS."INNOEVENTSHALL
ROCKWELLBELIABLEFORANYDAMAGESOFANYKINDINCLUDINGDIRECT,INDIRECT,INCIDENTAL,CONSEQUENTIAL,LOSSPROFITORDAMAGE,EVENIFROCKWELL
AUTOMATIONHAVEBEENADVISEDONTHEPOSSIBILITYOFSUCHDAMAGES.
ROCKWELLAUTOMATIONDISCLAIMSALLWARRANTIESWHETHEREXPRESSEDORIMPLIEDINRESPECTOFTHEINFORMATION(INCLUDINGSOFTWARE)PROVIDEDHEREBY,
INCLUDINGTHEIMPLIEDWARRANTIESOFFITNESSFORAPARTICULARPURPOSE,MERCHANTABILITY,ANDNONINFRINGEMENT.Notethatcertainjurisdictionsdonotcountenance
theexclusionofimpliedwarrantiesthus,thisdisclaimermaynotapplytoyou.

ThispageisbestviewedinInternetExplorer10,Firefox31,Chrome37,Safari6ornewer.

Related Articles
MotionExampleMAM,MAH,faultresets,MSO,MAJ,etc(/app/answers/detail/a_id/35711/related/1)
35711|03/30/2015

MotionProgramSamples(/app/answers/detail/a_id/55303/related/1)
55303|03/29/2016

TroubleshootingGuideforControlLogixMotionModule(/app/answers/detail/a_id/28596/related/1)
28596|05/01/2015

MotionControlTuningBasics(/app/answers/detail/a_id/24152/related/1)
24152|09/24/2015

AdvancedMotionTuningDocuments(/app/answers/detail/a_id/24665/related/1)
24665|09/30/2015

https://rockwellautomation.custhelp.com/app/answers/detail/a_id/35710/related/1

4/5

4/24/2016

35710MotionExampleCoordinatedMotion

Previously Viewed Articles

New Site Feedback


GiveFeedback

(http://www.rockwellautomation.com/global/blog/overview.page)
(https://www.facebook.com/ROKAutomation)
(https://plus.google.com/+RockwellautomationInc)
(https://www.linkedin.com/company/rockwell
(http://www.slideshare.net/RockwellAutomation)
(http://twitter.com/ROKAutomation)
(http://www.youtube.com/rokautomation)
automation)

https://rockwellautomation.custhelp.com/app/answers/detail/a_id/35710/related/1

5/5