Want to create interactive content? It’s easy in Genially!

Get started free

STAGE 3- CYCLIC PROGRAMMING STRUCTURES

ing.rolando.rdz

Created on March 17, 2025

Start designing with a free template

Discover more than 1500 professional designs like these:

Transcript

STAGE 1

1.1 Programming applied to robotics - Basic concepts of Programming - Robot Programming Process - Use of Variables - Programming structures 1.2 Operation of a robot - Basic operation - Motion

Previous knowledge.

1.3 Programming in Graphical Environments - Rogic Software 1.4 Rogic work interface - Rogic main screen - Options menu - Buttons area - Programming area - Clear commands - Navigation bars -

STAGE 1

Previous knowledge.

1.5 Other platforms for robot programming - What is Tinkercad? - Building electronic circuits with Arduino in Tinkercad - Benefits of using Tinkercad -

STAGE 1

Previous knowledge.

STAGE 2

Previous knowledge.

2.1 Programming structures 2.2 Sequential structure - Definition of concepts 2.3 Command blocks for sequential programming - DC Motor - ON - Servo - OFF -Delay - Combination of ON, OFF and Delay commands. -

STAGE 2

2.4 Tinkercad Work Interface - Main Screen - Top Toolbar - Component Library - Workplace - Main Components in Tinkercad - Basic Circuit Example -

Previous knowledge.

Dimension 1 Retrieval

page 96 -

Activity

Read the following text and answer the activities on the next page.

Page 97, 98

3.1 Cyclic Programming Structure

page 99 Reading.

Preparatoria 1 UANL

Stage 3: Cyclic programming structures

Por : Ing. Rolando Rodriguez Rodriguez

Competency elements:

- Recognize cyclical command blocks to create programs in different types of software. - Distinguish cyclical command blocks for solving specific tasks in various software . - Use cyclical programs to execute specific tasks in multiple software applications. -

VÍDEO author: CNBC INTERNATIONAL

Previous Knowledge

+info

Question time.

What do you understand by industrial revolution?

Previous Knowledge

+info

3.2 Cyclic command blocks

A. While Operation. -It is a cyclic command block that allows to execute a series of command blocks (instructions) repeatedly while the given condition is true; this generates a loop (cycle). -It is necessary that the condition ever becomes false, otherwise it would enter an infinite loop of repetitions (infinite loop) and the program would be considered blocked. -

Example 1 (While)

-In the following example, variables are declared to keep track of iterations in the program, with variables that increase in value. -At a high school in UANL, evacuation drills to an established meeting point are conducted. The robot´s task is to emit 5 sounds so that when the students hear them, they proceed with the evacuation. -

Example 1 (While)

3.2 Cyclic command blocks

B. Loop. -This command block allows one or more instructions to be executed repeatedly a specific number of times. -Inside the While button is the Loop command block. -

Example 2 (Loop)

-A school is located in an area of high risk of insecurity and you want to notify by means of a robot (which is in each room) with flashing lights when there is danger near it and activate a security protocol. The robot´s task is to turn a LED light on and off for 1 second and repeat this sequence 3 times. -

Example 2 (Loop)

3.2 Cyclic command blocks

C. Break. -The break command block ends the repetitive loop immediately without having to analyze the condition of the loop. When the break statement is executed, a jump is produced to the first line outside the "for" that contains it. It must be considered that if we are in nested cyclical structures, it only leaves from the first repetitive structure that contains it. -Inside the While button is the Loop command block. -

Learning Activity 1

Page 108 -

THANK YOU!

By: Rolando Rodríguez