robopro software for fischertechnik ®. robopro screen element window set to level 1: beginners...

39

Click here to load reader

Upload: janice-jackson

Post on 30-Dec-2015

261 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

RoboPro Software for

fischertechnik®

Page 2: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

RoboPro Screen

ElementWindow

Set to Level 1:Beginners

ProgramWindow

Toolbar

Page 3: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Setting up the Interface

Select the type of interface and port to connect to.

Page 4: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Checking the Interface

Inputs

Outputs

Analog Inputs

Interface Status

Page 5: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Checking the Interface

Page 6: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

The Element Window

Function blocks are Icons that, when selected, access Instruction Sets in the RoboPro software to perform the operations identified by the icons. They are located on the left-hand side of the screen.

Page 7: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

The Flowchart

When function blocks are placed on the screen and connected, a Flowchart is created.

Page 8: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

530 CALL M1 On

BASIC Programming Graphic Programming

500 INIT

510 If E1 = 1 THEN GOTO 530 520 GOTO 510

540 END

Sample Instruction Sets Icons

Programming

Page 9: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Motor Outputs provide power to devices. The image of the function block can be changed from a motor to an electromagnet, lamp, solenoid, or buzzer to match the physical component that it controls.

Motor Output

Select InterfaceConnection

Select Speed,Brightness, or Intensity

Choose Image

Choose Action

Page 10: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Motor Outputs

Output Images

Page 11: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Start & End

The Start and End function blocks begin and end a program.

Page 12: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

The program to control two output devices might look like this.

Start Program

M1 Output On

M2 Output On

End Program

Outputs

Page 13: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

The Time Delay is used to introduce a delay in a program.

Time Delay

A time step can be set for seconds, minutes, or hours.

Page 14: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Digital Inputs

InputsThe Input function block queries the state of a digital input I1-I8 on the interface. A digital input can only have one of two states, 0 or 1.

Examples Pushbutton Switch Pushed or not pushedPhototransistor Light or darkReed Switch Switched or not switched

Page 15: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Digital Inputs

Phototransistor(light sensor)

Switch (pressure sensor)

Reed Switch(magnetic sensor)

Input Images

Page 16: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Digital Inputs can represent a variety of switch mechanisms, including a pushbutton switch, phototransistor, or reed switch.

Digital Inputs

Digital Inputs connect to I1-I8 on the interface.

Page 17: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Text

The Text tool is used to display information on the program page.

Page 18: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Wait for Input

Wait for Input responds to a digital signal change.

Page 19: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Wait for Input

Wait for Input is simpler and easier than using the digital input icon for some applications.

Page 20: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Counter Loop

With the Counter Loop, you can execute a specific part of the program several times.

Page 21: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Counter Loop

This Counter Loopallows a light toflash on for 2 seconds,then off for 2 seconds. The sequence will occur 10 times before the program ends.

Page 22: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Analog Branch

With the Analog Branch, you can comparethe value of an analoginput with a fixednumber. You can branch tothe Yes (Y) or No (N)exit based upon the comparison.

Set the condition and entera comparison value.

Page 23: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

This Analog Branchuses a photocellsensor to determinewhether the reading (value of AX) is greater than 800. When it is, the light is turned off and the program ends.

Analog Branch

Page 24: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Additional Programming Options

At times more program options are necessary.

Level 4 provides additional programming options.

Page 25: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Variables

Variables are accessed from the element window.

Page 26: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Variables

A Variable will store a value for use by the program.

It is best to be descriptive when naming the variable so that its function is clear.

Page 27: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Commands

Commands are used to change the value of variables.

Page 28: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Branch and Wait

Branch and Wait functions make decisions using values entering through the branch or branches on the left.

Page 29: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Variables

A Variable can be used to count, as in this example. The variable Dogs is increased by one each time through the loop until its value is greater than 3. The program then ends. The variable blocks are named the same so that the values always match.

Page 30: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Inputs and Outputs

Inputs and Outputs are used to provide information to affect variables and to display values.

Page 31: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Variables

A Variable can be used to store a value. In this example the value of a photocell is reflected in the variable by means of an Analog Input and is used to determine which way a motor will turn.

Page 32: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Operators

Operators allow combining or comparing two variables using mathematics or logic.

Page 33: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Panel Elements

Panel Elements are used to build a display or control board to interact with a fischertechnik® model.

Page 34: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Displays

Values can be displayed on the screen.

Page 35: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Setting up a Display

Text Displays can be customized.

Page 36: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Displays

Panel Displays are used to assign the output device.

Page 37: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

SubprogramsSubprograms are pieces of a program that can be used many times in different places. They can also allow the programmer to isolate different portions of a complex program.

Page 38: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Subprograms

Subprograms utilize the Entry and Exit commands.

Page 39: RoboPro Software for fischertechnik ®. RoboPro Screen Element Window Set to Level 1: Beginners Program Window Toolbar

Subprograms

Once saved, the subprogram can be selected from available Loaded Programs.