GE Motors & Industrial Systems 6KCV3oOWPD Win+Drive
GEL100340 These instructions do not purport to cover all details or variations in equipment, nor to provide every possible contingency to be met during installation, operation, and maintenance. If further information is desired or if particular problems arise that are not covered sufficiently for the purchaser’s purpose, the matter should be referred to GE Motors & Industrial Systems.
Wintllrive Table of Contents 1 . Introduction .................................................................................................................................................. 1.1 About this Manual ................................................................................................................................ 1.2 Document Conventions ........................................................................................................................ 1.
GEL100340 5 . Creating Software Schematics .................................................................................................................... 5.1 Placing Software Blocks .................................................................................................................... 5.1.1 Toolbar Placing Blocks by Drag&Drop from the Block ........................................................... 5.1.2 Placing Blocks using the Insert Menu ..............................................
WintDrive 7.5 Deleting Compound Blocks ............................................................................................................... 7.6 Using Compound Blocks ................................................................................................................... 7.7 Export and Import of Compound Blocks ........................................................................................... 7.7.1 Export of Compound Blocks .....................................................
GEL100340 Input port.. ................................................................................................................................................ Parameter ................................................................................................................................................ output port ............................................................................................................................................... A.
Wintllrive ieq.. .......................................................................................................................................................... ige.. .......................................................................................................................................................... igt ............................................................................................................................................................ ile.. ...........
GEL100340 Appendix B Compound Library for DGFC .................................................................................................... B. 1 Compound Library for DGFC ............................................................................................................... B.2 Introduction ............................................................................................................................................ Brief Library description ....................................
WhOrive List of Figures Figure 2.3.1 Design Flow ............................................................................................................................. Figure 4.4.2.1 Toolbar .................................................................................................................................... Figure 4.4.3.1 Block Selection Bar ............................................................................................................... Figure 4.4.4.1 Status Bar .......
WintDrive 1. lntruduction Win+Drive is a graphic programming tool for the Windows TM operating system. Programs can be built by the graphic assembly of blocks which represent pieces of program code. Win+Drive is especially useful for designing the software of control systems. The tool generates C code that can be compiled and run on different target platforms including the PC itself. I.1 About this Manual This manual decribes how to install and to use Win+Drive.
GEL100340 12 Document Conventions Within this document the following visual orientation help are used: 1.3 Font Function Bold Names of menus, commands and register cards. Italic Items to input (i.e. filenames). SMALL CAF’ITALS Key codes. Fixed Code examples, contents of text files. spacing Installation of Win+Drive The Win+Drive environment is composed of three elements : is the base software of the graphic editor and contains the New Project tool to - WlN+Drive create a project.
WintDrive 2 D e v e l o p i n g a Win+Drive A p p l i c a t i o n 2.1 What is Win+Dfive? The control of systems by electronics was traditionally done by analog circuits. These analog circuits operate continuously. Their structure can be described by block diagrams based on general blocks like PI controllers, adders etc. Using digital software control by microcontrollers for the same control tasks is possible in many cases.
GEI-100340 2.3 The Development Process Figure 23.1: Design Flow The total process for developing a Win+Drive application consists of the following steps: 1. Create a new project. 2 . Create the schematics by placing basic blocks and connecting them. This is done using the schematic editor. If complex projects have to be created you can create compound blocks to insert hierachy into your project. 3 . Generate code from the schematics and compile them for the PC as the target system. 4 .
WintDrive 3 FastTracktoWiit+Drive 3.1 Menu Summaries This section summarizes most of the Win+Drive procedures by giving a comprehensive menu overview. This is also an index to the individual description of each menu action within this User’s Guide. 3.1.1 Managing Files and Printing To Shortcut Comments See paragraph CTRL-FN Creates an empty schematic that will be named when it is saved. 4.2.1 Open an existing project Open..
GEL100340 3.1.2 Editing schematics Comments Put a part of a schematic Cu$ into the clipboard CTRL+X Copy a part of a schematic into the cliDboard Insert from clipboard COPY CTRL+C Easte CTRL+V Delete the selected part of a schematic Select the whole schematic Remove the whole contents of the schematic Edit the list of logical variables Qelete DEL Select All CTRL+A Remove All 57.5 5.7.1 5.7.5 Changing the view of the schematics To Zoom Zoom Zoom Show 5.7.
WintDrive 3.1.4 Inserting items into the schematics TO Insert Insert an input port Input Port Insert an output port Qutput Port Insert a text Text Insert a label Label Insert a block (Group name of blocks) 3.1.5 Shortcut Comments See paragraph An input port is inserted into a compound block which is used as a connection to the upper level of hierarchy for input signals.
GEL100340 3.1.6 D e b u g g i n g prujects To Debug Shortcut Comments See paragraph F5 IReloads the model into memory and initializes it. ~The model is simulated once on the PC 9.5 F8 9.5 I Simulate several cycles conthme FlO Stop the simulation AL,T+FS The model is simulated several times. 9.5 The number of cycles is determined by a didOE. I stop Unload the model Set probe on signal.
WintDrive 3.1.9 Window operations To Window Place the windows side by side on the screen Tile Shortcut See paragraph All open windows are arranged that they 4.45 don’t overlap. Place the windows in a Cascade cascade Arrange the icons of the Arrange Icons closed windows Close all open windows Close All Select a window Comments All open windows are arranged in a cascade. The icons are arranged within the main window of Win+Drive. All windows are closed. (list of open windows) 4.4.5 4.4.5 4.4.
GEI-100340 4. T h e Win+Drive D e s i g n E n v i r o n m e n t 4.1 Starting Win+Drive After Win+Drive is installed a program group called “Win+Drive” is created. It contains the following items: m starting Win+Drive - starting the Image editor - opening the Win-tDrive help - uninstalling W&Drive Files with the extension. WDR will be associated with the Win+Drive application. 4.1.
WintDrive 4.4 The Win+Drive Screen Layout The Win+Drive screen layout closely resembles the layout of Windows MD1 applications (Multiple Document Interface) like Microsoft Word or Excel. The main window includes a menu bar, a toolbar and a block selection bar at the top and a statusbar at the bottom. Between these bars there is the client area where one or more child windows can appear.
GEL100340 4.4.3 Block Selection Bar The block selection bar provides quick access to the building blocks of the schematics. It is divided into two parts: the left part is used for selecting a group. The members of the selected group are displayed on the right half of the bar. Placing of a block is done by dragging and dropping a block into the schematic. The block selection bar can be made hidden or visible by the menu item Block Toolbar of the View menu. ;J CtB fTJ Zag CM GasB&y c&j ah emwmf! Figure 4.4.
WintDrive 4.4.5 Windows Within the main window of Win+Drive several child windows can be placed. Each child window can be maximized, minimized, resized and closed with the standard Wrndows actions. Within the Window menu there are some items for arranging the open windows (tiling and cascading) and for arranging the the icons of the closed windows. Another menu item is provided for closing all windows. The window menu also includes the list of the open windows.
GEL100340 4.4.7 Output Window Output windows are used to display the messages and errors of the code generation and the compilation. Also source files can be displayed. Output windows allow no editing. Only after double-clicking an error message the appropriate schematic or source file that caused this error will be opened. +*ff****** Tue Jul 09 15':37:12 1996 ~Qutput files G:~PROJEKTE\WPDll4~moclel)TEST2.
Wintllrive 4.4.8 Monitor Windows Figure 4.4.8.1: Monitor Window Monitor windows display simulation results graphically, similar to oscilloscopes. They are used only for display; no editing is possible. 4.4.9 Trace Windows Trace windows display simulation results in tabular form-The contents of trace files can be written to text files. Editing is not possible. Figure 4.4.9.
GEI-100340 4.4.10 Getting Help Within the Help menu there are items to open the help file and to get help from it. The Contents help topic can be opened directly. Alternatively a dialog for searching help on a specific topic can be opened. Another menu item is provided for getting help on how to use help. Context-sensitive help is implemented in Win+Drive. Key ~1 can be used to open a help topic that corresponds to the actual situation of the user.
WindI rive 5. C r e a t i n g Software Schematics Building programs using Win+Drive is very similar to creating electrical circuit descriptions. It consists mainly of two actions: - selecting and placing blocks of code onto the schematic - and connecting these blocks. 5.1 Placing Software Blocks Figure 5.1: Block A block is always the representation of a specific function that is performed by a piece of code.
GEI-100340 5 1.2 Placing Blocks using the lnserf Menu To select a block from the Insert menu act as follows: - first open the Insert Menu and select the appropriate group. Now a submenu is opened showing the members of this group. - select one of them by clicking the menu item. The cursor changes to a symbol representing a basic block. - move the mouse to the place the block shall be inserted - then click the left mouse key.
WintDrive 5.3 Placing Text and labels In order to have comments on a schematic for explanation texts and labels can be placed. Both have no function for the code generation and are provided only for readability. Texts and labels are nearly identical; the only difference is that labels are linked to blocks while texts are not. 53.1 Placing a Text For placing a text perform the following actions: - select the menu item Text from the Insert menu. The cursor changes to four arrows pointing to the middle.
GEL100340 5.4 Editing the Ports of Blocks Section 5.2 above explained that the ports of blocks represent input and output variables of the underlying piece of code and that these ports can be connected together. Drawing a connection line is the most common operation on the ports of blocks. Other operations are available by opening the ports dialog. 5.4.
Win&rive 5.4.3 Setting the Port Attributes The port attributes consist of two properties: - the name of the port - the data type of the port. The name cannot be changed for basic blocks, only for compound blocks. The data type can be set to the standard types of the C language: - char - short - int - long - Uchar (unsigned char) - Ushort (unsigned short) - Uint (unsigned int) - Ulong (unsigned long) The selections available depend on the definition of the basic block.
GEI-100340 5.6 Changing the View of the Schematic Schematics can get larger than the window displaying it. Therefore the window shows only a small view on the entire schematic. This view can be changed in several ways: - the position of the view can be changed by the scroll bars and key combinations - the magnification ratio can be changed by menu items from the View menu and by key combinations. 5.6.
Wirdrive 5.7 Modifying Schematics A schematic is normally not entered one time but entered and changed several times. Modifying a schematic is done by performing two steps: - select one or more items to modify, - then perform the modification. Modifications can be done in several ways: - moving items, - duplicating items, - deleting items. 5.71 I Selecting Mocks and lines A block, junction, connection line, text or label is selected by clicking on it with the left mouse button.
GEL100340 5.7.4 Resizing items Basic blocks can be resized. This is done by the following steps: - Select the block. It will be surrounded by a red rectangle. - Move the mouse to one of the border lines or corners of the red rectangle. The cursor will change to a double arrow. - Hold down the left mouse key and move the mouse to the new size. - Release the left mouse key after the required size was achieved. If the block is getting too small to display texts they will not be displayed.
Wintllrive 5.8 Printing Schematics For documentation purposes Win+Drive schematics can be printed. Printing is started by the Print command from the File menu. A dialog appears that is used for setting the print options. There are two modes for printing schematics: - window print mode - page print mode The window print mode is used for draft printouts, while the page print mode delivers document ready prints. Both modes are started from the Print item of the File menu. Figure 5.8.
GEL100340 Figure 5.8.1.1: Page Print Mode Dialog 5.82 Printing in Page Mode For printing a scheme in page mode select Print from the File menu and then Page Mode from the tab riders of the dialog. The page mode dialog appears. Within this dialog you can change the following settings for the printing: - the margins of the printing at all four borders in inches. These margins will not be printed. They should be bigger than the printer margins.
WintDrive 5.8.3 Page Setup fur Printing For setting up the page for printing select Page setup from the File menu or Setup from the Print dialog. The Page Setup dialog will appear. Figure 5.8.3.1: Page Setup Dialog 1 (page setup) Figure 5.8.3.2: Page Setup Dialog 2 (stamp setup) Figure 5.8.3.
GEL100340 Within this dialog the following options can be set: the orientation and size of the paper, - the position and definition of the stamp (title block), - thegrid. There are checkmarks that determine if the stamp and grid are displayed and/or printed. Also the text inside the stamp can be shown or hidden. 58.4 Seffing Stamp Variables Stamps can include variables (for example for the name of the author, the company, the project etc.).
WintDrive 200 27 m Date : @date@ ,, 8 0 @Courier New 0 42 w Window : @winname@ ,, 8 0 @Courier New [Variable] Author=Mr. Black [Bitmap] ‘l:\wpd\smpl.ogo.bmp" 321 31 The file consists of sections which are introduced by the name of the section in square brackets. After the section heading one or more lines with information follow. All lines starting with //are comment lines and only for explanation.
GEI-100340 6. Connection to External Variables Programs generated using Win+Drive normally have connections to the environment outside. For example, set and measured quantities for control have to be read and output values have to passed to servos. For creating these connections between internal values of Win+Drive generated programs and external ones variables have to be defined and ports of blocks have to be connected to them.
WintDrive The storage class defines where the variable is declared and visible. The following values are available: - external variables are declared in the external program and can be used in the generated program. They get the attribute extem in the generated program. - global variables are declared in the generated program and can be used by the external program. They get no attribute in the generated program.
GEL100340 - the groups are defined in the target.ini files. They are used to put the index of the logical variable into a predefined range of the total variable (that normally is an array). “*” marks the default group that has no index checking. - the value is provided for setting an initial value. This value is used for initialization of the variable within the generated program. - a comment can be used to describe the logical.
Wintilrive 7. W o r k i n g w i t h Hierachy a n d C o m p o u n d B l o c k s Complex projects get soon so complex that it is not possible or useful to have all blocks in one schematic. For splitting a project into several schematics compound blocks are provided. Compound blocks contain basic blocks and other compound blocks. Compound blocks are inserted into schematics similar to basic blocks.
GEL100340 Z 1.3 R e n a m i n g a C o m p o u n d B l o c k The name of compound blocks can be changed by selecting item Rename from the Compound menu. A dialog appears that lists all compound blocks of the project. Selecting one allows typing a new name in the upper text box. This dialog can be used to change the names of all available compound blocks without leaving thedialog. Figure 7.1.3.1: Rename Compound Dialog If the name of a compound block is changed all instances get this new name.
WintDrive z7.3 Updating and Closing a Compound Block As long as a compound block is edited its instances in other schematics are not updated. To reflect all editing changes to these instances the compound block must be saved. This is done by the Update Instances item of the Compound menu. Windows displaying compound blocks are closed by the Close item of the Compound menu. If the compound block was changed and not saved a message box appears asking if it should be saved.
GEI-100340 7.6 Using Cbmpound BIocks Using compound blocks in schematics is equivalent to using basic blocks. Placing is done from the Insert menu or by Drag&Drop operations as described in paragraph 5.1.1. All available compound blocks are treated as a group of blocks. In the Insert menu the bottom item Compound opens a submenu with all available compound blocks.
Win+Drive 7.7.2 Import of Compound Blocks The import ofa compound block into a project is started by choosing Import Compound from the File menu. First the standard windows dialog for entering the filename will anuear. After selection of the file, the import process wilt start. First it is checked if groups, logical variables, variables and compound blocks (as part of the compound block to be imported) with the same name are used within the compound to be imported and the existing project.
GEL100340 For each compound block within the list the import action can be chosen. Selecting Accept and Replace will replace an existing block with the one being imported. Not Accept will not import the selected compound block and keep the already existing one. After finishing the editing of logicals and variables the block can be imported by pressing Import All. Now it is available for editing and insertion within the project. Abort All stops the import process.
Win+Drive 8. Generating Programs After the schematics of a program have been created they should be converted to programs that can be executed either on the PC or on the target system. The total code generation is split into two parts: - generating the C program from the schematics - compiling the C program to binaries. Generating the Program from the Schematic To generate the C program from the schematic select Generate C-Code from the Tools menu. This will start the code generation.
GEI-100340 Figure 8.2.2: Changing the execution order A block that is connected from its block output to the block input of another by this execution order connection line will always be executed before. Within the example shown this is done by putting this block into the execution chain before. 8.3 Compiling the Program After the code is generated without errors it can be compiled. Selecting the item Compile + Link from the Tools menu will start this process.
Wintllrive 9. Simulating Programs on the PC Win+Drive includes a simulation environment for the code that was generated for the PC simulation. The generated program is put into a DLL that is called from Win+Drive. To display output data of the simulation, probes can be set. The values of these probes can be displayed graphically in monitor windows (looking like oscilloscopes) and in a tabular form in trace windows.
GEI-100340 Figure 9.1.2.1: Set Debug Window Dialog Using radio buttons it can be selected if the probe shall be displayed in a monitor or trace window. The two lists at the bottom of the dialog are used to select the windows in which the probe will be displayed. Select the appropriate windows from the right list and move them by the left arrow button to the left list. A probe can be displayed in several windows. OK ends the probe setting while Cancel leaves everything unchanged. 9.
WintDrive 9.3. I Monitor Configuration Dialog This dialog is used for setting the display configuration of the monitor window: - the Y range can be set automatically or manually by entering the minimum and maximum values, - X and Y axis can be displayed or hidden, - Cross lines at the actual position of the mouse pointer together with a display of the x and y values can be displayed, - the x axis range can be set by a scrollbar. OK will apply these changes while Cancel leaves everything unchanged. 9.3.
GEL100340 9.5 Running fhe Model The simulation of the model is controlled by items from the Debug menu. - Go restarts the simulation and sets the variables to its initial values. - Step simulates the model once (one loop) - Continue simulates the model a number of loops that is setup by the Change run steps dialog - Stop terminates the simulation and returns to the edit mode of the schematic. -if the model has crashed Unload DLL can be used to remove it from memory.
WintDrive 10. C h a n g i n g S e t t i n g s of Win+Drive The configuration of the actual project and Wm+Drive can be changed by dialogs that are opened from the Options menu. IO. I Scheme Settings The scheme settings dialog is opened by selecting Scheme Settings from the Options menu. Figure 10.1.1: Set Scheme Dialog The two lists include all schematics of the project. Each schematic will be either in the list of compound blocks (left list) or of schemes (right list).
GEI-100340 10.2 General Settings Within this dialog the following settings can be done: showing or hiding the block toolbar (see paragraph 10.1) showing or hiding the quick info or quick value text boxes (see paragraph 10.
WintDrive 10.4 Setting up External Tools Table 10.4.1 lists the tool functions integrated into Win+Drive. Note that these tools may require the installation of programs and/or compiler(s) not supplied with Win+Drive. The Tools menu can be extended. This is useful for running other programs without leaving Win+Drive. The Tools item of the Options menu will open the tools dialog. Figure 10.4.1: Tools Dialog This dialog can be used for adding and deleting items of the Tools menu.
GEI-100340 48
Witdrive Appendix A A. I Block library for DGFC The following Help Topics are available: Introduction Block Blocks in alphabetical order Note: This Appendix was current at time of printing. For the latest information, always refer to the on-line help. A.2 Introduction Win+Drive is a graphic editor that permits the development of schemes for any type of target that can be programmed in C language. A specific library of basic blocks can exist for any target. This manual presents the blocks for DGFC. A .
GEI-100340 Group It is used to group the different types of blocks in an homogeneous way, for instance arithmetical, logical etc. This grouping facilitates the search of blocks when compiling a scheme. ln the present version the defined groups are the following: I/O Mathematic Logical Timer Delay Function Control Arithmetic Variable Generator //O Group This group is composed of blocks that permit the control of I/O devices of the target.
WintDrive Logical Group This group contains all those blocks performing logical operations. Only integer data (id) can be treated by these blocks. There are two operator sub-groups: Control of data as a unique logical variable (logic), that means: TRUE if equal to zero if different from zero FALSE Control of data as a group of 16 logical variables, one for each bit that forms the data itself (bitwise).
GEL100340 Function Group This group contains special functions: Operator Diameter and thickness observer Speed observer Function name diamobs speedobs icon diamobs speedobs Vii015 Operator UP/DOWN counter Block for int data name icon icnt cnt Block for float data name icon fcnt cnt wQ316 Control Group This group contains all those blocks performing operations that will condition the execution of a scheme.
WintDrive Arithmetic Group This group contains all those blocks performing arithmetical operations. There are two operator sub-groups: Controls integer data (id) Controls floating point data (float) l l Variahh G r o u p This group is composed of blocks that permit the handling of variables and the conversion of types of data. Operator Generator Group This group is composed of blocks that permit the generation of wave-forms.
GEL100340 Input port Represents the element from which the block receives information in the scheme A block may have only one Input port, multiple Input ports or no Input ports. An Input port can be connected to the following elements: AVariable AConstant The Output port of another block through a connecting line The Input port of a Compound through a connecting line In any of the above mentioned cases, the connection can be performed only if the type of the elements comply with each other.
WintDrive A.
GEL100340 alarm Description This block enables alarm notification on the digital keypad using AI-BRICK-USR : c.
Wint Drive and Description This block carries out a bit wise “and” operation of the integer data read by input ports a and b. It shows the result of the operation in output port o.
GEI-100340 cfix il *l i2 fix B 42 co3 trim r [411 Description It performs a master DeviceNet communication (LocalBus). This block gets the input words (il, i2 and i3) and sends them to the appropriate slave, retrieves the words received from the slave and writes them to output words (01,02 and 03). It also manages the timeout signaling(to r output) when the communication does not occur for 1 cycle or for tmo cycles.
WintDrive delay Description This block has two purposes: define the starting point in the execution of a circular connection perform one cycle delay l l Input ports name i type I alternative I float I type function IData i WC030 Output ports name type 0 alternative type function float Data i delayed one cycle woo31 Parameters name We IniCondition float alternative type function Initial condition of the output WC032 ImDortant: Kept only for compatibility with old versions.
GEL100340 diamobs C Unuind b WMmtThrZ C MinDirm b M.uDiam C MaxThick Thtck l CC Initialir* Initialir* LL 1niDi.m 1niDi.m C IniThuck Description The DIAMeter OBServer block estimates winder diameter (Diameter) and material thickness (Thick) from measured line speed (LineSpd) and winder motor speed (WMotSpd) using a algorithm with two time constants: Taul[sec] and Tau2[sec]. It is used to estimate rewinder or unwinder diameter with or without dancer. GearRt [>l] is gear-box ratio of winder.
WintDrive Control 0 1 otherwise 1 Description Functionalities are all enabled: diameter and thickness are estimated from line speed (LineSpd) and winder motor speed (WMotSpd) Diameter and thickness estimation are disabled, but diameter is updated according to actual thickness. This is used during speed match and when torret is rotating. In this case material path is changing so diameter estimation has to be disabled, however , diameter is increasing (or decreasing if unwind) of actual thickness.
GEI-100340 With two digital encoders with a resolution of 1000 counts/rev each and a sample time of 10 msec, WMotThrl and WMotThr2 should be larger than 10 rpm and 100 rpm respectively. Minimum diameter (MinDiam), maximum diameter (MaxDiam), maximum thickness (MaxThick) inputs are provided to limit possible error estimations. Zero is minimum thickness. User can initialize diameter and thickness using Initialize input.
WintDrive Input ports Name LiueSpd WMotSpd GearRt unitssys Type float float Executed always always float always int always Control irlt always Unwind IucDecDis int int Taul float Tau2 float WMotThrl float WMotThd float M&am MaxDiam MaxThick Initialize float float float int IuiDiam float IuiThick float Description Measured line speed Measured winder motor speed Wmder gear-box ratio Units systems for line speed, winder motor speed, diameter and thickness Controls the functionaliti
GEL100340 Parameters Name StartingDiameter Type float StartingThickness float c Description Diameter using by observer as a initial estimated diameter value Thickness using by observer as a initial estimated thickness
WintDrive exe1 Description This block permits the execution of a branch, that is a group of blocks connected to each other through connecting lines, as a function of the status of input port z, 0= not-performed branches, l= performed branches. The branch has to be connected to the input port a and executed when exe block is enabled. In any case, the value read by input port a is lost. From output port o the status of input port z is issued.
GEI-100340 exe2 Description This block permits the execution of branches, that is a group of blocks connected to each other through connecting lines, as a function of the status of input port z, 0= not-performed branches, l= performed branches. The branch has to be connected to one of the input ports a..b . If the exe block is enabled, the execution sequence of branches will be as follows: 1” branch connected to input port a. 2” branch connected to input port b.
WintDrive exe4 2 a b c a i Description This block permits the execution of branches, that is connecting lines, as a function of the status of input branches. The branch has to be connected to one of the input ports If the exe block is enabled, the execution sequence of 1 ” branch connected to input port a. 2” branch connected to input port b. .. 4” branch connected to input port d. a group of blocks connected to each other through port z, 0= not-performed branches, l= performed a..d .
GEL100340 exe8 Description This block permits the execution of branches, that is a group of blocks connected to each other through connecting lines, as a function of the status of input port z, 0= not-performed branches, l= performed branches. The branch has to be connected to one of the input ports a..h . If the exe block is enabled, the execution sequence of branches will be as follows: branch connected to input port a. lo 2” branch connected to input port b. 8” branch connected to input port h.
Win+ D rive Input ports Tname Z e int alternative type function Block enabler: == 0 The branches connected to input port a..h are not performed. == 1 The branches connected to input port a..h are performed.
GEI-100340 fabs 0 = lal Description It calculates the absolute value of a floating point variable.
WintDrive fadd o=a+b Description It calculates the sum of two floating point variables.
GEI-100340 fass o=a d=a Description It duplicates a floating point variable.
WintDrive fchs 0 =-a Description It changes the sign to a floating point variable. Input ports name type a alternative type float function Data a woo.
GEL100340 enabh I_ fcnt step UP cnt actual preret set t clear : Description UP/DOWN float counter.
WintDrive fcmp Description It If If If compares the data read by a < b it shows 0 in output a = b it shows 1 in output a > b it shows 2 in output input port a with the data read by input port b. port o. port o. port o.
GEI-100340 fdela y Description This block has two purposes: define the starting point in the execution of a circular connection perform one cycle delay l l Input ports n a m e type i alternative type float function Datai v&O56 Output ports name type 0 alternative type function Data i delayed one cycle float wM)67 Parameters name IniCondition 76 tw float alternative type function Initial condition of the output
WintDrive fdiv o=a/b Description It performs a division of two floating point variables.
GEL100340 ferr Description It compares two floating-point data. ifa== b it shows 1 in output port o, otherwise it shows 0.
Win+Drive ffd d 9 Kll ck ffd Pr w clr Description D Flip-flop with set and reset inputs.
GEL100340 ffjk Description J-K Flip-flop with preset aud clear inputs. Input ports name type .
WintDrive fv Description It compares two floating-point data. If a >= b it shows 1 in output port o, otherwise it shows 0.
GEL100340 f# f Description It compares two floating-point data. If a > b it shows 1 in output port o, otherwise it shows 0.
Win+Drive f/e Description It compares two floating-point data. If a <= b it shows 1 in output port o, otherwise it shows 0.
GEI-100340 Description It compares two floating-point data. If a c b it shows 1 in output port o, otherwise it shows 0.
Win-drive fmod o=a%b Description It calculates the remainder of the division between two floating point variables.
GEL100340 fmul o=a*b Description It performs a multiplication of two floating point variables.
WintDrive fmux Description It reads the status of input port g. It reads input port a or input port b or input port c as a function of the status of input port g. If input port g is = 0, it reads input port a. If input port g is = 1, it reads input port b. If input port g is = 2, it reads input port c. In any other case it reads input port c. It shows the read data in output port o.
GEL100340 Output ports name type 0 Parameters 88 float alternative type function Data read by input port a orb or c No parameters 16.
WintDrive fine Description It compares two floating-point data. If a != b it shows 1 in output port o, otherwise it shows 0.
GEI-100340 fprc Description It controls the storage of the previous data as floating point data. It shows the data read by input port i in output port o. In output port p it shows the data read in the previous cycle by input port i. It stores internally the data read by input port i. If input c (clear) is different from 0 (TRUE) it shows the data read b input port Y in output port p; these data are then stored inside the block.
WintDrive fsel Description It It If It reads input port a or input port b as a function of the status of input port g. reads the status of input port g. the read data is = 0 it reads input port a, otherwise it reads input port b. shows the read data in output port o. if(g EO) 0 = a; else o = b; Input ports type name a int a float b I I float alternative type function Selector of the input port to be read This input port is read only if input port g is = 0.
GEI-100340 o=a-b Description It performs a subtraction of two floating point variables.
WintDrive Description It converts input floating point data into integer data.
GEL100340 fun Description It allows access to optional I/O card.
WintDrive fvar Description Connection node for float variables. It allows the connection of a floating point variable to various blocks.
GEI-100340 gsine Description Generator of a sine wave.
Wintllrive gsquare Description Generator of a square wave. Input ports No parameters Output ports name type 0 alternative type function Real value of square wave float wo117 Parameters name type low high minimum float int int int maximnm alternative type function 1 0 0 0 Duration of the wave at tiumum value. Duration of the wave at maximum value. Minumum value of the wave. Maximum value of the wave.
GEI-100340 gtriangl Description Generator of a triangular wave. No parameters Input ports woo29 Output ports name tSrpe 0 float alternative type function Real value of the triangular wave wott9 Parameters name type minimum maximum increment int float int alternative 0 1 0 type function Minumum value of the wave. Maximum value of the wave. Incremental value of the signal at each regulation cycle.
WintDrive iabs a la1 Q El3 0 = lal Description It calculates the absolute value of an integer variable.
GEL100340 iadd o=a+b d=a Description It calculates the sum of two integer variables.
VVintDrive iass Description It duplicates an integer variable.
GEI-100340 ichs 0 = -a Description It changes the sign of an integer variable.
WintDrive Description It compares the data If a < b it shows 0 If a = b it shows 1 If a > b it shows 2 read by input in output port in output port in output port port a with the data read by input port b.
GEI-100340 icnt Ml&de 5tep UP p54f set I clear : Cd actual I Description UP/DOWN int counter.
Wintllrive Description Asynchronous communication DRIVE->DGFC. From the structure of asynchronous communication it reads the values of DRIVE parameters, whose identifiers are specified by the parameters pa0, ipal, ipa2, ipa3, ipa4, ipa5, ipa6, ipa7, ipa8, ipa9.It shows the read values in output ports v0, vl, v2, v,3, v4, v5, v6, v7, v8, v9.It shows the result of the operation in output port r. The programming of the communication structure is executed during the IDLE-SEADY transition .
GEI-100340 Parameters name I type I alternative offset iilt a192 ipa iut 0 type function Offset to be summed to the parameter identifiers ipaO..ipa9. Identifier of the DRIVE parameter that will be found in slot 0 of the communication structure. ipal int 0 ipa iut 0 ipa int 0 ipa int 0 ipa int 0 ipa int 0 ipa int 0 Identifier of the DRIVE parameter that will be found in slot 1 of the communication structure.
WintDrive If any parameter identifier does not comply with the others, the whole communication structure will be disabled and the output port in RUN will contain value 0. After the configuration of the communication structure, the DGFC reads the VALUE field of each slot and copies it in the output ports vO..v9. This operation is carried out periodically by the DGFC, in an asynchronous way compared to the regulation cycle. The offset parameter is summed to ipaO..
GEI-100340 ideky Description This block has two purposes: define the starting point in the execution of a circular connection perform one cycle delay l l Input ports name type i int alternative type function Data i v/O136 output ports name type 0 alternative int type function Data i delayed one cycle wo137 Parameters 108 name tme IdCondition int alternative type function Initial condition of the output xv0138
Wintllrive o=a/b Description It performs a division of two integer variables.
GEI-100340 ids Description Synchronous communication DRIVE->DGFC. From the synchronous communication structure it reads the values of the DRIVE parameters whose identifiers are specified through ipa0, ipal, ipa2, ipa3, ipa parameters& shows the read data in the output ports v0, vl, v2, v,3, v4.U shows the result of the operation in the output port r-The programming of the communication structure is performed during the IDLE-SEADY transition.
WintDrive Parameters name tme alternative type function offset illt 8192 Offset to be summed to the parameter identifiers iDaO..iDa4. ipa hit 0 ipal iut 0 ipa int 0 ipa illt 0 ipa int 0 Identifier of the DRIVE parameter that will be found in slot 0 of the communication structure. Identifier of the DRIW parameter that will be found in slot 1 of the communication structure, Identifier of the DRIVE parameter that will be found in slot 2 of the communication structure.
GEL100340 ieq Description It compares two integers. Ifa == b it shows 1 in output port o, otherwise it shows 0.
WintDrive Description It compares two integers. If a >= b it shows 1 in output port o, otherwise it shows 0.
GEI-100340 igt Description It compares two integers. If a > b it shows 1 in output port o, otherwise it shows 0.
WintDrive ile Description It compares two integers. If a <= b it shows 1 in output port o, otherwise it shows 0.
GEL100340 i/i Description It compares two integers. If a < b it shows 1 in output port o, otherwise it shows 0.
WintDrive imod o=a%b Description It calculates the remainder of the division of two integer variables. Input ports name type ii int int alternative type function Numerator a Denominator b wol53 Output ports name twe 0 int alternative type function Remainder of division wo1.
GEL100340 Description It performs a multiplication of two integer variables. Input ports name type a b int int alternative type function Factor a Factor b wrn.
WintDrive Description It reads input port a or input port b or input port c as a function of the status of input port g. It reads the status of input port g. If the datum of input port g is = 0, it reads input port a. If the data of input port g is = 1, Iit reads input port b. If the data of input port g is = 2, it reads input port c. Otherwise it reads input port c. It shows the read data in output p&-t o.
GEL100340 Output ports name 0 type int alternative type function Data read by input port a or b or c.
Win+Drive ine Description It compares two integers. If a != b it shows 1 in output port o, otherwise it shows 0.
GEI-100340 iprc Description It controls the storage of the previous data as integer data. It shows the data read by input port i in output port o . In output port p it shows the data read in the previous cycle by input port i. It stores internally the data read by input port i. If input c (clear) is different from 0 (TRUE) it shows the data read by input port v in output ports p; these data are then stored inside the block.
WintDrive isel Description It reads input port a or input port b as a function of the status of input port g. It reads the status of input port g, if the read data is = 0, it reads input port a, otherwise it reads input port b. It shows the read data in output port o. if(g==O) 0 =a; else o =b; Input ports name s! a type int b int alternative type int function Selector of the input port to be read. This input port is read only if input port g is = 0.
GEI-100340 isub 0 =a-b Description It performs a subtraction of two integer variables.
WintDrive itf Description It converts the input integer data into floating point data. Input ports name t y p e i alternative type function Data to be converted into floating point data. int Will68 Output ports name 0 Parameters type int alternative type function Data converted into floating point data.
GEL100340 ivar Description It permits the connection of an integer variable to various blocks.
Win+Drive land Description It executes a logical and-operation between the data read by input ports a and b. This block treats values read by input port a and b as boolean variables, so that: value equal zero FALSE (0) value different from zero TRUE ( !=O) As the value shown in output port o is a boolean value, it will be 0 or 1.
GEL100340 Description It performs a logical not-operation of the data read by input port a. This block treats values read by input port a as boolean variable, so that: value equal zero FALSE (0) . value different from zero TRUE (!=O) As the value shown in output port o is a boolean value, it will be 0 or 1.
WintDrive Description It performs a logical or-operation of the data read by input port a e b. This block treats values read by input port a and b as boolean variables, so that: value equal zero FALSE (0) value different from zero TRUE ( !=O) As the value shown in output port o is a boolean value, it will be 0 or 1.
GEI-100340 Description It performs a logical xor-operation of the data read by input port a and b. This block treats values read by input ports a and b as boolean variables, so that: value equal zero FALSE (0) value different from zero TRUE (!=O) As the value shown in output port o is a boolean value, it will be 0 or 1.
WintDrive Description It splits a float into 2 integers. A float is composed of 4 bytes. An integer is composed of 2 bytes. This block divides the 2 highest bytes of f from the 2 lowest and writes these values respectively to fh and fl. Note that this block does not cast the value off, but simply divides it into 2 parts. This can be used in connection with those blocks that cannot manage float values but only integers(e.g.
GEI-100340 mitt Description It joins 2 integers into a float. A float is composed of 4 bytes. An integer is composed of 2 bytes. This block joins fh and fl to obtain a float(f). Note that this block does not cast the value of fh or fl , but simply joins them into f. This can be used in connection with those blocks that cannot manage float values but only integers(e.g.
Win+Drive Description It performs a bit to bit not-operation of the integer data read by input port a. It shows the result of the operation in output port o.
GEL100340 oda Description Asynchronous communication DGFC->DRlVB. It copies the values read by input ports v0, vl, v2, v,3, v4, v5, v6, v7, vS, v9 in the structure of asynchronous communication DGFC->DRTVE.It shows the result of the operation in output port r.The indexes of the DRIVE parameters that are to be updated are specified through the parameters ipa0, ipal, ipa2, ipa3, ipa4, ipa5, ipa6, ipa7, ipa8, ipa9.The programming of the communication structure is executed during the IDLESEADY transition.
WintDrive Output ports name r type int alternative type function Result of the operation: 0 = failed operation 1 = successful operation v/O188 name Qw alternative offset int 8192 ipa int 0 ipal irlt 0 ipa int 0 ipa int 0 ipa int 0 ipa int 0 ipa iilt I 0 I ipa int 0 ipa int 0 ipa int 0 type function Offset to be summed to the parameter identifiers ipaOJpa9. Identifier of the DRIVE parameter that will be found in slot 0 of the communication structure.
GEI-100340 During the transition of DGFC from IDLE->RFADY the communication structure is configured: DGFC copies IPAO..IPAQ parameters in the IPA field of the respective slots. DGFC requires the DRIVE to carry out the configuration of the communication structure. The DRIVE analyses the parameter identifiers in the IPA field and if it finds them in compliance with each other, it writes the type of the required parameter in the TYPE field.
Win+Drive ods Description Synchronous communication DGFC->DRIVE. It copies the value read by the input ports v0, vl, v2, v,3, v4 in the synchronous comrnuncation structure DGFC -> DRIVE.It shows the result of the operation in the output port r.The indexes of the DRIVE parameters that are to be updated are specified by Parameters ipa0, ipal, ipa2, ipa3, ipa4.The programming of the communication structure is performed during IDLE->READY transition.
GEL100340 Parameters name tme alternative offset int 8192 $a0 int 0 ipal int 0 ipa int 0 ipa int 0 ipa int 0 type function Offset to be summed to the parameter identifiers ipaO..ipa4. Identifier of the DRIVE parameter that will be found in slot 0 of the communication structure. Identifier of the DRIVE parameter that will be found in slot 1 of the communication structure. Identifier of the DRIVE parameter that will be found in slot 2 of the communication structure.
Win+Drive Description This block carries out a bit to bit or operation of the integer data read by input ports a and b. It shows the result of the operation in output port o. VI0193 Input pork name type a b int int alternative type function Data a Data b wo194 Output ports name type 0 iut Parameters alternative type function 1ResuIt of the logical operation v/019.
GEL100340 Description Computes the value of x7 Input ports name tfle X float float Y alternative type function base exponent wo284 Output ports name 0 alternative tw type float x raised to y Parameters No parameters Rules O >O >o CO 0 XY 1 >o z-0 XY base
WintDrive Description Shows the bn-bit of data i.
GEL100340 Description It reads the FWA. This block reads len words from ??WA[ind] to FWA[ind+len-11. timeouts(tmo) and writes the appropriate value to rl, r2 and r3. It also checks the Input ports Name Type ind int len int tmo int Executed always always always Function index of the 1st word to read number of words to read number of cycles after which the rl, rl and r3 output is set to 2.
Wintilrive Parameters No parameters woo25 Alarm causes Name 1 Function 1 ind must be positive and not greater than 83 2 len must be positive and not greater than 3 3 tmo must be positive and not greater than 20000 1 and 2 the sum of ind and len exceeds 83 Mm9 143
GEL100340 speedobs F MeaSpd w AccFFwd speedobs Speed P w Taul FTW2 Act ›- 1 Description SPEED OBServer estimates Speed [x] and acceleration (Acc[x/sec]) from measured speed (MeasSpd [xl) using a algorithm with two time constants: Taul[sec] and Tau2[sec], ‘Ik[sec] is the sample time of the control. Here [x] is the unit of the measured speed. It can be used to estimate motor angular speed and motor angular acceleration from motor speed coming from a tachometer or encoder.
WintDrive Speedobs is a algorithm with two time constants: Taul [set] and Tau2 [set]. These inputs determine time that observer takes to estimate speed and acceleration. The simplest case is when user needs to estimate only speed: Tau2 have to set to le9 [set]. Taul [set] is speed estimation time constant. It represents the same concept of time constant in electronic analog circuits and it is equivalent to the product of Resitauce and Capacitance.
GEI-100340 Description Calculates the square root.
WintDrive T Description This block controls program flow as a function of the simulated execution on PC, or the real execution on the target. Jf the execution of the scheme is performed on the target only the input t (not the input s) will be read. If the execution of the scheme is performed as a PC simulation, only the input s (not the input t) will be read. Input ports name type t float float S alternative type function Input read during the execution on the target.
GEL100340 fbd g UII 0 tk?d t-Y? . en0 t-L-h act Description This block performs a bistable timer. The timer is activated on the rising or on the falling edge of input g in the following way: On the rising edge of input g, output o is checked. If output o is FALSE the following operations are performed: Reading the delay time from input t-up. Zero setting of the internal variable act (output act). Enable of the timer, internal variable ena is set TRUE (output ena).
Win+ D rive Input ports name I tw g t-up int int t-dw int alternative type function I operations start number of milliseconds delay on the rising edge of the signal outout number of milliseconds delay on the falling edge of the signal output wo265 Output ports fUIlCtiOIl act Timer output This signal is TRUE when the timer is active Indicate the number of milliseconds delay counted by the timer from start operations.
GEI-100340 tine Description Interruptable monostable timer. Timer is activated on every rising edge of input g in the following way: On the rising edge of input g the following operations are performed: Reading of the activation time from input t. Zero setting of the internal variable act (output act). Enable of the timer, internal variable ena is set TRUE (output ena). Output o is set TRUE.
Win+Drive Input ports name tne g t int int alternative type function operations start and timer enable number of cycles of timer activation Mm58 Output ports name We 0 int int int ena act alternative type function Timer output This signal is TRUE when the timer is active Indicate the number of milliseconds counted by the timer from the operations start.
GEL100340 tmr Retriggerable monostable timer. Timer is activated on every rising edge of input g in the following way: 1. On the rising edge of input g the following operations are performed: Reading activation time from input t. Zero setting of internal variable act (output act). Set output o TRUE. . After t cycles are elapsed, from operations start, timer outputs are set in the following way: output o is set FALSE output act stops on the last value reached (t value) 2 .
WintDrive output ports name tw 0 int int act alternative type function Timer output Indicates the number of milliseconds counted by the timer from start operations.
GEI-100340 Description It controls the test point of DGF CPU.
WintDrive whit Description This block sets the bn-bit of data i with value bv. The result is shown in output port o.
GEL100340 wfix Descripition communications. This block writes len words from to lXA[ind+len-l] with dl, d2 and d3 values. It also checks the timeouts(tmo) and writes the appropiated value to rl, r2 and r3.
WintDrive 1No uarameters Parameters Alarm causes Name 4 5 6 4 and 5 Description ind must be positive and not greater than 83 len must be positive and not greater than 3 tmo must be positive and not greater than 20000 the sum of ind and len exceeds 83 wo305 157
GEI-100340 Description This block performs a bit to bit xor operation of the integer data read by input ports a and b. It shows the result of the operation in output port o.
Win+ D rive Appendix B WhDrive Compound Library for DGFC Note: This Appendix was current at time of printing. For the latest information, always refer to the on-line help. B .1 Compound Library for DGFC ........................................................................................... B.2 Introduction ....................................................................................................................... Brief Librarydescription .....................................................
GEL100340 B.
WintDrive B.2 lnfroducfion Win+Drive is a graphic programming tool for the WindowsTM operating system. Programs can be built by the graphic assembly of blocks which represent pieces of program code. Win+Drive is especially useful for designing the software of control systems. It generates C code that can be compiled and run on different target platfurms including the PC itself. Complex projects get soon so complex that it is not possible or useful to have all blocks in one schematic.
GEL100340 How to use the Compound Library For a correct use of this compound library it is necessary to follow some steps and rules. Import compound block Inuut uort prioritv Compound block name import compound biock First step to use a compound block is to import its file name into a Win+Drive scheme. For this use import compound block menu. Input port priority Every input port is usually executed. This means that the block connected to the input port is performed.
WintDrive 5.3 Library contents Here each compound block in the library will be described in detail. Every compound block is shown with this following structure: . a description of its behavior the icon of the compound a C-style code that describes in detail each instruction performed by the compound block . a list of input logical variables with their name, type and description a list of output logical variables with their name, type and description .
GEL100340 Analog-Input Analag-Input Description It reads the input (In), multiplies by scale (Scale), adds an offset (Offset) and filters it with a low pass filter with a time constant of FilterTau [set].
WintDrive AntiWindUp-PID Ant iWindUp_p I D c Refewnce cFeedback out I k PmpGain * OutLinl b Reset PID Pmpout I b IntEn c IntGain fi IntLlm Intout I c DerEn c DelGain F DerFilTau lhchlt I r DerLitn Description It performs a PID controller with anti wind-up function.
GEL100340 Output logical variables None Input ports I DerLim I 1 float 1 always Ibe disabled.
WintDrive Cycle-Time Description It calculates the sample time [set] of the control. C-style description if (FirstRun != 0) CycleTime = O.
GEL100340 Description It simulates a DC motor. This compound can be used for testing user control (for example AntiWindUp-PID control). Motor current [A] (MotorCurrent) has to be provided as input, and it is also possible to give a desired torque disturbance [N m] (TorqueDisturbance). Compound provides motor speed [radkec] (MotorSpeed) and motor angle [rad] (MotorAngle).
WintDrive Deadband Description It performs deadband function. It is described by the following drawing: - Deadband/ Deadband/P C-style description if (In > DeadbamV2) Out=In-Deadband/2; if (In c - DeadbamU2) Out=In+Deadband/2; else out=o; Input logical variables None Output logical variables None Input ports name Ill Deadband type float float executed always always description Input to be processed Deadband width.
GEL100340 Output ports name out type description float Processed output wo222 170
Wint 0 rive Digital&mt Digital-Input Ill D&l out .$$ y$g Se1 zl El Description It reads a bit of digital input (DgtZn) specified by input selector (Sel) when different from zero, otherwise output (Out) is equal to the input (In) A standard method to handle and read digital inputs is provided with this compound block. Control developed by the user may have a lots of functions. Each function can be enabled or disabled depending on its associated variable Fnct.
GEL100340 Input logical variables None Output logical variables None Input ports name III DgtIn Se1 type int iut int executed only if Sel==O only if Se1 !=O always description Input Digital inputs of the drive Selector: if zero input is copied to the output; if 1, first digital input is copied to the output, if 2, second digital input is copied to the output, and so on until 8. It must be between 0 and 8.
WintDrive . First Run First-Run Description It calculates the value of FirstRun logical variable, that assumes value 1 at the first run of the control. At the second run it becomes equal to 0 and remains at this value. This compound block is obsolete and its function is now perfomed within Win+Drive. In the previous version, the user had to ensure that this compound block was performed after any other compound in his scheme. To accomplish this, he should have used a control connection line.
GEL100340 FUllJAM/’ FULL-RAMP F SetPoint b Ref5etPIini Ranpout F PesAccT c PosDecT c NegAccT c NegDecT c Reset c PWSQf Description It performs a (PosAccT), Ramu with tthe possibility h toe set the ppositive oacceleration s timei [set] t i v e deceleration time [set] (PosDecT), the negative acceleration time [set] (NegAccT) and the negative deceleration time [set] (NegDecT), compared to a given reference set point [x] (RefSetPoint). Here [x] is the measure unit of the SetPoint.
WintDrive Input ports Pos AccT float PosDecT float NegAccT float NegDecT float Reset Preset int int description executed Set point to be followed [x] always .f actual ramp time SetPoint used as reference to determine each ramp time [xl. It must be positive. If not it is assumed as !=O positive if previous Positive acceleration time [set] for RampOut to go output>=0 and from 0 to RefSetPoint when RampOut is greater SetPoinb=O than 0. It must be positive.
GEL100340 Integrator Integrator Description It calculates the summation of the input [x] In. It is possible to specify the Initial value of the summation [x] (IuiCond), Reset the summation, Disable the calculation or set the summation to a PresetValue [xl.
Win&rive Input ports In type float IniCond float Reset Disable Preset int int int PresetVal float name executed only if Reset==Disable== Preset==0 at the first run and if Reset==Disable== Preset==0 always only if Reset==0 only if Reset==Disable== 0 only if Reset==Disable== 0 and Preset!=0 description Input to be integrated [x] Initial value of the summation [x] If Reset!=0 summation is set to 0 If Disable!=0 the calculation is disabled If Preset!=0 the summation is set to PresetVal Preset val
GEL100340 Lim-Integrator Description It calculates the limited summation of the input [xl. It is possible to specify the Initial value of the summation [x] (IniCond), Reset the summation, Disable the calculation or set the summation to a PresetValue [xl.
Win-drive Input ports Reset==Disable== Output ports name out type description float Liited summation of the input [x] 179
GEL100340 Limit Description The input [x] is limited between two boundaries, LowerLim [x] and UpperLim [x].
Wintllrive Input ports name In LowerLii UpperLim type float float float executed always always always description Input to be limited [x] Lower limit of the Input [xl. It must be negative. Upper limit of the Input [xx]. It must be positive. wo234.
GEL100340 Low-Pass-Filter Law-Pass-Filter Description It performs a discrete first order low pass filter. User can set the time constant FilterTau [set]. It is possible to Reset the output, or Disable the calculation. It is the discretization of the continuous first order low pass filter, described by the following Laplace transfer function: 1 F(s) = -.-!L- = 1+2 - s l+& c Ml where z [set] is the time constant of the filter and lo, [radkec] is the cut-off frequency and.
WintDrive So the discrete relation that performs this discrete transfer function is: out, = Js- IilK + (l- -q out&l z z fO6 where the k index means actual value while k-l index means value calculated at the previous sample time of the control. C-style description static float FilterVakO; if (Reset != 0) FilterVal=O; else if (Disable != 0) { /* Nothing is performed */} else FilterVal=(l+Ts*WcutofQ* Out=FilterVal; FilterV~+0.
GEL100340 Ramp SetPQint RefSetPoint RampThe Ehet i Pnzset Description It performs a ramp with the possibility to set the ramp time [set] (RampTime), compared to a given set point [x] (SetPoint). When SetPoint is equal to RefSetPoint, RampTime is time for RampOut to go from 0 to RefSetPoint.
Win+Drive else { l* Delta must be a positive *I Delta=abs(RefSetPoint*O.
GEI-100340 Output ports name RampOut NegRamp PosgRamp type description float Ramp output [x] int Set to 1 if decreasing ramp is used, otherwise it is set to 0 int Set to 1 if increasing ramp is used, otherwise it is set to 0 ~0241
WintDrive Sign Sign Description The ouput is the sign of the input: +l if In is greater then 0, -1 if In is less than 0, or 0 if In is equal to 0.
GEL100340 TiineJlerivative Time-Derivative Description It performs a discrete time derivative of the input [xl. User can filter the time derivative with first order low pass filter with a filter time constant - [set] (FilterTau). It is also possible to Reset the output.
WintDrive Out Quiput Sum Gain integrator Input logical variables none Output logical variables None Input ports name FilterTau type float float executed always always Reset int always In description Input to be derived [x] Filter time constant [set] of the derivative filter. It must be greater than the cycle time of the control (CycleTimeMsec).
GEL100340 Time-Integrator Tima-Integrator Description It calculates the time integral of the input [xl. It is possible to specify the Initial value of the integral [x set] (IniCond), Reset the integral, Disable the calculation or set the integral to a PresetValue [p set]. C-style description static float IntegrakO; if (Reset != 0) Integral=O; else if (Disable != 0) { /* Nothing is performed */} else if (Preset != 0) Integral=PresetVal; else if (FirstRun != 0) Integral=JniCond+O.
Win+Drive Input ports name type In float IniCond float Reset Disable Preset int int int PresetVal float executed only if Reset==Disable== Preset==0 at the first run and if Reset==Disable== Preset==0 always only if Reset=0 only if Reset==Disable== 0 only if Reset==Disable== 0 and Preset!=0 description Input to be integrated [x] Initial value of the integral [x set] If Reset!=0 integral is set to 0 If Disable!=0 the calculation is disabled If Preset!=0 the integral is set to PresetVal Preset v
ciwaa34a Time-Lim-Int F In c LoweYLim b UpperLitn b InKand out w Reset b DLakle c Pmrt c PmetVal Description It calculates the limited integral of the input [xl. It is possible to specify the Initial value of the integral [x set] (IuiCond), Reset the integral, Disable the calculation or set the integral to a PresetValue [x set].
WintDrive Input logical variables None Output logical variables None Input ports name type IIl float executed only if Reset==Disable== Preset==0 float always float always float at the first run and if Reset==Disable== Preset==0 int always only if Reset==0 int int only if Reset==Disable== 0 I float only if ’Reset==DisabIe== 0 and Preset!=0 LowerLim UpperLim IniCond Reset Disable Preset PresetVal description Input to be integrated [x] Lower integral lit[x set].
GEI-100340 TS Description At the first run, it calculates the sample time D [set] of the control. This compund block is obsolete. It is only used to keep compatibility with previous version. When using this compound block, user must ensure that it is performedfirst, be@e any ather compound in his scheme. For this purpose it should use control connection line. C-style description if (FirstRun != 0) Ts=O.OOl *O.
WintDrive Units-Converter Units-Converter Description It multiplies input (In) by EuroFct (if UnitsSystem logical variable is equal to 0, by USAFct if equal to 1, by SIFct otherwise. This compound block provides a standard method to convert a quantity from one unit to another one. So a scheme working with different units can be developed, and different units can be used just by changing UnitsSvstem variable value. Three different units are provided: . units for european countries when UnitsSystem is 0 .
GEL100340 Input ports name In EuroFct +Efloat USAFct float SIFct float executed always only if UnitsSvstem only if UnitsSvstem only if UnitsSystem and UnitsSvstem Output port23 name out 196 type description int output description Input quantity Factor for European countries units ==0 Factor for United States of America units ==l Factor for International System of Units (SI) !=O !=l
WintDrive B.4. Glossary The following Help Topics are available: CvcleTimeMsec FirstRun Ts variable Units conversion table UnitsSvstem variable CycleEneMsec CycleTimeMsec is a standard logical variable that contains the sample time [msec] of the control. Its value is provided by Win+Drive. During simulation mode its value can be modified by using LogicalVariables Editor, while running on target by setting parameter number 501 “Period Tim”.
GEL100340 Units conversion table The following table shows most commonly used units of measurement: Quantity 1European units IUSA units 1 International System of Units rsn 1 m=lOOO mm=39370.1 MIL 1 m=3.28084 feet 1 m=lOOOmm= 39.3701 inches 1 m/sec=60 mpm d96.8504 fpm 1 radlsec=9.549297 ram 1 N=O.1019716 kghrw =0.224809 lbs Torque Mass 1 lcgf,,~n=7.233015 Ibs ft= 9.80665 Nm llbs ft=0.1382549kgfoEfi= 1.355817 N m 0.7375623 lbs ft 1 N m=O.1019716 kgforcem= 1 kg=2.204634 lbs 1 lb&.
,, ICD We bring good things to life. GE Motors & Industrial Systems GEI-100340 Rev. 1.03 (3/97) Internet Address: http://www.ge.
Win&he Appendix C Win+Drive Installation Instructions 199
. GEL100340 . The working environment of Win+Drive (also referred to occasionally as Win+DGFC and Win-DGFC) is com- posed of four elements: WIN-DGFC is to WIN-PRJ is Visual C++ 1.5x is TDlR is l l l l the base software of the graphic editor and contains the New Project tool create a project. the software that allows an user to create an application. the C Microsoft compiler used to compile the diagrams created with wIN_PRJ. the compiler used to compile the diagrams created with WIN-PRJ for DGFC.
WintDrive C.5 Standard Installation of WlN+Drive Win+Drive installation package is distributed on various formats. The installation instructions depend on the supplied media: Floppy disks 1. Insert disk 1 in the drive. 2. Execute Setup.exe program 3 . Execute the operations requested by the installation program. Singlefile. The installation disks can be grouped in a single file called Setupex.exe. 1. Select the directory containing the Setupex.exe file 2. Execute the Setupex.exe program 3 .
GEI-100340 C.6 N o n - s t a n d a r d i n s t a l l a t i o n o f Win+Drive Assumption: object WincDGFC project default directory C:\WIN-DGFC c:\WIN-PRJ default group WINPGFC WIN-PRJ To re-establish the connection between project and Win+Drive real directory D:\WPD-001 D:\WPD-NIP realgroup WPD-001 WPDJUP base software, take the following steps: In WINDOWS 95 1. Click on Start 2. Click on Settings 3. Click on Application bar... 4. Click on Applications of the start menu 5. Click on Advance 6 .
WintDrive C.8 Nun-standard installation of Visual C++ 1.5x Assumption: Object default directory default group project C:\WIN-PRJ CAmsVC WIN-PRJ D:\WPD-NIP Microsoft Visual C++ D:\msvclS Visual C++ 1.5x real directory real group WPDJIP compilers 1. Select WPD-NIP group 2. Execute WPD+DGFC 3. Choose Options 4. Choose Settings 5. In the field Path to local CC write: D:\msvclS 6. OK C.
GEL100340 7. Select the field Arguments 8. Replace the message: @short.fdename@ @WPD-DIR@ c:\tdlr with @shortfdename@ @WPD-DIR@ dkctarg 9.
WintDrive Appendix D Insfrucfioffs for installing Visual C++ 1.
GEL100340 1.
Wintllrive Choose the type of installation desired. Choose the Directories button to change the default directories for the installation file groups. Typical Installation Installs the most commonly accessed files. Help files are accessed from the CD-RQM. Space required: 58144 Kb Custom Installation Allows you to select files to install. OT add new files to your current installation. Minimum lnstallatirrn Installs only Visual Workbench, App Studio and Wizards. Compiler. libraries.
GEI-100340 Installation Options Specify installation directories for the file groups you have selected. install @rectory: m &xx&able Files: 6:WSVMEIN~ include Files: C:!MSVCUNCLUDE! Library Files: C:wiVC~LIE! sample Source Files: C:~MSVlXAMPLESI MFC Files: H SIP files. OLE 2.0 Dew Files: C:~MSVCIMFC~ 1 IXMSVCWELP~ 4 C:!MSVCItlLE2~ I OLEJODBC System Files: C:~WINDtlWSYXSTEM~ Disk Browser D r&3: 1. 2.
Wit-drive Choose the type of installation desired. Choose the Directories button to change the default directories for the installation file groups. ‘$ 1 Typical Installation Installs the most commonly accessed files. Help files are accessed from the CD-RQM. Space required: 58144 Kb Custom Installation Allows you to select files to install. or add new files to your current installation. Minimum Installation InsCalls only Visual Workbench. App Studio and Wizards. Compiler. libraries. tools.
GEL100340 Select the file groups to install. Use the option buttons to customize your selections. Choose the Directories button to change the default directories for the installation file groups. q Microsoft Visual gorkbench 0 Microsoft Foundation Classes [7 Tools 0 Online Help Files Space required on installation root drive: 2. 3. 210 Verify checks Click on libraries...
Wint D rive elect which run-time libraries to install. Memory Models’ i p;lllTiny -e ium Compacl Carge#Huge q q Targets q Windows -EXEFiles q Windows -DLL Files q QuickWin-EXEFiles q MS-&OS .EXEFiles IL- Math Support’ [XI Emulation .................. q !8&871 %?a....... . . .. * q Alternate Disk Space Information Space Available: Space Required: Libraries Size: Library Directory: lace required on installation root drive: 4. 5.
GEL100340 Select the file groups to install. Use the option buttons to customize your selections. Choose the Directories button to change the default directories for the installation file groups. 0 Microsoft Fogndation Classes q Tools 0 Online Help Files lo Sam& Source Code ‘:” G l-i Disk Space Information Installation root driveIdirectory: Space available on installation root drive: Space required on installation root drive: 6.
I 1.
GEL100340 Setup is ready to install Visual C++Please type your user name and organization. You may use up to 28 characters in each field. &er Name: Press Continue to begin installation. 1. 2. 3.
WintDrive 1.
GEI-100340 1. 2.
WintDrive 1.
GEI-100340 This warning may not appear. Click on OK 1.
J \r WintDrive Visual C++ Setup is complete. To put into effect the configuration changes you have made. choose Restart Windows. Choose Return to Windows if you want to continue working in the current Windows session. If you choose Return to Windows, any configuration changes you made will not be effective until you restart Windows. If you wish to run the Microsoft C++ Compiler from the command line, you iVCVARS.BAT. This will set your PATH.
I 3 I @ We bring good things to life. GE Motors & industrial Systems GEL100340 Rev. 1.03 (3197) Internet Address: http://www.ge.