Chapter E Application development Example. Schneider Electric XBTH / P / E / HM / PM Alphanumeric and Matrix Terminals
Реклама
Реклама
Magelis
Chapter E
Application development
Example
E
E - 1
E - 2
The objective of the example is to guide you quickly through your first application.
chapter B will give you all the information about the various operations performed.
WARNING
UNINTENTIONAL EQUIPMENT OPERATION
This example application will change register contents in remote devices. This may cause unanticipated change in device status. If this example is used in a functioning system, make sure all effects of any register change are fully understood before running this example.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
Magelis
Contents
Contents
This chapter includes the following topics :
1. Contents of the application __________________________________________ 5
2. Creation of an application using XBT-L1000 _____________________________ 6
3. Loading the application into the terminal ________________________________ 9
4. PLC application __________________________________________________ 10
5. Entry and modification of parameters _________________________________ 11
Reminder ______________________________________________________ 11
Entry principle __________________________________________________ 11
Entry via numeric keypad _________________________________________ 11
Entry using arrow keys ___________________________________________ 12
Deleting characters ______________________________________________ 12
E
Magelis E - 3
Contents
E - 4 Magelis
1. Contents of the application
E
1. Contents of the application
This application is suitable for any XBT Magelis with a display which has
20 characters per line, and an entry keypad.
It consists of : 2 application pages and 1 alarm page.
Page 1
Quantity :
Production management->
(read/write access to thenumeric field of word %MW1)
(the key calls up page 2)
Page 2
Production management
NB of products : (read-only access to the numeric field of word %MW2)
Magelis
Alarm 1
Output fault Page displayed when bit 0 of word
14 (%MW14) is at 1
For this application, the designer wants the PLC to request the display of an application page, light the function key LEDs and use the function key states (if the Magelis terminal used has them).
Composition of the dialog table (
see chapter A, § Principle of terminal "command and status" exchanges, Page 21 ) between the
terminal and the PLC
Word10 : Static Function keys
Word11 : Page number to process
Word12 : Writing table authorization
Word13 : Static function keys LED’s command
Word14 : Alarm table
The word syntax depends on the protocol used (example : UNITE V2.0
protocol -> word 10=%MW10). The terminal will be able to write these words if the value of word 12 (authorization) is equal in hexa-decimal to
H'A505' (05 = length of the table).
E - 5
E
2. Creation of an application using XBT-L1000
2. Creation of an application using XBT-L1000
1. Start up XBL-L1000 software.
2. Open new application by clicking on the icon
3. Select the XBT type (example : XBT-P022010).
4. Select the protocol (example : UNITELWAY) and confirm with OK
5. When the page editor displays page 1, enter the text of this page :
Quantity :
To enter the accented characters :
- select Edit/Insert characters ,
- double click on the character to be inserted,
- click on copy (the character is placed onto the clipboard),
- close the dialog box then click on the Paste icon (or
CTRL+V), the character is inserted where the cursor is located.
To create a variable field :
- click on the (0..9, A..Z) icon.
- modify the word number by entering 1 in the "i" field for the word
%MW1,
- modify the field length (example : 3),
- confirm with OK.
Enter the following line
Production management->
To create a link with page 2 :
- select "edition/insert link" menu (links to the right by default),
- confirm the dialog box "Create link" with OK
- confirm with OK, the default page number in the window "New application page".
A link with Page 2 can also be create by a funtion key (Static or dynamic with the XBT-PM).
6. Click on "Page 2" in the "Page tree" window in order to enter the contents of page 2.
E - 6 Magelis
2. Creation of an application using XBT-L1000
Production management
No of products :
- To create the variable field :
- click on the (0..9, A..Z) icon.
- modify the word number by entering 2 in the "i" field for word
%MW2,
- modify the field length (example : 3),
- click on Options ,
- select Read in the "access" zone and confirm with OK
- confirm the insertion of the field with OK.
7. Click on the icon to make the "New alarm page" window appear, click on OK to associate the page to bit 0 (selected by default) of the first alarm word n+0 (the word number will be assigned subsequently during configuration of the dialog page).
The window "Appli1-1:ALARM 1" is displayed.
Once the first line of this page has been created and reserved for timestamping the alarms, enter the alarm text from line 2.
Output fault
8. Select the Configuration/Terminal parameters menu .
To display page 1 when the terminal is started up :
- Deselect system page, select Application Page
- Click on 1: page1 . to select page 1
- Check that the language selected is correct and confirm with OK.
9. Configuration of the dialog table .
- Select the Configuration/Dialog table menu
- Click on Number of displayed page in the "Dialog table" zone, then
Delete .
- To declare the start address of the PLC dialog table, click on Modify in the address zone, enter 10 in the " i" field (start of the dialog table in %MW10) and confirm with OK.
E
Magelis E - 7
2. Creation of an application using XBT-L1000
10. Confirm with OK.
To assign a word to the display of the alarm page, click on Alarm table in the "Dialog table" zone, then enter 1 in the "Selected function size" zone and confirm with OK.
11. Save the application with the File/Save menu (default name : appli1.dop).
E - 8 Magelis
3. Loading the application into the terminal
3. Loading the application into the terminal
1. Power up the terminal
2. Connect the PC to the terminal (XBT Z915 cable) then select the
Transfer/Export command to transfer the application to the terminal.
Magelis E - 9
E
4. PLC application
4. PLC application
The dialog table (%MW10 to %MW14) can be used if the authorization word (%MW12) is equal to A505 in hexadecimal.
The designer can use various words from the dialog table.
Word %MW10 contains the image of the function keys (F1 key pressed
: bit %MW10,0=1).
Word %MW11 contains the number of the page to be displayed (1 or 2 in the example).
Word %MW13 controls the display of the function key LEDs (F1 key bit
%MW13,0).
Setting bit %MW14,0 to 1 makes the alarm page appear blinking, press
ENTER to steady the display.
After transferring the application into the terminal, connect the latter to the PLC (see service instructions for wiring : example cable XBT-Z968 for TSX07 with UNITELWAY).
E - 10 Magelis
5. Entry and modification of parameters
5. Entry and modification of parameters
Reminder
A page is composed of texts and fields. A field may correspond to values which have to be filled in (write) or modified (read/write) by the user or to values written by the PLC.
Example :
Ex.
Quantity :
Production management ->
Text Field
Entry principle
Entry mode is accessed using the MOD key.
- If the field contains more than 1 digit, the digit to be entered is displayed in steady mode, while other digits blink.
- If the field contains 1 digit, the digit to be entered blinks.
Entry via numeric keypad
Keys 0 to 9 and +/- (toggle function, + is the default sign) are used to enter data.
- Enter the first digit, the following digit (to the right) stops blinking.
- Enter the second digit.
- Enter the other digits and confirm the whole entry with ENTER.
E
Magelis E - 11
5. Entry and modification of parameters
Entry using arrow keys
- Select position on the digit to be entered using the arrow keys.
- Increment or decrement the value of the digit with the arrow keys.
- Go to the next digit with the arrow keys.
- Confirm the whole entry with ENTER .
Deleting characters
The DEL key deletes the character to the left of the steady digit.
To delete the last steady digit :
- Move the cursor using the right arrow key.
- Press the DEL key.
E - 12 Magelis
Изтегляне
Реклама