27.06.2013 Views

Robotino® View2 - Festo Didactic

Robotino® View2 - Festo Didactic

Robotino® View2 - Festo Didactic

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

28<br />

Every 200ms the Arbitrary Waveform Generator creates a pulse of 100ms width and height 1. The<br />

settings for the Arbitrary Waveform Generator are shown below.<br />

I.e. every 200ms there is a rising edge from 0 to 1. With every rising edge the counter increments its<br />

value by 1. After 2s the value will be 10. When the value of the counter is 10, the result of the<br />

comparison of the constant and the counter's value will be added to the current value of step2Count.<br />

As long as the comparision results in false, 0 is added. As soon as the comparision results in true,<br />

1 is added. At the end of every calculation step of the sub-program, the transition condition below<br />

the step in the main program is evaluated. When the global variable "timer" has the value 10, the<br />

sub-program will be left.<br />

The sub-programs of Step3 and Step4 are built equivalently. Select all in Step2 (Ctrl+A) and copy it<br />

to Step3 and Step4. The only difference consists in the fact that step3count respectively step4count<br />

are read and written.<br />

Once you start the main program, Step2, Step3 and Step4 will be executed cyclically for 2s each.<br />

Create and program Step5<br />

© <strong>Festo</strong> <strong>Didactic</strong> GmbH & Co. KG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!