Siemens SINUMERIK 840Di Function Manual page 1105

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

Additional parameters
The pointer parameters for the input and output data of the handheld unit must be
parameterized in the start OB 100 in FB 1, DB 7. Parameter BHGIn corresponds to the input
data of the PLC from the handheld unit (data received by PLC). Parameter BHGOut
corresponds to the output data of the PLC to the handheld unit (data transmitted by PLC).
These two pointers must be set to the starting point of the relevant data area, which is also
parameterized in SDB 210 with an MPI link.
Note
If the numerical converter is used to display information, then it is better to avoid performing
a conversion in every PLC cycle for the sake of reducing the PLC cycle time. In this case, it
is advisable to use the input signal from the HHU to the PLC "Acknowledgment digital
display" (DB m+5.7) for parameter "Convert". In this way it can be ensured that the most
recent numerical information is displayed.
Declaration of the function
STL representation
DATA_BLOCK "strdat"
BEGIN
END_DATA_BLOCK
FUNCTION FC 13: VOID
VAR INPUT
END VAR
VAR OUTPUT
END VAR
Power Line Basic PLC Program (P3)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
STRUCT
disp:
STRING [32]:= 'line 1 line
2 ';
END_STRUCT;
Row :
Byte;
ChrArray :
STRING ;
Convert :
BOOL ;
Addr:
POINTER;
DataType :
Byte;
StringAddr :
INT ;
Digits :
BYTE ;
Error :
BOOL ;
Detailed description
2.12 Block descriptions
//The data block number
//is defined in the symbol file
//32 characters are defined
//Display line (see table)
//Transfer at least string[32]
//Activate numerical conversion
//Points to the variable being
converted
//Data type of the variables
//Right-justified string address
(1 to 32)
//Number of decimal places (1 to
3)
//Conversion or string error
2-193

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents