13.13.20 Fc 13: Bhgdisp Display Control For Handheld Unit - Siemens SINUMERIK 828D Function Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
END_VAR
BEGIN
L Chan;
+ 21;
T ChanDB;
TO DB[ChanDB];
// Auxiliary-function change signals are now scanned, etc.
BE;
END_FUNCTION

13.13.20 FC 13: BHGDisp Display control for handheld unit

Function
This block carries out the display control for the handheld unit (HHU or HT2). The information to be output on the
display is stored as 32 characters in string data ChrArray (these are 64 characters when using an HT2). A fixed
text assignment of 32 or 64 characters is, therefore, required for this string when the data block is created.
16 characters are sent to BHG/HT2 for each job, which lasts for several OB 1-cycle. The assignment of the
characters in ChrArray to each line is unique. For line 1 the characters 1 to 16 and for the line 2 the characters 17
to 32 of the string data ChrArray are transferred. In addition, for HT2 the line 3 with the characters 33 to 48 and
line 4 made of characters 49 to 64 are shown.
The block checks, whether the minimum length of the ChrArray is available for operating the BHG or the HT2. If
less characters are present in the string data than are to be displayed, then the line is filled with blanks.
By setting parameter Row to 0, it is possible to suppress the display (e.g. if several variables in one or several
PLC cycles need to be entered in the string without any display output). If several lines are to be updated
"simultaneously" (transfer of the characters to the lines lasts for several OB 1 cycles) (Parameter Row > 1), then
the lines are updated one by one each with 16 characters per line.
Variable portions within the string can be inserted by means of the numerical converter functionality (optional).
For the numeric converter the parameter "Convert" must be set to TRUE. The variable to be displayed is
referenced via the pointer Addr. Parameter "DataType" contains the format description of this parameter (see
parameter table). The number of bytes of the variable is linked to the format description. The address justified to
the right within the string is specified by parameter "StringAddr". The number of written characters is shown in the
parameter table.
Signals
Byte 1 is supplied by the output signals of the HHU and the character specifications are supplied by the block.
These may not be written by the PLC user program.
1020
//Channel index no., (0,1,2,..)
//Channel DB offset
//Save channel DB no.
//Channel DB is opened indirectly
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Basic Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents