Professional Documents
Culture Documents
ROBOPro
USA
IfyouarealreadyfamiliarwithROBOProandonlywanttofindoutwhatnewfeatureswere
addedwiththeROBOTXController,youshouldreadonlychapters11through13ofthema?
nual.
Solet’sgo!YoumustalreadybeitchingtoknowwhatpossibilitiesROBOProgivesyouforpro?
grammingyourfischertechnikmodels.Havefun!
3
GB
ROBOPro
USA
• MicrosoftWindows,VersionWindowsXPorVista
• A free USB interface to connect the ROBO TX Controller. To connect the ROBO Interface
youneedafreeUSBinterfaceorafreeRS232interface(COM1toCOM4).
Firstofall,ofcourse,youmuststartthecomputerandwaituntiltheoperatingsystem(Windows)
has finished loading. The ROBO Interface should only be connected to the computer after suc?
cessfulinstallation.InserttheinstallationCDintotheCD?ROMdrive.Theinstallationprogramon
theCDwillthenbestartedautomatically.
• InthefirstWelcomewindowoftheinstallationprogramyoupushtheNextbutton.
• Thesecondwindow,Important Notes,containsimportantup?to?datenotesaboutinstalling
theprogramorabouttheprogramitself.Heretoo,youclickontheNextbutton.
• Thethirdwindow,License Agreement,displaystheROBOProlicensingcontract.Youmust
clickYestoaccepttheagreementbeforeyoucanproceedtothenextwindowwithNext.
• Inthenextwindow,User Details,pleaseenteryourname.
• The next window, Installation Type, allows you to choose between Express Installation
andCustomized Installation.Withcustomizedinstallation,youcanchoosetoleaveoutin?
dividualcomponentsoftheinstallation.IfyouareinstallinganewversionofROBOProover
anolderversion,andyouhavemodifiedsomeofthesampleprogramsintheolderversion,
youcanexcludethesampleprogramsfromthecustomizedinstallation.Ifyoudon’tdothis,
themodifiedsampleprogramswillbeoverwritten without warning.Ifyouselectcustomized
installationandpressNext,anadditionalwindow,allowingyoutoselectthecomponents,will
appear.
• IntheTarget directory windowyoucanselectthefolderordirectorypathwhereyouwant
theROBOProprograminstalled.ThiswillnormallybethepathC:\ProgramFiles\ROBOPro.
However,youcanalsoenteranotherdirectory.
• WhenyoupushtheFinishbuttoninthelastwindow,theinstallationisperformed.Assoon
as the installation is finished – this normally only takes a few seconds – the program an?
nouncessuccessfulinstallation.Ifthereareproblems,anerrormessageisdisplayed,which
shouldhelpyoutosolvetheproblem.
Important note for the installation under Windows 2000, XP and Vista:
The USB driver can only be installed by a user with PC systems administrator privileges.
Should the installation program advise you that you are not permitted to install the USB
driver,youmusteitheraskyoursystemadministratortoinstallyourdriverorinstallROBOPro
withoutthisdriver.
4
GB
ROBOPro
USA
In order to install the USB driver, you must first connect the ROBO TX Controller or the ROBO
InterfacewithaUSBcabletoyourcomputerandsupplyitwithpower.Windowsrecognizesauto?
maticallythattheInterfaceisconnectedanddisplaysthefollowingwindow:
Dependingontheoperatingsystem,theappearanceofthewindowcanbesomewhatdiffer?
entfromtheillustrationabove!
5
GB
ROBOPro
USA
InthenextwindowyoudeactivateSearch removable mediaandactivateAlso search following
sources. Then you click Search and select the sub?directory USB Driver Installation in the
directoryinwhichROBOProisinstalled(thestandarddirectoryisC:\ProgramFiles\ROBOPro\).
FortheROBOTXControlleryoufirstselectthesub?directoryTXController,fortheROBOInter?
face the sub?directory ROBOInterface, and then the sub?directory containing the driver for your
operatingsystem,forexampleWinXP.
UnderWindowsXP,youmayseethefollowingmessageafterpressingNext:
6
GB
ROBOPro
USA
TheUSBdriverisstillbeingtestedbyMicrosoft.Oncetestingiscompletedthedriverwillbeap?
proved by Microsoft, so that this notice no longer appears. In order to install the driver, press
Proceed with installation.
Finally,thefollowingmessagewillappear:
PressFinishtocompleteUSBdriverinstallation.
7
GB
ROBOPro
USA
TheUninstallentryallowsyoutouninstallROBOPro.TheHelpentryopenstheROBOProHelp
file,andtheROBOProentryopenstheROBOProprogram.NowselecttheentryROBO Proto
launchtheprogram.
Thewindowhasamenubarandtoolbarwithvariousoperatingbuttonsaboveaswellasawindow
ontheleft?handsidewithprogram elements.Ifyouseetwostackedwindowsintheleftmargin,
ROBOProisnotsetonLevel 1.ToallowthefunctionalityofROBOProtomatchyourgrowing
knowledge,youcansetROBOProfromLevel1forbeginnersuptoLevel5forexperts.Lookin
theLevelmenutoseewhetherthereisacheckmarkbyLevel 1: Beginners.Ifnot,pleaseswitch
tolevel1.
ROBO Pro is configured to use the ROBO TX Controller as interface. You can see this by the
presenceofthebuttonROBOTXinthetoolbar.InChapter 11.2 Environmentyoulearnhowyou
canswitchtotheearlierROBOInterfaceandwhatyouneedtopayattentionto.
8
GB
ROBOPro
USA
Nowyoumayeithercreateanewprogramfileoropenanalreadyexistingprogramfile.Wedonot
intendtocreateanewprogramfileuntilChapter3,whenwewillwriteourfirstcontrolprogram.To
familiarizeourselveswiththeuserinterface,weshallopenanalreadyexistingsampleprogram.To Open
do this, you click the entry Open in the File menu, or use the Open button in the toolbar. The
samplefilesarefoundinthefolderC:\Program Files\ROBOPro\Sample Programs.
Openthefile\Level3\Motor start stop.rpp:
HereyoucanseewhatasimpleROBOProprogramlookslike.Inprogramming,control?program
flowchartsarecreatedintheprogramwindowusingprogramelementsfromtheelementwindow.
Thefinishedflowchartscanthenbecheckedbeforebeingtestedusingaconnectedfischertechnik
Interface. But not too fast: we shall learn programming step?by?step in the following chapters!
Havingthusgainedyourfirstimpressionoftheuserinterface,youclosetheprogramfileusingthe
9
GB
ROBOPro
USA
Close command in the File menu. You can answer No to the question of whether you want to
savethefile.
10
GB
ROBOPro
USA
HereyoucanselecttheportaswellastheInterfacetype.
11
GB
ROBOPro
USA
Onceyouhaveselectedtheappropriatesettings,closethewindowwithOK.NowopentheInter?
facetestwindowwiththeTestbuttononthetoolbar.
Test
ItshowstheinputsandoutputsavailableontheInterface.Thegreenbarinthelowerleftofthe
windowdisplaystheconnectionstatusofthePCtotheInterface:
• Connection: RunningconfirmscorrectconnectiontotheInterface
• Connection: Stoppedindicatesthattheconnectionhasnot beencorrectlysetupandthe
PCwasunabletoestablishaconnectiontotheInterface.Inthiscase,thebarwillappearred.
TobeabletochangetheInterfaceorconnectionsettings,youmustclosetheTestwindow(with
theXintheupperright)andselectanotherportoranotherInterfacetypeaspreviouslydescribed,
viatheCOM/USBbuttoninthetoolbar.
IfyouhavebeenabletosetuptheconnectionbetweenPCandInterfaceasdescribedandthe
greenbarappears,youwillberelievedtoknowyoucanskipthenextsection.
Ifnot,perhapsthetipsinthenextsectioncanhelpyouout.
12
GB
ROBOPro
USA
supply sufficient voltage. If the battery voltage falls below 6 V, the ROBO TX Controller’s
processormaystopworking.Inthiscasethedisplaywillstopshowinganyinformation.Ifthe
voltageistoolow,youmustreplaceor,whereappropriate,rechargethebatteries,or,ifpos?
sible,testtheInterfacewithamainspowersupply.
• Has the USB driver been installed correctly?
You can find this out by checking in the Device Manager in the Windows Control Panel
whethertheentryfischertechnikUSBROBOTXControllerappearsunderconnections(COM
andLPT)andfunctionsproperly.Shouldthisentrynotappear,installtheUSBdriveragain.If
anerrorappears,uninstallthedriver(clickontherespectiveentrywithyourrightmousebut?
ton)andinstallitonceagain.
• Isthereaconflictwithanotherdevicedriveronthesameport(e.g.amodem)Thisdriver
mayneedtobedeactivated(seeWindowsordevicehandbooks).
• Ifyoustillcan’testablishaconnectiontotheInterface,thenprobablyeithertheInterfaceor
the connection cable is faulty. In this case, you should consult fischertechnik Service (Ad?
dress:seemenu:“?”/Information about).
13
GB
ROBOPro
USA
• Counter inputs C1-C4
Theseinputsallowyoutocountfastpulseswithfrequenciesofupto1000pulsespersecond.
Youcanalsousethemasdigitalinputsforbuttons(notsuitableforthetrailsensor).Ifyou
connectabuttontothisinput,everypushofthebutton(=pulse)willincreasethevalueofthe
counterby1.Thisallowsyou,forexample,toletarobottravelaspecificdistance.
• Motor outputs M1—M4
M1–M4aretheoutputsfromtheInterface.Thisiswherewhatarecalledactuatorsarecon?
nected.Thesecan be,e.g.,motors,electromagnetsorlamps.The4motoroutputscan be
controlled in speed and in direction. Speed is controlled using the slide control. You can
choosebetweenacoarseresolutionwith8differentstepsofspeedorafineresolutionwith
512steps.Theprogramelementsinlevels1and2onlyusethecoarseresolution,butstart?
ingwithlevel3,thereareelementswhichallowyoutousethefineresolution.Thespeedis
displayednexttotheslidercontrolasanumber.Ifyouwouldliketotestanoutput,youcon?
nectamotortoanoutput,e.g.M1.
• Lamp outputs O1—O8
Each motor output can alternatively be used as a pair of individual outputs. These can be
usedtocontrolnotonlylamps,butalsomotorswhichonlyneedtomoveinonedirection(e.g.
foraconveyorbelt).Ifyouwouldliketotestoneoftheseoutputs,youconnectonelampcon?
tact to the output, e.g. O1. You connect the other lamp contact with one of the ground
socketsoftheR(⊥).
• Extension modules
TheROBOTXControllerconnectedtothePCviatheUSBport(=master)cantakeupto8
additionalROBOTXControllerasextensions(seemanualROBOTXController).Thesebut?
tonsallowyoutoselectwhichoftheconnecteddevicesyouwouldliketoaccesswiththetest
window.
14
GB
ROBOPro
USA
Nowyouseealargewhitedrawingsurface,inwhichyouwillenteryourfirstprogram.Ifyousee
twostackedwindowsintheleftmargin,pleaseswitchtoLevel1: BeginnersintheLevelmenu.
15
GB
ROBOPro
USA
3.2 The elements of a control program
Now wecanset aboutcreatingour firstcontrol program.Weshalldothison
thebasisofaconcreteexample:
Functional description:
Imagineagaragedoorthatcanbeopenedautomatically.Maybeyou’veeven
gotoneathome!Youarriveatthegarageinyourcarand,withthepushofa
button on the transmitter, the door, driven by a motor, is opened. The motor
mustkeeprunninguntilthegaragedooriscompletelyopened.
Wordsarearathercumbersomeandnotverygraphicwaytodescribeacontrol
program.Sowhatwecallflow chartsareusedtorepresentthesequenceof
actions to be performed and the conditions that need to be fulfilled for these
actions.Inthecaseofourcontrolsystem,theconditionfortheaction“switching
on motor” is that the button be pressed. It is easy to read one of these flow
charts:justfollowthearrowsstep?by?step!Theseshowexactlyhowthecontrol
systemworks–theindividualstepscanonlybecarriedoutintheordergiven
bythearrows,neverinanyotherway.Otherwiseitwouldn’tbeworthgoingto
allthetrouble,wouldit
UsingourROBOProsoftware,wecannowdrawpreciselythisflowchartandinso
doingcreatethecontrol programfortheconnectedhardware(Interface,motors,
switches,etc.).Thesoftwaredoestherest,which,asithappens,isjustthewayit
iswithlargeindustrialapplicationstoo!Sowecanconcentratefullyonthecreation
oftheflowchart.
You put the flow chart together from program elements. Another new concept
Don’tworry!InROBOProtheindividualelementsthatareputtogether toforma
flowchartarecalledprogramelements.Theaction “switchon motor” meansjust
that:theInterfaceshouldactuallyswitchonthemotorthatisconnectedtoit!You
will find the available program elements in the element window on the left?hand
side.
16
GB
ROBOPro
USA
Thenextelementintheprogramflowchartqueriesaninputandthen
branchestoonepathoranotherdependingonitsstate.Intheelement
window,clickontheelementdepictedrightandthenmovethemouse
below the previously inserted Start element. If the upper input of the
Branch element is one or two grid points below the exit of the Start
element, a connecting line will appear in the program window. If you
left?clickagain,theBranchelementisinsertedandautomaticallycon?
nectedwiththeStartelement.
17
GB
ROBOPro
USA
Editing program element properties
Ifyourightclickonaprogramelementintheprogram
window, there will appear a dialog window, in which
youcanchangetheelement’sproperties.TheProper?
tieswindowforaBranchelementisillustratedonthe
right.
• ButtonsI1to I8allowyoutoenter whichofthe
Interface’s inputs is to be queried. The inputs
C1D?C4D correspond to counter inputs if you
usethemasdigitalinputs.Wewilldealwiththe
inputsM1E?M4Elater.
• The additional inputs C1D?C4D and M1E?M4E
are covered in the reference section in 8.1.3
Digital Branchonpage61.
• The selection Interface / Extension is not
explaineduntilChapter7Controlling several In-
terfacesonpage56.
• Under Sensor type you can select the sensor connected to the input. Digital inputs are
mostly used with push?button sensors, but often also with phototransistors or reed?contact
switches.Selectingthesensorautomaticallysetstherequiredinputtypefortheuniversalin?
putsI1?I8oftheROBOTXController.
• UnderInterchange 1/0 connectionsyoucaninterchangethepositionsofthe1and0exits
oftheBranchelement.Normallythe1exitisbelowandthe0exitisontheright.Butsome?
times it’s more practical to have the 1 exit on the right. Press on Interchange 1/0
connectionsandthe1and0connectionswillbechangedoverassoonasyouclosethe
windowwithOK.
Hint:Ifyouconnectamini?sensorasa“closer”,usingconnections1and3oftheswitch,the
program branches to the “1” branch if the switch is depressed, and otherwise to the “0”
branch.
If you connect a mini?sensor as an “opener”, using connections 1 and 2 of the switch, the
program branches to the “1” branch if the switch is depressed, and otherwise to the “0”
branch.
The next element in our garage door control system is a Motor ele?
ment. Insert it into the program as you did with the previous two
elements,thistimeundertheBranchelement.Itisbest toplacethe
element in such a way that that it is automatically connected to the
elementabove.
18
GB
ROBOPro
USA
TheMotorelementallowsyoutoswitchonoroffeitheramotor,or
a lamp or an electromagnet. Again, you open the Properties
windowfortheMotorelementbyright?clickingontheelement.
• You can choose which of the Interface’s outputs to control
bymeansofbuttonsM1toM4.
• Under Image you can choose an image to represent the
fischertechnikcomponentconnectedtotheoutput.
• WewilldealwiththeselectionInterface / Extensionwhen
wegettoChapter77Controlling several Interfacesonpage
56.
• Under Action you can select how the output is to be affected. You can start a motor with
directionleft(counterclockwise)orright(clockwise)orstopit.Youcanswitchalamponoroff.
• UnderSpeed/Intensityyoucansetthespeedatwhichamotoristooperate,orhowbrightly
alampshouldglow.Possiblevaluesare1to8.
ForourflowchartweneedthecommandMotor M1 left with speed 8.
19
GB
ROBOPro
USA
Hint:Italineshouldevernotcorrectlyjoinedtoaconnectionoranotherline,thiswillbeindi?
cated by a green rectangle at the point of the arrow. In this case you have to create the
connectionbyshiftingthelineorbydeletingitanddrawingitagain.Otherwisetheprogram
flowwillnotworkatthispoint.
Note:ConnectingtheInterfacetothePCandestablishingInterfacesettingshasalreadybeen
coveredinthepreviouschapter,whichyoucanreferbacktofordetails.
Beforetestingtheprogram,youshouldsavetheprogramfileontheharddriveofyourcomputer.
ClickonthecommandSave as ontheFilemenu.Thefollowingdialogwindowwillthenappear.
20
GB
ROBOPro
USA
Under“Savein”,choosethedirec?
toryinwhichyouwanttosavethe
file. Under “Filename”, enter a
namenotyetinuse,e.g.GARAGE
DOOR and confirm by left?clicking
on“Save”.
To test the program,
push the start button
(shown left) in the
Start toolbar.First,ROBOProwilltestwhetheralltheprogramelementsareproperlycon?
nected. Should an element not be correctly connected or something else not be in order, it is
markedinred,andanerrormessageisdisplayeddescribingwhatisnotright.If,forexample,you
haveforgottentoconnecttheNo(N)exitofaprogrambranch,itwilllooklikethis:
Ifyouhavereceivedanerrormessage,youmustfirstofallcorrectthereportederror.Ifyoudonot,
theprogramwillnotbestarted.
Note:Youwillfindafullexplanationofthismodeofoperationandof“DownloadOperation”in
Section3.7,onpage24.
21
GB
ROBOPro
USA
ThefirstBranchelementwillbemarkedinred.Thisshowsthattheprogramis
waitingatthiselementforanevent,namelythepressingofthebuttononI1,
whichissupposedtoopenthegaragedoor.AslongastheswitchoninputI1
hasnotbeenpressed,theprogramtakestheNo(N)alternativeofthebranch
andgoesfromtherebacktothebeginningofthebranchagain.Nowpressthe
switch connected to input I1 of the Interface. This fulfils the condition for
proceeding,andthemotorisswitchedon.Inthenextstep,theprogramwaits
fortheendswitchoninputI2tobepressed.Assoonasyouoperatetheend
switchonI2,theprogrambranchestothesecondMotorelementandswitches
the motor off again. Finally the program arrives at the program end. A mes?
sagewillappearsayingthattheprogramhasbeenterminated.
DideverythingworkCongratulations!Thatmeansyou’vecreatedandtested
yourfirstcontrolprogram.Ifitdoesn’tworkproperly—don’tgiveup,justcheck
through everything carefully again; there must be a mistake hidden in there
somewhere.Everyprogrammermakesmistakes,andmakingmistakesisthe
bestwaytolearn.Sokeepyourchinup!
Ifyouhavetriedyourfirstcontrolprogramonarealmodelgaragedoor,the
door will now be open. How can we close it again Of course we can start the motor again by
pushingabutton!Butwewanttotryanothersolution,andlearnaboutanewprogramelementin
the process. To do this, you start by saving the program under a new name (we will need the
currentflowchartagainlater).UsethemenuitemSave as ...intheFilemenutodothis,entering
anasyetunusedfilename.
22
GB
ROBOPro
USA
The finished flow chart should look roughly as pre?
sentedontheright.Forthesakeofpresentation,the
newprogramelementshavebeenmovedtotheright. Start
Oncetherearenomoremistakesintheflowchart,you
can test the extended garage door control system as
usualwiththeStartbutton.Themotorisswitchedon
byoperatingtheswitchonI1, andswitchedoffagain
byoperatingI2.Thisishowthegaragedoorisopened.
NowtheTimedelayprogramelementhasaredborder
for10seconds,thatisthedelaytimeweset.Thenthe
motorisswitchedontoturningtheotherdirectionuntil
the switch on I3 is operated. You should also try
changingthedelaytime.
Symbol
Waitfor Input=1 Input=0 Change0?1 Change1?0 Anychange
(closed) (open) (opento (closedto (1?0or0?1)
closed) open)
Same
function
using
Branch
alone
AcombinationofBranchelementscouldbeusedinstead,buttheWait for Inputelementmakes
thingssimplerandeasiertounderstand.
23
GB
ROBOPro
USA
changes are regarded as pulses. With pulse wheels, one normally waits for changes in either
direction,sothataresolutionof8stepsperrevolutionisobtainedwith4gearteeth.
24
GB
ROBOPro
USA
tested,theprogramcanbedownloadedontotheROBOTXController.TheproblematicUSBcable
canbereplacedbyaBluetoothconnection.Inthatwaythemodelhasunrestrictedmobilityevenin
onlineoperation(seemanualROBOTXController).
Butonlineoperationalsohasadvantagescomparedwithdownloadoperation.Incomparisonwith
theInterface,acomputerhasmuchmoreworkingmemory,andcancalculatemuchfaster.Thisis
an advantage with large programs. Also, during online operation a ROBO TX Controller and a
ROBOInterfacecanbecontrolledsimultaneouslyfromaprogram.
Anoverviewofthetwomodesofoperation
25
GB
ROBOPro
USA
Formobilerobots,theoptionStart program with key on Interfacemakesmoresense.Thisis
because, if you don’t have a Bluetooth interface, you still have to unplug the USB cable before
yourprogramsetstherobotinmotion.Inthiscase,youstartthedownloadedprogrambyusingthe
leftselectionkeyoftheTXController.
ByusingthefunctionAutostartoftheROBOTXController,aprogramisstartedautomaticallyas
soonastheInterfaceissuppliedwithpower.Inthisway,youcanforexampleyoucansupplythe
Interfacewithpowerviaamainsadapterwithatimeswitch,andstarttheprogrameverydayatthe
sametime.Thenyoudon’thavetoeitherleavetheInterfacepermanentlyswitchedonorstartthe
programwiththeselectionkeyeverytimeyouswitchiton.
Note:
YoucanalsofindacomprehensivedescriptionofthefunctionsoftheROBOTXControllerin
theaccompanyingoperatingmanual.
26
GB
ROBOPro
USA
A different approach to connecting lines
Connectinglinescanalsobecreatedbymovingprogramelements.Ifyoumovea programele?
mentsothatitsentryisoneortwogridpointsbelowtheexitofanother,aconnectinglinebetween
theelementsiscreated.Thisalsoappliestoanexitthatismovedoveranentry.Afterthat,you
canmovetheprogramelementtoitsfinalpositionordrawfurtherlinksfortheremainingentries
andexits.
27