The text of a manual · part 7 of 41
E-terminals Programming manual: 5 Programming using MAC Programmer+, pages 46 to 54
Pages 46 to 54 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 46
Programming using MAC Programmer+
5
Programming using MAC Programmer+
This section describes how the terminal is programmed using MAC Programmer+. For installation instructions we refer to the chapter Installation. All the functions can be reached with MAC Programmer+ from the menu:
5.1 Creating a project A new project is created by selecting New in the menu File. The Project Settings dialog is now shown. Here you can select the controller system, type of terminal and color scheme.
Terminal: Press Change...
Select terminal type and version (system program) for current terminal type. 35
Page 47
Programming using MAC Programmer+
Controller system: Select here the controller system to which the terminal is to be connected. When you press the Change... button the following dialog is shown. The list shows installed drivers. Here you select Brand name, protocol and controller model.
Update drivers from Internet
To update available drivers to the latest version or to install new drivers from Internet you use the function Update terminal drivers, from Internet in the File menu. All project must be closed before this function is used. The computer must be able to make an Internet connection. You don’t need a browser. When the connection is established a list showing all drivers that can be downloaded from Internet to the computer.
36
Page 48
Programming using MAC Programmer+ The list shows the version number of available drivers and the version number of installed drivers. Mark the driver/drivers you want to install in the MAC Programmer+. The function Mark Newer will mark all drivers that are available in a newer version then the one installed and the drivers not installed. Then you select Download. Each drivers is approximately 500 kb and it is ready to use when the download is ready. Update drivers fom disk
To update available drivers to the latest version or to install new drivers from disk you use the function Update terminal drivers, from Disk in the File menu. All project must be closed before this function is used. Open the mpd file in the map where you find the drivers. Now a list showing available drivers is displayed. The list shows the version number of available drivers and the version number of installed drivers. Mark the driver/drivers you want to install in the MAC Programmer+. The function Mark Newer will mark all drivers that are available in a newer version then the one installed and the drivers not installed. Then you select Download. Each drivers is approximately 500 kb and it is ready to use when the download is ready.
Color scheme: In terminals supporting colors you can create your own color scheme and store it under a unique name. The color scheme decides the default color of the background, menus, dialogs, objects etc. When you select an object in the toolbox or in the menu the colors of the object are shown as defined in the color scheme. When you select Change the following dialog is displayed. Here you change the current color scheme or create a new one.
37
Page 49
Programming using MAC Programmer+
The Apply button update all colors in the project, except lines, circles, rectangles and arcs.
5.2 Changing project settings Both the selected terminal and the controller system can be changed in the project. Choose Project settings in the File menu and press Change at the parameter Terminal and/or controller system. If you update the system program in the terminal to a newer version you must change to the correct terminal version in the Project settings dialog. If this is not done the new functionality in the new terminal version can not be used. If you change the controller system in the project to a system with other names of the used devices these must be changed. It is easily done by using the internal name list, see the section Name list. 1. Choose Name list in the View menu. 2. Select Undefined to insert all I/O’s used in the project to the name list. 3. Select Export to export the name list to a text file. State a name and press Save. Define how the text file will be separated. 4. Pick up the text file in a text editor, e.g. Wordpad. 5. Change all the I/O’s to devices used in the new controller system and save the file as a text file.
38
Page 50
Programming using MAC Programmer+ 6. Select Import in the Name list dialog and press No on the question if invalid I/O’s should be removed. 7. Select Rebind to update all new I/O’s in the project with the new device names. 8. Choose Project settings in the File menu and press Change. 9. Select the new controller system you want to change to and press OK twice.
5.3 Creating a block via the Block Manager The Block Manager is shown when you have created a project. The system blocks included in an application are shown.
Note! E50, E100 and E200 has not the block Contrast. Only E700 and E710 has the System monitor.
In the Block Manager there is a toolbox with the following functions. Mark block and create block. Add a new block. Define block header for selected block.
39
Page 51
Programming using MAC Programmer+ Make a block jump to the block to be created with the cursor. Make function key block jump to the block to be created with the cursor. Delete selected block. Edit selected block. Block Manager settings. Zoom in. Zoom out.
Define block When you add a block in the Block Manager the following dialog is shown. It is a simplification of the complete block header.
Block name: A name for the block can be written here. The block name is shown in the Block Manager and in the block list.
Block no.: The number of the block. The defined values are entered automatically if a block with assigned number already exists. The block number 0 is shown automatically on starting up and must always be used in a project.
40
Page 52
Programming using MAC Programmer+
Block type: Select block type, graphic or text.
Screen size: Select character size for textblock. The character size can not be changed for a defined object. .
Template: Here you can copy a template to the block or save the block as a template.
Define the complete block header Basic parameters valid for each single block are defined in the block header. Select Header in the Block Manager menu. The following parameters can be defined in the block header:
41
Page 53
Programming using MAC Programmer+
Block no.: The number of the block. The defined values are entered automatically if a block with assigned number already exists. The block number 0 is shown automatically on starting up and must always be used in a project.
Block name: A name for the block can be written here. The block name is shown in the block list.
Display signal: A digital signal which when activated results in the block being shown on the display. If display signal are used they should be ordered consecutively, for the different blocks to get the best performance. This field is not filled in if another method for changing block is used.
Print signal: A digital signal which when activated results in the block being printed out on a connected printer. The display signal and printer signal can be the same. The printer signals should be used consecutively to print out as quickly as possible.
Completion signal: A digital signal which is activated by the terminal when the print out is completed. Normally the signal is set. If the function Reset in Block Header is marked then the signal is set to zero when the print out is completed. Note! Only textblock can be sent as email message.
Send mail signal: The message is send when stated signal is set.
Mail completion signal: A digital signal that is aktivated by the terminal when the message is sent. Normally the signal is set. If you mark the function Reset the signal will be reset when the message is sent.
42
Page 54
Programming using MAC Programmer+
Mail to address: Enter the email address to the receiver. Select up to eight receivers from the list shown when you click on the ... button. The list of email addresses is defined in the dialog SMTP Client Service under Network Services in the Setup menu.
Attach file: Enter the name of a trend or recipe file to be attached to the message. If there is a trend file and a recipe file with the same name the trend file is sent.
Security level: A security level (0-8) for the block is stated here. The operator must enter a password to enter the block. It must be equivalent to a given or higher security level if a security level > 0 is stated.
Background block no: Here you have the possibility to load another graphic block as a background in current block. For example if you want to use the same background in more than one block. When the graphic block editor is active you can select if the background block shall be shown in current block with the function Show Background Block in the Window menu.
Cursor color: Select the color of the cursor in graphic blocks.
Cursor thickness: Select between three different alternatives of the cursor in graphic blocks.
Block type: Select block type, graphic or text. It is not possible to change block type for a defined block.
Screen size: Select the character size in the text block. It is not possible to alter the type of a defined block.
Fkeys: The local function keys for the block are defined here. See the chapter Function Keys. 43