The text of a manual · part 9 of 41
E-terminals Programming manual: 5 Programming using MAC Programmer+, pages 64 to 72
Pages 64 to 72 of 335, from E-terminals Programming manual
The original document is the PDF (4.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Beijer Electronics AB E200
Page 64
Programming using MAC Programmer+
Make same size Under Make same size there are three alternatives for making the marked objects the same size. Width
Adjust the marked objects so that their width is the same as the reference object. Height
Adjust the marked objects so that their height is the same as the reference object. Both
Adjust the marked objects to exactly the same size as the reference object.
Space evenly Under Space evenly there are two alternatives for adjusting the space between marked objects Vertical
Adjusts marked objects with an even vertical spacing. The uppermost and lowermost objects retain their positions. At least three objects must be marked. Horizontal
Adjusts marked objects with an horizontal spacing. The leftmost and rightmost objects retain their positions. At least three objects must be marked.
Tile Under Tile there are two alternatives for adjusting objects so that they are edge-to-edge. Vertical
Adjusts marked objects so that they align vertically edge-to-edge with the reference object. Horizontal
Adjusts marked objects so that they align horizontally edge-to-edge with the reference object.
53
Page 65
Programming using MAC Programmer+
How to group object In the Layout menu you can select to group several objects. The grouped objects are handled as an object that can be resized. Color and font can be changed individually for object in the group object. When you click on a object in the group object the dialog for the object is displayed. Mark the objects you want to group and select the function Group in the Layout menu.
With the function Ungroup in the Layout menu you release the group object.
Save and load group object If you mark a grouped object and press the button Library in the toolbox in the graphic block editor you can save the object. When you press the button library without any object marked you can load grouped objects stored on the computer. MAC Programmer+ is delivered with several grouped objects. The objects are stored in c:\Program\Beijers\MAC Programmer+\lib\library\.
54
Page 66
Programming using MAC Programmer+
Create series In the graphic block editor you can create series of objects. First you create two rows and/or columns with the same object.
Thereafter you mark the objects and select the function Create series in the Object menu.
A dialog is now displayed where you select to create rows or columns, the number of rows/columns and in which direction the series shall expand. MAC Programmer+ now creates a table with the assigned number of rows or columns.
55
Page 67
Programming using MAC Programmer+
Note! To be able to create the table the last character in the leadtext must be a figure. The object Alarm banner are not allowed in a table.
Symbols You can create symbols in three ways, using the Symbol manager, with the functions Create symbol or copy graphics from other Windows programs using the clipboard. See separate chapter how to use the Symbol manager
The function Create symbol – Select the function Create symbol. – Drag a marking frame around the graphic you want to save as a symbol. – State the name of the symbol, max 8 characters. The symbol is now stored in the symbol directory with the stated name.
56
Page 68
Programming using MAC Programmer+
Copy graphics from other programs – Use the copy function in another program (e.g. Paint). – Make graphic block active in the MAC Programmer+ and select Paste. – State the name of the symbol, max 8 characters. The symbol is now stored in the symbol directory with the stated name. With the functions copy and paste in the MAC Programmer+ it is possible to copy graphics and symbols between blocks and between projects. Note! When you copy user-defined symbols between projects, the symbol itself will only be copied if the symbol does not already exist in the target project.
5.6 The text block editor This chapter describes the text block editor in the MAC Programmer+ . The editor is based on Windows standards. In text block editor you build up dialogs and reports. A text block can consist of static text and dynamic objects. Static text is text which is not changed when executing the program. Dynamic objects are objects which are linked to the signals in the PLC system.
How to open the editor The text editor is opened by double clicking on the current block in the Block Manager or from the block list. In the block list you select a defined text block or create a new text block.
Mouse and keys Click at the beginning of the text you want to mark and drag the mouse pointer over the text. If you are using the keyboard press on shift and arrow keys. The function Cut will erase marked text. The character End of line is stated when you press the key combination [Ctrl] [Enter]. Double click or press [F4] on object to view parameters.
57
Page 69
Programming using MAC Programmer+
The toolbox In the text block editor there is a toolbox with the following functions. All functions are also available in the menus. See the chapter Textbased presentation and maneuvering for the different objects that can be used in text blocks. Zoom in Zoom out ASCII choice list. Selection of characters not available on the keyboard
Define text block Static text The text block editor is a text editor in which you type the static text. You can also use the Windows functions copy/paste in or between blocks, or from other Windows programs e.g. Microsoft Word. This makes it easy to create documentation of your application.
Dynamic object You can define a dynamic object anywhere in the text. Select the type of object in the toolbox or in the object menu and then you define the object in the dialog displayed. The dynamic objects are signed with the character # followed by one or several ’-’ depending on the number of positions in the object. For further details about definition of dynamic objects, see the chapter Textbased presentation and maneuvering.
58
Page 70
Programming using MAC Programmer+
5.7 The symbol manager Not valid for E50. In the symbol manager you have the possibility of importing and exporting symbols. You can also create and delete user-defined symbols from the symbol directory. In the symbol list you can see the user-defined symbols. The predefined symbols are not shown, since they are not changeable. How to create a symbol is described in the section Symbols in this chapter.
Export symbols Symbols can be exported in BMP-format to be used in other applications. Only black and white BMP-files can be used in E300 and E600.
59
Page 71
Programming using MAC Programmer+
Import symbols The import function makes it possible to reuse symbols from other applications. Picture files in format bmp, cmp, dex, fpx, jpg, mpt, pcd, png, tga, tif and pcx can be imported into the symbol directory from other Windows applications e.g. Paint. Only black and white BMP-files can be used in E300 and E600. MAC Programmer+ is delivered with several symbol libraries containing different symbols, e.g. pump symbols. The symbols are stored in c:\Program\Beijers\MAC Programmer+\lib\bitmap\.
Create The function Create is used to create new symbols. When you select Create, you first have to enter a name of the symbol. When you click OK the bitmap editor is open. The bitmap editor works as a usual drawing program with the limitation according to current terminal.
Delete
When you press the right mouse button and draw with the pen, you draw with the background color. If the background color is white it looks like you delete.
Edit The function Edit activates the bitmap editor for a defined symbol.
60
Page 72
Programming using MAC Programmer+
Duplicate The function is used to create a copy of current symbol with a different name.
The More function The More function is used to add more information to the symbol: File name:States the file name if the symbol was imported from a file. Date created:States the date the symbol was created. Source: States the source of the symbol. None: Unknown source Bitmap file:Imported from bitmap file Clipboard:Imported from clipboard (Copy & Paste function) Graph block:Created in a graphic block Comment:Here you add your own comment to the symbol.
The Delete function The Delete function is used to delete a symbol from the project.
The Transparent color function When you import a symbol you can select one color in the symbol to be transparent.
The function No. of Colors In E700 and E710 supporting colors you can select to handle symbols in 16 or 256 colors.
61