Detailed description
2.12 Block descriptions
Basic logic functions: PLC Basic program powerline (P3 pl)
206 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Ranges of values
Value ranges of data types
Data type Representable numerical range
BOOL 0, 1
BYTE 0 to 255
WORD 0 to 65535
INT - 32768 to + 32767
DWORD 0 to 9999999
DINT - 9999999 to + 9999999
REAL (Digits := 1) - 999999.9 to + 999999.9
REAL (Digits := 2) - 99999.99 to + 99999.99
REAL (Digits := 3) - 9999.999 to + 9999.999
REAL (Digits := 4) - 999.9999 to + 999.9999
Call example
CALL FC 13 (
Row := MB 26,
ChrArray := "strdat".disp, //DB with name strdat in the symbol table,
//data element disp is declared as String[32]
//and completely assigned with sign
Convert := M 90.1,
Addr := P#M 20.0, //Number to be converted
DataType := MB 28, //Data type of the variables
StringAddr := MW 30,
Digits := B#16#3, //3 decimal places
Error := M 90.2);