Detailed description
2.12 Block descriptions
Basic logic functions: PLC Basic program powerline (P3 pl)
204 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Declaration of the function
STL representation
DATA_BLOCK "strdat"
//The data block number is defined in the symbol file
STRUCT
disp: STRING [32]:= 'line 1 line 2 '; //32 characters are defined
END_STRUCT;
BEGIN
END_DATA_BLOCK
FUNCTION FC 13: VOID
VAR INPUT
Row : BYTE ; //Display line (see table)
ChrArray : STRING ; //Transfer at least string[32]
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 to 32)
Digits : BYTE ; //Number of decimal places (1 to 3)
END VAR
VAR OUTPUT
Error : BOOL ; //Conversion or string error
END VAR