5. Contents of the dialog table. Schneider Electric XBTH / P / E / HM / PM Alphanumeric and Matrix Terminals
广告
广告
5. Contents of the dialog table
5. Contents of the dialog table
The number of words in the table depends on the choice of states and commands that are to be processed via the dialog.
So, the number of available words depends on the PLC type (For example : presence or not of function keys).
Notation convention for describing the table
%MWn word of 16 bits
%MWn, i : bit i of word n
The address n is taken as the start of table address.
C
Word
%MWn+0 to
%MWn+1
%MWn+2
The description below gives the content of the various dialog table words. Refer to the XBT-L1000 software on-line help for more information on the words.
Functions
Static function keys
System keys
Exchange Page
PLC <- XBT
PLC <- XBT
Magelis C - 11
5. Contents of the dialog table
Word
%MWn+3
%MWn+4
%MWn+5 to
%MWn+8
%MWn+9
%MWn+10
%MWn+11
%MWn+12
%MWn+13
%MWn+14
Numeric keys
Set PLC clock
Functions
Communication control
Exchange Page
PLC <- XBT
PLC <- XBT
PLC <- XBT
Number of displayed page
Number of last field entered
Last alarm acknowledged
Confirmation report
Log occupancy rate
Number of page to be processed
PLC <- XBT
PLC <- XBT
PLC <- XBT
PLC <- XBT
PLC <- XBT
PLC <->XBT
%MWn+15
%MWn+16
Field number to be entered
Print command
%MWn+17
%MWn+18
%MWn+19 to
%MWn+20
%MWn+21
%MWn+22 to
%MWn+23
%MWn+24
Writing table authorization
Reset log
Static function key LED’s command
Dynamic function key LED’s command
Lock static function keys
Lock system keys
Lock numeric keys %MWn+25
%MWn+26 to
%MWn+41
%MWn+42 to
%MWn+46
%MWn+47
Alarm table
Set XBT clock
Printout table in free format (maximum of 40 words on one line of printout)
PLC <->XBT
PLC<->XBT
PLC -> XBT
PLC -> XBT
PLC -> XBT
PLC -> XBT
PLC -> XBT
PLC -> XBT
PLC -> XBT
PLC -> XBT
PLC -> XBT
PLC -> XBT
C - 12 Magelis
5. Contents of the dialog table
Detailed description
%MWn+0 to %MWn+3: Images of terminal keypad keys to PLC.
Bit at 1= key pressed.
%MWn
Bit 15
F16
Bit 0
F1
%MWn+1
Bit 7
F24
Bit 0
F17
%MWn+2
Bit 0: Up arrow
Bit 1: Do%MWn arrow
Bit 2: Right arrow
Bit 3: Left arrow
Bit 4: MOD
Bit 5: PRINT
Bit 6: MENU
Bit 7: SYST
Bit 8: ALARM
Bit 9: EXIT
Bit 10: HOME
Bit 11: +1
Bit 12: -14
13: ENTER
Bit 14:Reserved
Bit 15:Reserved
%MWn+3
Bit 0: 0
Bit 1: 1
Bit 2: 2
Bit 3: 3
Bit 4: 4
Bit 5: 5
Bit 6: 6
Bit 7: 7
Bit 8: 8
Bit 9: 9
Bit 10: .
Bit 11: +/-Bit
12: LED
Bit 13:Reserved
Bit 14:Reserved
Bit 15:Reserved
Some bit value are not usable in this range of product.
C
Magelis C - 13
5. Contents of the dialog table
%MWn+4 : Communication control
Word incremented by 1 at each communication request by the terminal.
It is sent to the PLC. This monitors the communication between the terminal and PLC.
%MWn+5 to %MWn+8: Set PLC clock.
C - 14
%MWn+5
%MWn+6
%MWn+7
%MWn+8
Seconds
Hours
Month
Century
Reserved
Minutes
Day of the month
Year
Only XBT-E possesses a protected real-time clock. The XBT writes the time and date periodically to the PLC (approximately every second).
2 coding formats are possible:
Hexadecimal or BCD (option selected with XBT-L1000).
WARNING
UNINTENTIONAL EQUIPMENT OPERATION
If communications between XBT and PLC are lost, operator's control over machine may be lost completely or partially. It is designer's responsibility to program PLC logic to account for this situation. One of the good ways to do that is to monitor %MWn+4 of the dialog table from the PLC program.
Failure to follow this instruction can result in death, serious injury, or equipment damage.
%MWn+9 : Number of page to be displayed
N ° of the page displayed on the terminal and to be sent to the PLC.
It contains H'FFFF' if it is a system page or a displayed alarm.
%MWn+10 : Number of last field entered
N ° of last field entered on the terminal to be sent to the PLC.
%MWn+11 : Last alarm accepted
This information is only present on one PLC scan, it then returns to
H'FFFF'.
Magelis
5. Contents of the dialog table
Magelis
%MWn+12 : Confirmation report
%MWn+12
Bit 0: Confidential mode
Bit 1: Configuration mode
Bit 2: ENTER on entry
Bit 3: ESC on entry
Bit 4: End of entry on TIME-OUT (1mn)
Bit 5: Reserved
Bit 6: Printing fault
Bit 7: Reserved
Bit 8: Reserved
Bit 9: Reserved
Bit 10: Reserved
Bit 11: Current language
Bit 12: Current language
Bit 13: Set terminal clock realised
Bit 14: Reserved
Bit 15: Reserved
%MWn+13 : Log occupancy rate
The occupancy rate of the alarm log as a % on the terminal and to be sent to the PLC.
%MWn+14 : Page number to be processed
To process page 22 insert 22 -> %MWn+14
When %MWn+9 = 22 and %MWn+14 = H'FFFF' the command is OK
When %MWn+9 < > 22 and %MWn+14 = H'FFFF' the command is not OK
Special commands:
Page N°: 65521 normal Brightness
Page N°: 65522 low Brightness
C
%MWn+15 : Field number to enter
If the field 20 is to be entered on page 10 :
* confirm that %MWn+9 = 10
* then 20 -> %MWn+15
When %MWn+10 = 20 and %MWn+15 = H'FFFF' the command is OK.
%MWn+12 then gives more detail : "ENTER on entry".
When %MWn+10 < > 20 and %MWn+15 = H'FFFF' the command is not OK
%MWn+12 then gives more detail : " ESC Time-out".
C - 15
5. Contents of the dialog table
Ex.
%MWn+16 : Print command
MSB : Print code LSB : Long Tab
A code is assigned to each possible print type.
- free format print :
- print sheet :
01 (nb octets)
04 (n° page 0 to 127)
- print log :
- "Hard-copy" Display:
02 (00)
05 (n° page 0 to 127)
For free format printing, the PLC gives the length in bytes of the information to be printed (maximum 40 words) in the LSB. The terminal reads the length given in word table to the end of dialog table address +
1. For sheet print, the LSB represents the N ° of sheets.
The word "Print command" is written by the PLC.
This same word is written to H'FFFF' by the XBT, to acknowledge the end of the command.
%MWn+17 : Writing table authorization
MSB LSB
For a 20 words long table, the PLC can write to the authorization word
H'A514'.( A5= authorization, 14= Nbr of words in dialog table
Hexadecimal value)
%MWn+18 : Reset log
The PLC writes H'00FF' in this word.
- the XBT clears the log and resets the "log occupancy rate" (%MWn+13).
- the PLC must writes H'0000' in the word %MWn+18 to accept a new
Reset Log command .
C - 16 Magelis
5. Contents of the dialog table
%MWn+19 to %MWn+20: Static function key LED’s command
Bit 15
%MWn+19 F16
Bit 0
F1
%MWn+20
Bit 7
F24
Bit 0
F17
%MWn+21 : Dynamic function key LED’s command
%MWn+21
Bit 3
R4
Bit 0
R1
%MWn+22 to %MWn+23 : Lock function keys
Bit 15
%MWn+22 F16
%MWn+23
Bit 7
F24
Bit 0
F1
Bit 0
F17
%MWn+24 : Lock system keys
%MWn+24
Bit 0: Up arrow
Bit 1: Do%MWn arrow
Bit 2: Right arrow
Bit 3: Left arrow
Bit 4: MOD
Bit 5: PRINT
Bit 6: MENU
Bit 7: SYST
Bit 8: ALARM
Bit 9: ESC
Bit 10: HOME
Bit 11: +1
Bit 12: -1
Bit 13: ENTER
Bit 14: Reserved
Bit 15: Reserved
Some bit value are not usable in this range of product.
C
Magelis C - 17
5. Contents of the dialog table
%MWn+25 : Lock numeric keys
%MWn+25
Bit 0: 0
Bit 1: 1
Bit 2: 2
Bit 3: 3
Bit 4: 4
Bit 5: 5
Bit 6: 6
Bit 7: 7
Bit 8: 8
Bit 9: 9
Bit 10: .
Bit 11: +/-Bit
12: LED
Bit 13: Reserved
Bit 14: Reserved
Bit 15: Reserved
%MWn+26 to %MWn+41 : Alarm table
Command to display alarm pages
Bit 15
%MWn+26 AL16
%MWn+27
%MWn+41 AL255
Bit 0
AL0
AL17
C - 18 Magelis
5. Contents of the dialog table
%MWn+42 to %MWn+46 : Set XBT clock.
%MWn+41
%MWn+42
%MWn+43
%MWn+44
Seconds
Hours
Month
Century
Reserved
Minutes
Day of the month
Year
Only the XBT-E has a protected real-time clock.
Each time one of these words is modified, the XBT sets itself to the date and time given in this table.
2 coding formats are possible:
Hexadecimal or BCD (option selected with XBT-L1000).
%MWn+47 : Free format printing table (up to 40 words)
See print command.
C
Magelis C - 19
5. Contents of the dialog table
C - 20 Magelis
Magelis
Chapter D
Operating the terminal D
D - 1
D - 2 Magelis
广告