Home

3 Programming the Handheld Terminal

image

Contents

1. INDEX BIT IN 1 N gt Y Y Y Analyze Index Error amp Handling Execute Order T END Handshaking when receiving data 14 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling Protocol b Sending Data The KeTop 40 tests if the receive bit of the partner station has the same state as the own send bit If this is the case the device will be able to send data The correspond ing data and the index will be copied to the out put buffer Notice To avoid inconsistent data in the message at bus systems with cyclic data transfer e g PROFIBUS InterBus the first header byte containing the toggled send bit must always be written as last byte Following that the send bit of the send station will be inverted to indicate the sending The handshake of the partner statioin is monitored If the counter part station does not respond within 1 s the send bit will be toggled User s Manual version 1 1 material no 62010 15 KEBA 2005 KILEBI Protocol KeTop T40 MMICOM Send Read IN Data v ONLINE IN 1 N Y Y SEND BIT IN RECV BIT OUT MMICOM Y Receive P lt N X Timeout gt RECV_BIT IN SEND_BIT OUT Y v SEND BIT OUT 0 N r Y Y Y SEND BIT OUT 1 SEND
2. OUT 0 Error Handling v v B 16 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling Protocol A B ONLINE OUT 1 DISTURBANCE OUT 0 INDEX BIT OUT 1 STANDARD BIT OUT 2 1 0 Y Copy Index amp Data Y Write OUT Data lt y N Read IN Data Timeout EM Y 1sec lt A RECV_BIT IN N SEND OUT SEND_BIT OUT 0 N Y Y Y Y SEND BIT OUT 2 1 SEND BIT OUT 0 Write OUT Data lt 4 Y END Handshaking when sending data User s Manual version 1 1 material no 62010 17 KEBA 2005 KILEBIu Protocol KeTop T40 Overview of Functions The following table shows an overview of the services that constitute the base of the particular handheld terminal functions Services are request telegrams that are sent from a send station client to a receive station server In the data fields the user data defined by the in dex are transmitted Standard Objects Header Data fields Byte 1 Byte 3 Reserved PLC HT 10 Send key Key status Key status Key status Key status status group 1 group 2 group 3 group 4 keys 1 to 8 keys 9 16 keys 17 to 24 keys 25 to 32 poem eer qu number oo LED status group 1 group 2 group 3 group 4 group 5 group
3. User s Manual version 1 1 material no 62010 b7 50 Value of var b15 Value of variable b31 Value of variable 2nd byte 3rd byte 4th byte 2nd byte b7 50 Value of var 1st byte 1st byte b15 50 Value of variable b31 Value of variable 50 1st byte 2nd byte 3rd byte 4th byte Length Variable No 1st byte 2nd byte 19 KEBA 2005 Protocol KeTop 40 Manufacturer Specific Objects Header Data fields Byte 1 Reserved PLC gt HT AO Display text Line Display Text number binary Number of number attribute follow up texts Graphic functions Line Rectangle 5 2212 22 rm ie Ellipsis Text 1 Text 2 character type Set color window pem eem poem Bitmap General functions Clear screen 20 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling Protocol Serial Side KeTop gt Gateway Structure of Telegrams Request Telegram The request telegrams always have a length of 11 bytes They consist of e 3 bytes of control characters STX ETX BCC and e 8 bytes of MMI COM data 2 bytes header und 6 bytes data part The first byte contains the handshake information between the handheld terminal and the PLC The second byte in the header contains the index number which stands for a certain command The structure of the dat
4. x lt 1001 11 x x 10 001 1 0 1 cs 11xx 1001 11x x KETOP T40 On line Fault Receiving Standard Index O Sending XX 1 0 1 0 1 1 x x Handshaking between PLC and KeTop T40 Situation Confirm Server Confirm Server Sending Client Confirm Server Sending Client The KETOP 40 is the server and confirms the message by changing the state of its receive bit 0 gt 1 The KETOP 40 is still the server and confirms the next message again by changing its receive bit 1 gt 0 The 40 is the client and sends a message The state of its send bit changes 0 gt 1 The KETOP 40 is the server again and confirms the message by changing the state of its receive bit 0 gt 1 The 40 is the client and sends a message The state of its send bit changes 1 gt 0 13 KEBA 2005 Protocol KeTop T40 a Receiving Data MMICOM Receive Read IN Data v ONLINE BIT IN 1 amp DISTURBANCE BIT IN Y Y SEND BIT IN lt gt RECV_BIT OUT Y y RECV_BIT OUT SEND_BIT IN ONLINE_BIT OUT 1 DISTURBANCE BIT OUT 0 Write OUT Data
5. From that time on a telegram with the current key status will be sent to the PLC each time a key is pressed or released on the handheld terminal ser vice 10H Send key status Index Data fields 10 Send key Key status Key status Key status Key status PLC HT status group 1 group 2 group 3 group 4 10H XX XX XX XX Key status This parameter contains the key status of the corresponding key group n group For the assignment of the keys see drawing in chapter User s Manual version 1 1 material no 62010 29 KEBA 2005 HT Functions KeTop 40 Requesting Key Status from the HT When the value 1 is written to the 1 byte system variable No 20 14H ORDER BOX on the HT the HT sends the current key bitmap once to the PLC The telegram required for requesting the HT key status is structured as fol lows Index Data fields 14 Send b15 50 PLC gt HT 1 byte Variable No Value of var variable 14H 00H 01H After receiving the telegram the HT responds once using the service 10H Send key status Index Data fields 10 Send key Key status Key status Key status Key status PLC lt HT status group 1 group 2 group 3 group 4 keys 1 8 keys 17 24 keys 25 32 10H XX XX 30 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions Sending Key Number to the PLC 2 possibilities are
6. HT Functions KeTop 40 Example Displaying a Text with String Variable The PLC should activate a text on the display of the handheld terminal The text to be displayed contains a string variable The user types in a text on the handheld terminal and presses ENTER The handheld terminal sends the text characters entered to the PLC using the service 18H Send bytes If 8 characters are to be transmitted the sending process must be per formed twice 140 text memory programming software No Text 0 Var No 102 1 Data type STRING 5 Format TEXT 47 Name ________ 1 0 type IN Header Data fields gt Bytes 1 2 Bytes 3 8 2 5 Textnumber binary coded v x g 5 Display attribute Client gt lt gt lt 2 lt Confirmation L Display Text No Receive bit Send bit Server HT display Name GERALD ENTER Length Variable No Y Value of variable vC CUT dg Send Bytes Index Server Confirmation remaining Length Variable No Variable value Y oA CU D Send Bytes Index Sever O 1 gt Confirmation To get a better overview only the receive bit and the send bit of the 1 byte of the control status word are shown Example Displaying a text with string variable 52 KE BA User s Manual version 1 1 material no 62010 KEBA 2005 Serial Gateway Coupli
7. If you position graphical elements over existing texts or bitmaps these texts and bitmaps will be overwritten Pixel This command enables representing a single pixel at the specified x y posi tion of the HT display Index Data fields BO x y PLC gt HT Pixel BOH XX XX User s Manual version 1 1 material no 62010 57 KEBA 2005 KEBI HT Functions KeTop 40 Line This command enables representing a line on the HT display according to the specified x y coordinates 1 L Data fields yO x1 y1 PLC gt HT ks B1H XX XX XX XX _X0 yO xt y1 Set line type This command is used to set a line type on which all other graphical ele ments are based This setting remains valid until a new line type is defined Data fields Type PLC gt HT E line type BAH Examples of line types Bitmap of line 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Pixels on display Line type Bitmap of line 1 1 4 1 1 000 4 4 4 4 1000 Pixels on display Linetype Bitmap of line 1 14 4 10 4 10 4 4 4 10 10 Pixels on display Line type Notice When defining a line type take care to arrange several identical bitmaps one after the other If you choose an unsuitable bitmap the line might get ir regular 58 User s Manual version 1 1 material no 62010 KEBA 2005 Serial Gateway Coup
8. The LEDs of the keys Shift Lock Lock Alt Lock are activated internally and cannot be activated by the PLC User s Manual version 1 1 material no 62010 35 KEBA 2005 HT Functions KeTop 40 Activating Particular LEDs on the HT For activating LEDs on the handheld terminal the service 23H is used Using this service the PLC sends the number of the LED to be activated and the LED attribute to the handheld terminal Index Data fields PLC gt HT LED attribute LED No XX LED attribute This parameter sets the switching attribute the flashing attribute and the LED color This LED attribute is only valid for the service 23H Switching attribute 0 off 1 on Flashing attribute 00 not flashing 01 flashing 10 flashing 11 flashing LED colour 0001 red 0010 green LED No This parameter contains the number of the LED to be activated 36 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions Example Defining LED Attribute in Service 23H Using the service 23H the red LED Number 34 should be activated first and then the green LED number 33 switched over to the flashing mode The corresponding LED attributes must be defined as follows LED attribute for activating the red LED No 34 23H Send LED No KETOP T40 keyboard 34 00 not flashing e 0001 red L
9. 1 2 T Bytes 3 8 Send LED No LED attribute x LED number STX ETX BCC 02H 03H 81H n 22 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling Protocol Example Serial Protocol PLC Gateway box PLC request e g turn on LED 8 bytes data 8 bytes MMI COM data BCC positive confirmation KETOP request e g send key depression 7 STX 8 bytes MMI COM data negative confirmation Repetition KETOP request send key depression positive confirmation TE 8 bytes MMI COM data Example serial protocol User s Manual version 1 1 material no 62010 23 KEBA 2005 Protocol KeTop T40 Bus Side Gateway SPS 24 The data transport between gateway and PLC depends on the bus system used Notice At bus systems with cyclic data transfer PROFIBUS DP InterBus the consistency of the data to be sent must be ensured on the PLC side That means the send bit in the MMI COM header must only be toggled when the complete subsequent data part is contained in the output buffer User s Manual version 1 1 material no 62010 KE BA KEBA 2005 Serial Gateway Coupling HT System Variables 6 HT System Variables System variables offer additional functions to the user If the system vari ables are sent with the corresponding index they can activate and de
10. 1 byte system variable No 19 13H SEND_PRESSED_KEY_CODE is set on the HT the HT automatically sends the logic key code defined during programming to the PLC each time User s Manual version 1 1 material no 62010 31 KEBA 2005 KEBA HT Functions KeTop T40 a key is pressed on the HT For sending the service 13H Send key code is used The variable must be set once only e g in the power up phase Index Data fields 14 Send b15 50 PLC gt HT 1 byte Variable No Value of var variable 14H 00H 01H When the 1 byte system variable No 31 1FH SEND_RELEASED_KEY_CODE is set on the HT the HT sends the key number each time the corresponding key is released on the HT The vari able must be set once only e g in the power up phase Index Data fields 14 Send 1 b15 50 PLC gt HT byte variable Variable No Value of var 00H 01H After receiving one of the two telegrams the HT sends each time a key is pressed or released the key number 1 32 to the PLC using the service 13H Send key code Index Data fields PLC HT 13 Tasten Tastencode code senden 13H Key code When the key status changes key is pressed or released this parame ter contains the logic key code according to the configured keypad layout 1st byte 2nd byte Logic key code 0 255 1 Key pressed 0 Key released 32 User s Manual version 1 1 material no 62010 2
11. 3 FT 1 Ypos 2 gt In this case the text User s Manual version 1 1 material no 62010 with number 3 is displayed in the 3rd display line and the text with number 4 in the 4th line 4803H 0100100000000011 Bi 15 14 13 12 11 10 0 43 KEBA 2005 KE BA HT Functions KeTop 40 b Manufacturer Specific Object If a text display on the handheld terminal is activated with the manufacturer specific service AOH the text number must be specified directly The line and the quantity of follow up texts are specified in a byte especially pro vided for that purpose Index Data fields 0 Display text Line Display Text number binary Quantity of PLC HT number attribute 44 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions Displaying a Text with Output Variables a Single Request of Output Variables When the 1 byte system variable No 18 12H FETCH TEXT VAR is set on the KeTop 40 the handheld terminal automatically requests this these variable s from the PLC single request before a text with output variable s is displayed Index Data fields 14 Send b15 50 gt 1 byte Variable No Value of var variable 14H 00H 01H If necessary this automatic request of a variable can be deactivated by re setting the system variable No 18 12H FETCH TEXT VAR After the text has been display
12. 40 Var Designation Data Access Default Description No type HT PLC value DISABLE_MENU Enabling 0 or disabling 1 the activation of the main menu activation by pressing 1st and 4th key DISABLE_EDITOR Enabling 0 or disabling 1 of variables input on HT reserved reserved reserved EVENT MENU Event message on menu access and exit gt EVENT CODE KBD LOCKED Enabling 0 or disabling 1 of the keypad on the HT NEXT FIELD AFTER ENTER Cursor appears in next input field after pressing Enter SEND RELEASED KEY CODE The HT sends the key code when a key is released AUTO KEY REPEAT Automatic repetition while key is pressed variables reserved FETCH TEXT VAR CYCLE TI UINT16 Cycle time in ms at which the HT ME requests all output variables displayed BEEP TIME UINT16 Buzzer activation duration of beep in ms APPLICATION SW VERSION UINT16 Version of HT application software Vx y High Byte gt x Low Byte gt y DEVICE TYPE UINT16 40 KeTop T40 reserved reserved z AUTO_KEY_DELAY_TIME UINT16 Repetition rate in ms 4 byte variables mw CODE pues pow Error message HT PLC mw H not used at present 2 EVENT PC MN ELEME Event message HT gt PLC 02H Bit 24 31 event number Bit 0 23 event related information Access R Read W Write Value ranges of data types used BOOL Boolean Number 0 FALSE 1 TRUE U
13. 5232 or RSxx2 for RS232 RS422 baud rate 9600 19200 38400 57600 115200 Baud After approx 1 second the display indicates Serial Gateway Vx X 1 Wait for gateway connection After successful establishment of the communication with the gateway box and after successful loading of the serial configuration data the interface parameters will be displayed again This message remains displayed until it is overwritten by a text activated by the PLC 10 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling Protocol 5 Protocol The coding of the telegrams is based on the MMI COM profile which was specified for operating and display panels used on the INTERBUS MMI COM MMI COM signifies Machine Interface Communication This profile definition standardizes the communication so that every station interprets the data in the same way Functions standardize some essential parame ters of an MMI device The communication model of MMI COM is based on the fact that data are sent to objects or by objects The objects are addressed with a number in dex In general the connection with the index specifies how the data are to be interpreted The bitmap 01000001 can for example stand for the binary coded number 65 for the BIT coded number 41 for the ASCII character A for two keys pressed simultaneously or for the request to turn on the buzzer Handshaking
14. 62010 KE B IA KEBA 2005 Serial Gateway Coupling HT Functions a Activating LED Groups on the HT For activating LED groups on the handheld terminal the service 21H Send LED group is used Before a LED group is activated the LED attribute must be defined and sent to the HT using the service 22H Set LED color Index Data fields 22 Set LED color PLC gt HT 22H Color and flashing attribute of the LED group are set now and therefore the LED group is ready for being activated Notice The parameter LED color is relevant for LED No 34 only because this LED is the only 2 color LED Data fields Number of LEDs n Index 21 Send LED group No x PLC gt HT LED group LED group x41 LED group x n 8 LED group x XX XX 21H XX XX Number of LEDs n LED group No x LED group x User s Manual version 1 1 material no 62010 This parameter contains the number of LEDs n 8 16 24 or 32 to be activated max 4 groups Specifies the first LED group No to be activated This parameter contains the status of the corresponding LED group The assignment of the particular LEDs to the bits of this parameter is shown in the drawing one page before 39 KEBA 2005 KE BA HT Functions KeTop T40 b Activating All LEDs on the HT For activating all LEDs on the handheld terminal the service 20H is used This service contains the LED statuses of al
15. Structure of Telegrams TT MIEIUE 21 Bus Side Gateway lt gt SPS iii 24 6 Hi System 2 lt cette ieee een eee te dete eee Asbo 25 7 AE E 27 Ver 27 B DS 35 42 53 PLC activates Signal Buzzer KeTop 40 2 00444 4 000000000000 55 Men ACCESS cadets ea Po eint 56 System OSC etti OO eite bera entiers ATE 56 Graphic 57 User s Manual version 1 1 material no 62010 5 KEBA 2005 KILEBIu Serial Gateway Coupling Introduction 1 Introduction This document is a supplement to the User s Manual KeTop T40 Handheld Terminal General Information and describes the serial gateway protocol For a detailed description of the programming the special functions and the key labelling of the HT please refer to the User s Manual KeTop T40 Handheld Terminal General Information User s Manual version 1 1 material no 62010 7 KEBA 2005 KE BA Connection KeTop 40 2 Connection The serial gateway box can be connected to the handheld terminal via the serial interface COM2 By means of DIP switches this interface must be configu
16. The header consists of the following 16 bits Header Handshake receiving Handshake sending Standard Reserved Bit No Byte 1 Byte 2 The first header byte contains the handshake information for both applica tions The second header byte contains the index and describes the contents of the subsequent data part The following description of the bits of byte 1 refers to both the PLC and the KeTop T40 Therefore device may be the PLC or the KeTop T40 depending on the direction User s Manual version 1 1 material no 62010 11 KEBA 2005 Protocol KeTop 40 On line bit 7 This bit indicates that the device is ready for receiving If the device is not on line no messages should be sent to the device Irrespective of that the device may send data The on line bit and the fault bit do not depend on each other Fault bit 6 This bit indicates a fault on the device If the device is on line a fault code can be requested Handshake receiving bit 5 This bit is set after a message is received With each message received the state of this bit changes When the first message is received the state changes from 0 to 1 When the next message is received the state changes from 1 to 0 again Handshake sending bit 4 This bit signalizes the sending of a new message With each message sent the status of this bit changes When the first message is sent the state changes from 0 to 1
17. groups n No x group x group x 1 group x n 8 cc color oet icone PLC gt HT 25 Display Display Text number text No attribute binary coded 18 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling Protocol Data fields Byte 3 Header Byte 1 Reserved 14 Send 1 byte variable 15 Send 2 byte variable b15 50 Variable No b15 50 Variable No 16 Send 50 4 byte 50 gt gt gt b15 Variable N variable 17 b15 Send floating Variable No point Send oytes Length arabe no Send bytes Length Variable No 2A Display b15 50 1 byte Variable No variable b15 50 Variable No b15 50 Variable No 2B Display b15 2 byte Variable No PLC gt HT PLC gt HT PLC gt HT PLC gt HT variable 2C Display 4 byte variable floating point 2E Display bytes 40 Request 1 byte variable 41 Request 2 byte variable b15 50 Variable No b15 50 Variable No 42 Request 50 4 50 gt gt gt PLC lt gt HT PLC lt gt HT PLC lt gt HT b15 variable 43 Request b15 bytes Text monitor 28 Send text characters 29 Position cursor PLC lt gt HT PLC lt gt HT PLC gt HT Number of characters Cursor X position PLC gt HT Cursor y position
18. s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions Example of output of graphical text on HT display The following text should be displayed on the HT with size at the specified position Exchange of telegrams KETOP T40 Meader Date ieles Header Data fields Bytes 1 2 T Bytes 3 8 5 1 2 T Bytes 3 8 x position of text y position of text len font size r font lo 1 10H OOH gt 1 Receive bit Send bit Index o Client Receive bit Send bit Server Confirmation ndex T e a CREE sau ssl L_text 2 To 72H Server Confirmation Index B E oe S x o 0 75 72H gan gt text 2 Server Confirmation ndex D gt ce cC Ben 42H L_text 2 Y 00 Client ST Confirmation Server To get a better overview only the receive bit and the send bit of the 1 byte of the control status word are shown User s Manual version 1 1 material no 62010 65 KEBA 2005 KILEBI
19. value contains the EVENT CODE The EVENT CODE consists of 4 bytes with the following coding 7 Event number Information depending on event L 1 1 L Bit 31 24 23 16 15 8 7 0 These bytes contain the variable number in case of event number 1 Type of variable 1 byte variable 2 byte variable 4 byte variable Floating point variable String variable O1 B D Event number 1 This event message is triggered when the PLC sends a user variable variable number gt 100 to the handheld terminal where the variable should be displayed although no output field for the variable is contained in the current text mask User s Manual version 1 1 material no 62010 47 KEBA 2005 KE HT Functions KeTop T40 Example Displaying a Text on the KeTop 40 The PLC should activate a text display on the handheld terminal The text contains a variable the handheld terminal requests from the PLC once The texts are stored in the text memory of the handheld terminal in num bered order Therefore the PLC must send a text number to the handheld terminal The handheld terminal reads the corresponding text from its text memory The text contains a variable of which the value is stored in the PLC Before displaying the text the handheld terminal requests the variable from the PLC which following that sends back a telegram including the value of the variable Now the handheld termin
20. 005 Serial Gateway Coupling HT Functions Example Sending Key Status of HT to the PLC The handheld terminal should send the entire key bitmap to the PLC each time a key is pressed and released This function is for example suitable for a jogging mode to be executed via the handheld terminal The pressing and releasing of the key is transmitted to the process data image memory of the PLC Header Bytes 1 2 T Data fields Bytes 3 8 Receive bit Send bit index value of variable Client Variable no ODH 13 gt SEND_KEYMAP Send 1 byte variable Confirmation Confirmation 01H 40 Data fields Bytes 1 2 T Receive bit Y Send bit Y Bytes 3 8 7 Confirmation 5 D D 3 Pressing a key Key status Y 01 000000 00000000 00000000 00000000 00000000 Send key status Index Client Releasing hen D 3 Y Key status Client Send key status To get a better overview only the receive bit and the send bit of the 1 byte of the control status word are shown Example Sending key status of the KeTop T40 to the PLC User s Manual version 1 1 material no 62010 33 KEBA 2005 KE BA HT Functions KeTop 40 After turning on the HT does NOT send the key bitmap automatical
21. ED No 34 23 1 000001 22 LED attribute LED attribute for flashing mode of green LED No 33 23H Send LED No KETOP T40 keyboard 1 01 flashing 33 0010 LED No 33 23H 1 10 110 0 1 021H LED attribute 2 OR T User s Manual version 1 1 material no 62010 37 KEBA 2005 HT Functions KeTop T40 Activating LED Groups and LEDs on the HT The LEDs can be activated group by group or all at once In both cases the LED attribute must be defined before LED Attribut The LED attribute differs to that of service 23H see previous chapter Only the flashing attribute and the LED color are defined The switching attribute cannot be set here as it is contained in the parameters LED groups No x service 21H and LED status group x service 20H Flashing attribute 00 not flashing 01 flashing 10 flashing 11 flashing LED colour 0001 red 0010 green The LED attribute defines the status of the selected LEDs and what status of the active LEDs should be deactivated again Notice The attribute flashing has the priority over not flashing When the LEDs are switched off the LED attribute must contain the actual LED status lighting or flashing The service 20H Send LED status behaves like the service 21H Send LED groups whereby the service 20H always sends all LED groups 38 User s Manual version 1 1 material no
22. INT8 integral number without sign 0 255 UINT16 integral number without sign 0 65535 UINT32 integral number without sign 0 4294967295 26 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions 7 HT Functions The request telegrams always have a length of 11 bytes 2 bytes header 6 bytes data fields 8 bytes MMI COM data and 3 bytes control characters The description of the request telegrams in the following chapters only re fers to the 8 byte MMI COM data Keypad The following drawing shows the physical grouping of the HT keys and the assignment of the particular keys to the bits of the parameter key group n At the KeTop 40 this grouping and assignment is identical for the LEDs of the keypad Physical Grouping Bitmap key group 1 1 2 3 4 Keygroup1 i a 7 6 514 31 2 1 0 Bit number 5 6 BIG 11 Bitmap key groups 2 3 4 BFR 7 RSR RE RIRE e Key group 2 4 9 10 11 12 13 14 15 16 7 6 5 4 3 2 10 Bitnumber E NAN AN BY RS eA 6 E 9 ST 4 25 26 27 28 29 30 31 32 Key groups of KeTop T40 keypad User s Manual version 1 1 material no 62010 27 KEBA 2005 KEBA HT Functions KeTop 40 Audible Keyc
23. KeTop T4O Handheld Terminal Serial Gateway Coupling User s Manual V 1 1 KEBA Automation by innovation Notes on This Manual At various points in this manual you will see notes and precautionary warn ings regarding possible hazards The meaning of the symbols used is ex plained below DANGER DANGER indicates imminently hazardous situation which if not avoided will result in death or serious injury e WARNING indicates a potentially hazardous situation which if not avoided could result in death or serious injury CAUTION indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury CAUTION used without the safety alert symbol indicates a potentially hazardous situation which if not avoided may result in property injury This symbol reminds you of the possible consequences of touching electrostatically sensitive components Note Notes on use of equipment and useful practical tips are identified by the Notice symbol Notices do not contain any information that draws atten tion to potentially dangerous or harmful functions KEBA 2005 Specifications are subject to change due to further technical developments Details presented may be subject to correction All rights reserved Document version 1 1 material no 62010 Filename 140 gateway en doc last saving on 9 12 2004 KEBA AG Postfac
24. When the next message is sent the state changes from 1 to 0 again Standard bit bit 3 This bit defines the assignment of the data field for the process data trans mission In this case the significance of the PD index is standardized If this bit is not set that means that the significance of the field is manufac turer specific Index bit bit 2 This bit defines the existence of an index field in the byte 2 of the header byte Therefore it is always set to 1 The following diagram shows an example of handshaking in the MMI COM protocol between PLC and KeTop 40 12 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling Protocol The PLC is the client and sends the 1st message The state of the send bit changes 0 gt 1 The PLC is the client and sends the 2nd message The state of the send bit changes 1 0 The PLC is the server and confirms the message by changing the state of its receive bit 0 gt 1 At the same time the PLC is the client again and sends a message The state of the send bit changes 0 gt 1 The PLC is the server and confirms the message by changing the state of its receive bit 1 gt 0 User s Manual version 1 1 material no 62010 Situation Sending Client Sending Client Sending Client Confirm Server 60 v 42 On line Fault Receiving Standard O Sending En o o
25. a bit The number of data bits is 8 and cannot be changed Stop bit The number of stop bits is 1 and cannot be changed Numbering of variables For the serial use of the HT the following restriction must be taken into ac count in the text editing mode User variables may be defined only from variable number 100 on The range from 1 to 99 is reserved for the system variables see also chapter HT System Variables EXCEPTION string variables numbering from 0 to 255 User s Manual version 1 1 material no 62010 9 KE BA KEBA 2005 HT Power Up Phase after Turning On KeTop 40 4 HT Power Up Phase after Turning On The handheld terminal carries out a self test after turning on For details on the test steps refer to the User s Manual KeTop T40 Handheld Terminal General Information The first part of the test is identical for all KeTop T40 couplings and therefore described in the User s Manual KeTop T40 Handheld Terminal General Information gt Then the configuration data are loaded The following message is displayed Serial Gateway zT In case of an error the handheld terminal remains in this condition After the configuration data have been loaded successfully the following mask appears on the display NVZ Serial Gateway Profile MMI COM Channel COMn mmmmm 8 1 x program version n number of interface port m type of interface
26. a fields user data is defined by the corresponding index 11 bytes request telegram 8 bytes MMI COM data 2 bytes Header 6 bytes data STX Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 ETX BCC Handshake Index ETX End transfer BCC Block check character Control character STX Start transfer The description of the request telegram in the chapters HT System Variab les and HT Functions only refers to the MMI COM data part without con trol characters User s Manual version 1 1 material no 62010 21 KEBA 2005 KILEBI Protocol KeTop 40 Confirmation Telegram After receipt of a message the BCC wil be checked and depending on the result a positive or negative acknowledgement will be sent positive confirmation BCC correct negative confirmation ACK BCC wrong NAK If the confirmation telegram is negative NAK the request telegram must be repeated Checksum Calculation The value of the BCC byte is calculated by an XOR logic of the telegram bytes from STX up to and including ETX Example The red LED No 34 on the handheld terminal should be turned on by using the service 23H Send LED No Index Data fields PLC gt HT 23 Send LED attribute LED No LED No 23H XX XX The service 23H Send LED No contains the following HEX values Header Data fields Bytes
27. activate certain functions on the handheld terminal e g automatic sending of keycodes The system variables range from 1 to 99 and must not be used by the user System variables distinguish 1 byte 2 byte and 4 byte variables Var Designation Data Access Default Description No type HT PLC value 1 byte variables reserved reserved reserved reserved reserved BEEP Buzzer activation permanent tone KEY CLICK PRESSED Keyclick when a key is pressed SEND PRESSED KEY NR The HT sends the key number when a key is pressed SEND RELEASED KEY NR The HT sends the key number when a key is released reserved reserved reserved SEND KBD MAP The HT sends the key bitmap when a key is pressed or released reserved reserved reserved SYSTEM RESET System reset at bitmap 55H FETCH TEXT VAR In case of a text call the HT requests once all output variables contained in the text SEND PRESSED KEY CODE The HT sends the key code when a key is pressed ORDER BOX Order box of master station 1 Request key bitmap 21 KEY CLICK RELEASED BOOL R W FALSE Keyclick when a key is released 15H 22 EVENT VAR NOT ON SCREE BOOL R W FALSE Event message indicating when a 16H N variable is written for which no output field is provided on the display gt EVENT CODE User s Manual version 1 1 material no 62010 25 KEBA 2005 KILEBIu HT System Variables KeTop
28. al can display the text with the value of the vari able PLC KETOP T40 text memory programming software Iy E r No 0 Format 10 QUT 4 Height CM Header Data fields Bytes 1 2 T Bytes 3 8 4 Textnumber binary coded Display attribute Receive bit Send bit Index Client lt 01H Display Text No Receive bit Sendabit Server Confirmation Index Variable No Request 1 byte variable Confirmation Value of variable Variable No 00H 64H 55H gt lt Send 1 byte Variable Y ndex Client Server Confirmation To get a better overview only the receive bit and the send bit of the 1 byte of the control status word are shown Example Displaying a text on the KeTop T40 48 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions Displaying a Text with Input Variable The handheld terminal has already received a telegram from the PLC for displaying a text The text to be displayed contains an input variable The HT user types in a value and presses ENTER Now the HT sendas the value of the variable to the PLC According to the data type of the variable the service Send x byte variable 14H 15H 16H or Send floating point 17H is used HT display Weight ENTER Is s
29. available for sending a key number to the PLC When the 1 byte system variable No 8 08H SEND PRESSED KEY is set on the HT the HT sends the key num ber to the PLC each time the corresponding key is pressed on the HT The variable must be set once only e g in the power up phase Index Data fields 14 Send 1 b15 b7 50 PLC gt HT byte variable Variable No Value of var 01H When the 1 byte system variable No 9 09H SEND RELEASED KEY is set on the HT the HT sends the key number each time the corresponding key is released on the HT The vari able must be set once only e g in the power up phase Index Data fields 14 Send 1 615 50 b7 50 PLC gt HT byte variable Variable No Value of var 14H 00H 09H 01H After receiving one of the two telegrams the HT sends each time a key is pressed or released the key number 1 32 to the PLC using the service 12H Send key number Index Data fields 12 Send key Length 1 Key number PLC HT number 12H 01H XX Key number This parameter contains the corresponding physical key number see drawing in chapter Keypad when the status of a key changes key is pressed or released The key number ranges from 1 to 32 The highest order bit contains the information indicating whether the key has been pressed or released 1 Byte a Key number 1 32 1 pressed 0 released Sending Key Code to the PLC When the
30. cter This parameter defines the size of the text characters on the HT display The following settings are possible 0 normal 1 double height 2 double width 3 double height double width font attr This parameter contains the font attribute and specifies if the transmitted text should be displayed normally in inverse characters normally flashing or inverse flashing hormal inverse normally flashing inverse flashing Follow up telegram containing the text to be transmitted D Index Data fields B6 Text PLC gt HT Text 2 characters B6H XX Text characters This parameter contains one or several characters displayed from the set cursor position on cursor position set by means of telegram Text 1 Font sizes font_size possible on the HT display User s Manual version 1 1 material no 62010 63 KEBA 2005 KE HT Functions 6 pixels 8 pixels font size 0 Character 5x7 pixels 6 pixels Pa 16 pixels font size 1 Character 5x14 pixels 64 KeTop T40 12 pixels 8 pixels font size 2 Character 10x7 pixels 12 pixels 16 pixels lt font_size 3 Character 10x14 pixels User
31. e 1 byte of the control status word are shown Example Displaying a Text with Input Variable 50 KE B IA User s Manual version 1 1 material no 62010 KEBA 2005 Serial Gateway Coupling HT Functions Displaying a Text with String Variable Input or Output Character strings entered or to be displayed in a text are transmitted with the MMI COM telegrams Send bytes and Display bytes E g service 18H Send bytes Index Data fields 18 PLC lt gt HT Send bytes Length Variable No Byte 1 Byte 2 18H XX XX Length This parameter defines the length in bytes of the string variable to be transmitted If the length of the string variable exceeds the length of the available data field the variable will be transmitted in blocks The transmis sion is completed when the length of the value entered is smaller than or equal to the length of the data field String variables can be numbered from 0 to 255 Notice The transmission of a string variable may only start when the transmission of the previous string variable is completed gt see below PLC HT PLC HT Var A 1st part Var A 1nd part gt gt ACK Var B 1st part Var A 2nd part gt ACK Var B 1st part gt ar 2nd part Var B 2nd part gt 4 xm NOT PERMITTED CORRECT Correct transmission of string variables User s Manual version 1 1 material no 62010 51 KEBA 2005
32. e system variable 2 EVENT CODE upon access to exit from the menu Structure of event variable Information depending on event Bit 31 24 23 16 15 8 7 0 Event number 2 000000000000000000000001 gt Access to menu 000000000000000000000000 gt Exit from menu System Reset Index When the value 55H is written to the system variable No 17 11H a reset will be triggered on the KeTop T40 This reset corresponds to a turning on off of the device All values set by the PLC get lost and must be set anew Data fields 14 Send b15 PLC gt HT 1 byte variable 14H Variable No Value of var 00H 55H 56 User s Manual version 1 1 material no 62010 KE BA KEBA 2005 Serial Gateway Coupling HT Functions Graphic Functions The graphic functions are activated from the control The functions enable displaying a text and drawing graphical elements line circle rectangle and ellipsis at any position of the display pixel oriented x position 012345 y position Letter in standard size at x y position 0 0 of HT display All graphic functions are transmitted with manufacturer specific objects Graphical Elements The elements circle rectangle and ellipse can be represented as filled ar eas To delete a graphical element draw the same element of the same size at the same position and in inverse color
33. ed Display attribute For displaying the text this parameter must be set to 01H Text characters This parameter contains one or more characters that are displayed from the current cursor position on 54 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions PLC activates Signal Buzzer on KeTop 40 PLC gt HT PLC gt HT PLC gt HT When the 1 byte system variable No 6 06H BEEP is set on the KeTop T40 the PLC activates the signal buzzer on the handheld terminal Index Data fields 14 Send b15 50 1 byte Variable No Value of var variable 14H The buzzer remains active until it is turned off by resetting the system vari able Index Data fields 14 Send b15 50 1 byte Variable No Value of var variable 14H 00H 00H The buzzer on the handheld terminal can also be activated by setting the 2 byte system variable No 03H TIME In this case the duration of the beep must be preset in milliseconds PD Index Data fields 15 Send b15 2 byte Variable No Value of variable variable 15H Here the value of the variable contains the duration of the beep in millisec onds User s Manual version 1 1 material no 62010 55 KEBA 2005 KE BA HT Functions KeTop 40 Menu Access Exit When the 1 byte system variable 28 EVENT MENU is set the HT sends an event message to the PLC via the 4 byt
34. ed the output variables contained in the text are requested once Index Data fields 40 Request b15 PLC HT 1 byte Variable No variable 40H Following that the PLC must continuously update the value of the variable The telegram required for updating the 1 byte system variable is structured as follows Index Data fields 14 Send b15 50 gt 1 byte Variable No Value of var variable 14H User s Manual version 1 1 material no 62010 45 KEBA 2005 KEBI HT Functions KeTop 40 PLC HT PLC HT PLC gt HT 46 b Cyclic Request of Output Variables When the 2 byte system variable No 2 02H FETCH TEXT VAR CYCLE TIME is set on the KeTop T40 the handheld terminal automati cally requests this variable cyclically from the PLC while a text with output variable s is displayed For setting and resetting this system variable the service 15H Send 2 byte variable is used If the service 15H contains a cycle time 0 ms as value of the variable the system variable will be set For resetting the system variable a cycle time of 0 ms is transmitted Notice Very small cycle times increase the workload of the bus and also affect the performance of the HT Index Data fields 15 Send b15 2 byte Variable No Value of variable variable 15H 00H According to the data type of the variable the request is performed with one of the following services 40H Reques
35. ent automatically with service 14D 15D 16D or 17D according to data type PLC If for example the data type of the input variable is UINT8 the service 14H Send 1 byte variable will send the variable to the PLC Index Data fields 14 Send b15 50 lt 1 byte Variable No Value of var variable 14H User s Manual version 1 1 material no 62010 49 KEBA 2005 KEBI HT Functions KeTop 40 Example Displaying a Text with Input Variable The PLC should activate a text on the display of the handheld terminal The text to be displayed contains an input variable The user types in a value and presses ENTER to confirm the entry Following that the HT sends the value of the variable to the PLC KETOP T40 text memory programming software No Text 0 Var No 100 IE 1 Data type UINT8 3 PETRA Format DEC 2 Height 55cm 2 l O type OUT 4 Height cm 1999 Header Data fields Bytes 1 2 T Bytes 3 8 2 Header Data fields 5 g 5 Textnumber binary coded Bytes 1 2 T BRR SS 5 D x g 5 9 Display attribute ro Client O 1 Display Text No Confirmation Receive bit Server Send bit HT Display Weight 225kg ENTER 8 Variable No re ons esu emn Send 1 byte variable Y Value of variable lt Client Confirmation To get a better overview only the receive bit and the send bit of th
36. group x 2 LED group 1 29 40 SS 46 S LED group no 1 f Ni See 3 group 2 Number of LEDs n NI Send LED group Io dE 24 eee X groups Y Confirmation To get a better overview only the receive bit and the send bit of the 1 byte of the control status word are shown User s Manual version 1 1 material no 62010 41 KEBA 2005 KEBI HT Functions KeTop T40 Texts Texts are created on a PC using the programming software and loaded into the handheld terminal The PLC can call texts line by line by sending text and line number to the HT where these numbers will be displayed Furthermore the handheld terminal offers the possibility to display and alter variables directly on the device In the programming software input and output fields for the variables can be defined in the text lines The KeTop 40 provides 192kByte memory space for variables and texts Memory requirements text 24 bytes variable 6 bytes e g when 5000 texts are created memory space for about 12500 vari ables is left Text Variables The numbers of text variables range from 100 to 65535 for system variables the range from 1 to 99 is reserved The following variables are distinguished e Input variable HT gt PLC e Output variable PLC gt HT e Input output variable PLC lt gt HT Displaying texts on the KeTop T40 a Standard object For displaying a text on the handheld terminal t
37. h 111 Gewerbepark Urfahr A 4041 Linz Tel 43 732 70 90 0 Fax 43 732 73 09 10 E Mail keba keba com www keba com KEBA GmbH Ulmer StraBe 123 D 73037 G ppingen Tel 49 7161 97 41 0 Fax 4449 7161 97 41 40 KEBA Corp 100 West Big Beaver Road Troy MI 48084 Tel 1 248 526 0561 Fax 1 248 526 0562 E Mail schr us keba com Handheld Terminal Contents History Modification Date Modified Description Author from to pages V1 0 8 2002 V1 0 V1 1 all New Layout sam User s Manual version 1 1 material no 62010 3 KEBA 2005 KILEBI Contents KeTop 40 4 User s Manual version 1 1 material no 62010 O 2005 Handheld Terminal Contents Contents 1 2920045 UICE 7 2 stade at 8 3 Programming the Handheld 44422 222122 9 Programming SOMW ANC 9 PC 9 4 HTPower Up Phase after Turning On 10 5 11 mr 11 Overview of Functions 18 Serial Side KeTop gt Gateway iii 21
38. he service 25H is used This telegram contains the text number under which the text to be displayed is stored in the text memory of the HT Index Data fields PLC gt HT 25 Display Display Text number text No attribute binary coded 25H 01H XX XX After receiving this telegram the handheld teminal displays the correspond ing text 42 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions Display attribute Text number binary coded Text No FT Ypos Example 1 For displaying a text this parameter must be set to 01H Besides the text number this parameter specifies the line in which the text should be displayed and the text length even tually several lines The binary coding is defined as follows Data field Data field Byte 5 Byte 6 Bit 15 4 18 ET 1 11 Bits for text No 2 Bits for FT 3 Bits for Ypos Actual text number The maximum value depends on the number of defined variables because they are stored in the same memory space Number of follow up texts text numbers in ascending order Selection of display line in which the text should be displayed 0 gt 1st line 1 gt 2nd line etc Text number 0064H Text No 100 FT 0 Ypos 0 The text with number 100 is displayed in the 1st display line Example 2 0064H 10 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 Text number 4803H gt Text No
39. l LED groups Before all LEDs can be activated the LED attribute must be defined and sent to the HT us ing the service 22H Set LED color Index Data fields 22 Set LED LED attribute PLC gt HT color 22H XX The color and the flashing attribute of all LEDs are set now and therefore the LEDs are ready for being activated Index Data fields 20 Send LED status LED status LED status LED status LED status PLC gt HT LED status group 1 group 2 group 3 group 4 group 5 20H XX XX XX XX XX 40 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions Example Activating LED Groups Using the Service 21H a The first LEDs of the groups 1 to should light KETOP T40 Data fields Header Data fields Bytes 1 2 ih Bytes 3 8 7 1 2 T Bytes 3 8 i Receive bit Index Send bit 2 Y Client lt 00000001 LED attribute Set LED colour 1 2 4 1 Confirmation K 2 LED 3 LED vi 2 19 BN 16 BN LED group 1 ecc group 2 LED group no 1 NIA 2 2 Number of LEDs EN 24 SS Send LED group d Y 2 s Confirmation b All LEDs lit should be turned off Client gt LED attribute Set LED colour Confirmation x group 1 Client LED group x 3 2 X LED
40. lick When the 1 byte system variable 7 07H KEY CLICK PRESSED is set the handheld terminal confirms the pressing of a key with an audible signal When the system variable No 21 15H CLICK RELEASED is set the HT confirms the releasing of a key with an audible signal The telegram required for setting the system variable is structured as fol lows for KEY CLICK PRESSED Index Data fields 14 Send b15 50 PLC gt HT 1 byte Variable No Value of var variable 14H 00H 01H for KEY_CLICK_RELEASED Index Data fields 14 Send b15 50 PLC gt HT 1 byte Variable No Value of var variable 14H 00H 01H For deactivating the keyclick the corresponding system variable must be reset The telegram is sent once again but this time with the variable value OOH Variable No This parameter identifies the variable Value of variable This parameter contains the value of the variable 28 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions Sending Key Status to the PLC When the 1 byte system variable No 14 SEND KBD is set on the HT the key bitmap is automatically sent to the PLC when a key is pressed or released on the HT The telegram required for setting the system variable is structured as fol lows Index Data fields 14 Send b15 50 gt 1 byte Variable No Value of var variable 14H 00H 01H
41. ling HT Functions PLC gt HT Rectangle This command enables representing a rectangle on the HT display accord ing to the specified x y coordinates Data fields Index B2 Rectangle B2H PLC gt HT 0 0 KUy1 fill OH graphic not filled 1H graphic filled Circle This command enables representing a circle on the HT display at the speci fied x y position with the radius r Data fields Index B3 Circle User s Manual version 1 1 material no 62010 B3H x y fill OH 1H graphic not filled graphic filled 59 KEBA 2005 KE BA HT Functions KeTop T40 PLC gt HT PLC gt HT 60 Ellipsis This command enables representing an ellipse on the HT display at the specified x y position with the radiuses rx and ry Data fields Index B4 Ellipsis fill 0H graphic not filled 1H graphic filled Clear window This command enables clearing a rectangular area on the HT display ac cording to the specified x y coordinates Index Data fields B8 Clear Window B8H xt y1 This command corresponds to the drawing of a filled rectangle with the set background color User s Manual version 1 1 material no 62010 KE BA KEBA 2005 Serial Gateway Coupling HT Functions Set colors This command enables setting the foreground and background color at present only black or white for all fol
42. lowing graphical elements and graphi cal texts The color remains active until another color is set Index Data fields B9 fg bg PLC gt HT Set color B9H XX XX fg foreground OH white FFH black bg background OH white FFH black Bitmaps This command enables representing the content of a Windows bitmap file stored in the bitmap memory of the handheld terminal on the HT display at the specified x y position The bitmap size is limited by the display size of the KeTop T40 128x64 pixels Index Data fields BB SPS gt HT Display of BMP BBH The numbers of the bitmaps can be defined using the programming soft ware User s Manual version 1 1 material no 62010 61 KEBA 2005 HT Functions KeTop T40 Graphical Text These texts must be prepared in the PLC and can then be sent to the handheld terminal with the indices B5 and B6 The text can be positioned freely on the display The text characters may be represented in double height or double width As standard the charac ters are displayed in the format 5 x 7 pixels incl space 6 x 8 pixels So characters with a double height have a format of 5 x 14 pixels incl space 6 X 16 pixels and characters with a double width 10 x 7 pixels incl space 12 8 pixels Displaying a character means that the area for the character is cleared and then the character is written into the empty field An existing graphic or bit map rep
43. ly when the key status changes For activating this function the PLC must set the 1 byte control variable with number 13 in the KeTop T40 to 1 TRUE The handheld terminal confirms the receipt of the telegram by sending back a telegram to the PLC From that time on the function SEND KEY is activated When a key is pressed now the handheld terminal sends the current key bitmap to the PLC which acknowledges the receipt When the key is re leased the handheld terminal sends the key bitmap again and the PLC acknowledges the receipt again 34 User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions LEDs LED group 5 LED group 1 LED group 2 LED group 3 LED group 4 The following drawing shows the physical grouping of the LEDs on the KeTop T40 keypad and the assignment of the particular LEDs to the bits of the pa rameters LED group n Physical Grouping 7 6 5 4 0 433 134 e N 42 N 7 en amp 716514 3 0 99 40 din dB dB n 46 Y OJA AI 7 6 5 4 0 47 48 49 22 23 24 DS D De es i a LED groups of KeTop T40 Bitmap LED group 5 Bit number Bitmap LED group 1 Bit number Bitmap LED group 2 3 4 Bit number Notice
44. ng HT Functions Text Monitor The text monitor functions comprise two services First the cursor must be positioned correctly on the display using the service 29H Then the service 28H enables sending text characters displayed from this cursor position on to the HT Notice A text mask with input or output fields will be overwritten when a text moni tor function is executed The cursor positions stored in the handheld termi nal for the input and output fields are preserved gt Risk of inconsistent display Positioning the Cursor For positioning the cursor on the HT display the PLC uses the service 29H This service contains the x and y position of the cursor Index Data fields PLC gt HT 29 Position Cursor Cursor cursor x position y position 29H XX XX Cursor x position These parameters contain the x and y position of Cursor y position the text cursor X 012345 0 1 2 User s Manual version 1 1 material no 62010 53 KEBA 2005 KILEBIu HT Functions KeTop 40 Displaying Text Characters from Current Cursor Position When the cursor has been positioned on the display the service 28H Send text characters enables sending a certain number of characters Index Data fields 28 Number of Display Text PLC gt HT Send text characters attribute characters characters 28H 01H Number of characters This parameter contains the number of characters to be transmitt
45. red as COM2 RS 422 A See also User s Manual KeTop T40 Handheld Terminal General Informa tion chapter Connection KETOP T40 RS 422 A KETOP CB320 for KETOP CB233 for KETOP CB234 for KETOP CB235 for KETOP CB236 for MPI lt PROFIBUS DP 4 InterBus ml lt DeviceNet CAN oder CANopen PLC Connection of HT via gateway box 8 User s Manual version 1 1 material no 62010 KEBA 2005 Serial Gateway Coupling Programming the Handheld Terminal 3 Programming the Handheld Terminal Programming Software For setting the device configuration and creating texts we deliver a pro gramming software which is executable under Windows The programming of the handheld terminal is described in detail e g func tions for editing the keypad assignment and for loading the program in the User s Manual KeTop T40 Handheld Terminal General Information and applies in general also to the serial gateway coupling Therefore the following chapter only describes the specific details of the gateway coupling Configuration Selection of protocol After selection of the protocol Seriell Gateway MMI COM the following parameters must be set Interface Selection of required interface Baudrate Selection of baud rate required for transmission 9600 19200 38400 57600 115200 Baud Parity The setting of priority is NO and cannot be changed Dat
46. resentation will be deleted at this position Notice A Programmed texts stored in the HT can only be displayed in lines or col umns These texts cannot be displayed at any pixel position or with a larger size B For graphical texts that are directly sent from the PLC to the handheld terminal display no editor function is available That means the HT will not correctly interpret symbols for the input and output of variables 62 User s Manual version 1 1 material no 62010 KEBAN KEBA 2005 Serial Gateway Coupling HT Functions Text 1 Text 2 This command enables representing a maximum of 40 text characters at the specified x y position of the HT display provided the characters are not displayed with a double width and begin at the pixel column 0 The text is displayed up to the end of the line no line folding and no con tinuation in the next line For displaying the text at least two or more telegrams are required accord ing to the length of the text The first telegram text 1 contains the position of the text on the display the length of the text the font size and the font at tribute The actual text is contained in one or several follow up telegrams text 2 Index Data fields B5 x y len font size font attr PLC gt HT Text 1 B5H XX XX XX XX XX Position of text HT display len length specifies number of text characters to be transmitted font size size of chara
47. t 1 byte variable 41H Re quest 2 byte variable or 42H Request 4 byte variable If the text to be displayed contains an output variable of data type UINT16 for example the request telegram sent to the PLC will be structured as fol lows Index Data fields 41 Request b15 2 byte Variable No variable 41H Following that the PLC sends the value of the variable to the handheld terminal using the service 15H Send 2 byte variable Index Data fields 15 Send b15 2 byte Variable No Value of variable variable 15H When the 1 byte system variable No 22 16H EVENT VAR NOT ON SCREEN is set on the KeTop T40 the handheld terminal will be able to send an event message EVENT CODE to the PLC User s Manual version 1 1 material no 62010 2005 Serial Gateway Coupling HT Functions The event message will be sent when a variable has been sent from the PLC to the HT but this variable cannot be displayed any more since it has already been overwritten by another text Index Data fields 14 Send b15 50 gt 1 byte Variable No Value of var variable 14H 00H 01H The automatic sending of an event message can be deactivated by reset ting the system variable The telegram for event messages is structured as follows Index Data fields 16 Send b15 PLC HT 4 byte Variable No Value of variable variable 16H Value of variable In this case this

Download Pdf Manuals

image

Related Search

Related Contents

UHF-R Plus User Guide  Manual - Instrumentation Central  FAQ for the M-5  Samsung PS42B430P2 מדריך למשתמש  Tripp Lite 12U User's Manual  omRon 型号H5CN石英定日寸器 指尋手冊 感謝悠姻妥OMRON商品  matière conception à  

Copyright © All rights reserved.
Failed to retrieve file