830 likes | 887 Views
Getting Started with Fischertechnik LLWin 3.03. Function Blocks Subprograms Editing Commands Interface not connected Downloading Copying Subprograms. Variables for Counting Impulses Analog Inputs (EX, EY) Using Formulas Menu Commands Setting the system up Starting a new program.
E N D
Function Blocks Subprograms Editing Commands Interface not connected Downloading Copying Subprograms Variables for Counting Impulses Analog Inputs (EX, EY) Using Formulas Menu Commands Setting the system up Starting a new program LLWin 3.02 Index Page
What you will need to get started • LLWin 3.02 Software • Computer • Interface • Power supply • Serial Cable • Fishertechnik Basic Building Blocks
Setting up the System • Connecting the interface and the computer Using the provided serial cable connect the interface and computer together
Setting up the Software • Under options Select Setup Interface Change the port setting
Check Interface Use this to test connections between computer and model. Check Output Devices M1 –M4 Check Digital Input Devices E1 – E8 Check Analog Input Devices EX & EY BACK
Starting a “New” project • Go to Projects and select new
Starting a “New” project The Start and Stop Function Blocks begin and end a program.
Starting a “New” project When Function Blocks are connected, aFlow Chart is created. ThisFlow Chartis the program that runs the instruction sets [and fischertechnik model]. BACK
Starting a “New” project • Function Blocks
Output Input Edge Position Start End Reset Emergency Stop Terminal Display Message Show Values Variable +/-1 Assignment Compare Beep Wait Text Function Blocks BACK
Function Blocks • Outputs
Function Blocks • Outputs Electromagnet Lamp Motor
Function Blocks • Outputs You switch one of the inputs M1-M4 of the interface using the output block (a motor, Lamp or Electromagnet can be connected You must select which output you want to use in the “Type” dialog field BACK
Function Blocks • Inputs
Function Blocks • Inputs Photo-Transistor Switch Reed Contact
Function Blocks • Inputs The “Input” function block queries the state of a digital input E1-E8 on the interface. They may be a Pushbutton switch, Photo-transistor, or a Reed contact. A digital input can only have one of two states, 0 or 1. Examples: Pushbutton switch Pushed or not pushed Photo-transistor Light or Dark Reed Contact Switched or not switched BACK
Function Blocks • Edge
Function Blocks • Edge The Edge function waits until a digital input switches either from 0 to 1 or from 1 to 0. This transition is called an “Edge”. BACK
Function Blocks • Position
Function Blocks • Position The position function block counts impulses at a digital input until the desired result is reached. Each edge at the input is counted, i.e., if a button is pushed and then released, two inputs are counted. The current number value is stored in the counter variable. If you activate the “Use standard counter” button in the dialog box, a counter Z1-Z16 is assigned automatically to a digital input E1-E16
Function Blocks • Position Result The input Counter Counting Direction BACK
Function Blocks • Start
Function Blocks • Start A flowchart always begins with a start function block. ***If this block is missing at the beginning, the flow chart is not processed*** If a project has several flowcharts, each of them must contain a start block. The different flowcharts are then started simultaneously. BACK
Function Blocks • End
Function Blocks • End If a flowchart should be ended, you connect the output of the last block with the End block. A flowchart sequence can be ended at different spots using the End function block. But it is also possible to connect several outputs with one single End blocks. But it is possible that a flowchart sequence is a continuous loop and does not contain any End Icon. BACK
Function Blocks • Reset
Function Blocks • Reset. The Reset function block resets all sequences of a project to the start as soon as the condition entered in the dialog box has been fulfilled. *** The Reset block is placed on the programming surface with out connection lines to the other blocks*** ***Only one Reset block may be used in a project***
Function Blocks • Reset. You enter the condition, which triggers the reset, in the dialog box when you insert the block. A simple Reset condition can be “E1”, for example. Then the Reset is triggered as soon as this condition is fulfilled, i.e., E1 becomes 1. The program will start at the beginning as soon as the condition no longer applies, i.e., E1 becomes 0 again. ***Consequently, a project that is running on the intelligent interface in download mode without connection to a PC can be stopped and restarted via a digital input, for example, without the necessity of you having to delete it.***
Function Blocks • Reset. A mathematic formula can be entered as a condition in the dialog box, e.g., Var. 5 = 6. The comparison operations, the logical links and the parentheses can be clicked directly in the help for edit of the dialog box. Maximum length of a formula is 40 characters. BACK
Function Blocks • Emergency Stop
Function Blocks • Emergency Stop The (Emergency) Stop function block switches off all outputs at the interface when it is activated. ***Only one Stop Block may be used in a project*** It is setup the same way as the Reset Block BACK
Function Blocks • Terminal
Function Blocks • Terminal The terminal function block serves to display and enter specific values during the program operation. It is also placed on the programming surface without connection lines to the other blocks.
Function Blocks • Terminal Uses Output Display Input Variable Display Text Display Emergency Off Switch Terminal Parameters EA – ED
Function Blocks Outputs • Terminal Analog Inputs Message block Presentable inputs 10 Digital Switches BACK
Function Blocks • Display
Function Blocks • Display The Display function block serves to display a value, a variable or the inputs EX – EY or EA – ED on one of the two displays of the terminal. When you insert the block, you select in the function dialog box which of the two displays DIS1 or DIS2 you want to use and which value should be shown. BACK
Function Blocks • Message
Function Blocks • Message Displays messages up to 17 characters as text with the ability to change colors. BACK
Function Blocks • Show Values
Function Blocks • Show Values This block shows the current value of a variable when the program is in online mode. The block is placed on the programming surface without connection lines to other blocks. You enter in the dialog box which variables (VAR1-99, Z1-Z16) should be shown. In addition to variable values, the values of digital and analog inputs as well as the current values of parameter EA-ED can be output. ***It is also possible to show another variable in the block while the program is running. To do this, you call the dialog using the mouse button on the left and change the Variable*** BACK
Function Blocks • Variable
Function Blocks • Variable You can increase and decrease the value of a variable by one using this function block. You enter which variable should be processed in the dialog fields. The variables VAR1-99 as well as the standard counters Z1-Z16 are available. You can also select whether the value should be increased or decreased by one. This counter direction is also displayed in the icon of the block BACK
Function Blocks • Assignment
Function Blocks • Assignment A specific value can be assigned to a variable VAR1-99 or a counter Z1-Z16 using the Assignment function block. BACK
Function Blocks • Compare
Function Blocks • Compare You enter the condition in the Compare function block. Depending on weather the condition is fulfilled, the flowchart branches to the right or is continued at the lower output of the block. The numbers 0 and 1 at the output stand for the “Condition fulfilled” and the “Condition not fulfilled” *** The condition is entered in the dialog box as a formula e.g., Var1=300*** BACK
Function Blocks • Beep