P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
1022 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Description of formal parameters
The table below lists all formal parameters of the BHGDisp function:
ChrArray : STRING ; //Transfer at least string[32/64]
Convert : BOOL; //Activate numerical conversion
Addr: POINTER; //Points to the variable being converted
DataType : BYTE ; //Data type of the variables
StringAddr : INT; //right-justified string address (1...32/64)
Digits : BYTE ; //Number of decimal places (1...3)
END VAR
VAR OUTPUT
Error : BOOL; //Conversion or string error
END VAR
Signal
Typ
e
Type Value range Remark
Row I BYTE 0 ... B#16#F Display-line
"binary" evaluation:
0: no display output
1: Line 1
2: Line 2
3: Line 1 and line 2 to be
changed
4: Line 3
5: Line 1 and line 3 to be
changed
8: Line 4
B#16#F automatic change of
all 4 lines
ChrArray I STRING >= string[32]
[DBName].[VarName]
This string contains the
entire display content
For HT2 the string with 64
characters must be created.
Convert I BOOL Activation of numerical
conversion
Addr I Pointer Points to the variable
to be converted