15 TYPE CONVERSION FUNCTIONS
15.57 Unnecessary of Type Conversion
763
15
15.57 Unnecessary of Type Conversion
GET_BOOL_ADDR, GET_INT_ADDR, GET_WORD_ADDR
These functions output the input variable as the output variable type.
â– Descriptions, types, and data types
â– Operation processing
• These functions output the input data variable as the output variable type according to the following table.
â– Operation result
The operation processing is executed. The operation output value is output from (d).
There is no operation error.
Ladder diagram Structured text
d:=GET_BOOL_ADDR(s)
d:=GET_INT_ADDR(s);
d:=GET_WORD_ADDR(s);
Argument Description Type Data type
s Input Input variable ANY
d Output Output variable BOOL/INT/WORD
General function Input data type Output data type
GET_BOOL_ADDR BOOL
ARRAY OF BOOL
BOOL
GET_INT_ADDR INT
DINT
WORD
REAL
TIME
STRING
ARRAY OF INT
ARRAY OF DINT
ARRAY OF WORD
ARRAY OF DWORD
ARRAY OF REAL
ARRAY OF TIME
INT
GET_WORD_ADDR WORD