4 STANDARD FUNCTIONS/FUNCTION BLOCKS
4.1 Standard Functions
151
4
■Converting STRING to INT/DINT
■Converting STRING to BCD
■Converting STRING to REAL
■Converting STRING to TIME
■Converting bit array to INT/DINT
■Converting INT/DINT to bit array
■Copying the bit array
■Reading/writing/copying the specified bit of the word label
Function symbol Processing details Reference
STRING_TO_INT Converts a value from STRING data type to INT data type. Page 1870
STRING_TO_INT(_E)
STRING_TO_INT_E
STRING_TO_DINT Converts a value from STRING data type to DINT data type. Page 1872
STRING_TO_DINT(_E
)
STRING_TO_DINT_E
Function symbol Processing details Reference
STRING_TO_BCD Converts a value from STRING data type to BCD data type. Page 1874
STRING_TO_BCD(_E)
STRING_TO_BCD_E
Function symbol Processing details Reference
STRING_TO_REAL Converts a value from STRING data type to REAL data type. Page 1876
STRING_TO_REAL(_
E)
STRING_TO_REAL_E
Function symbol Processing details Reference
STRING_TO_TIME Converts a value from STRING data type to TIME data type. Page 1879
STRING_TO_TIME(_E
)
STRING_TO_TIME_E
Function symbol Processing details Reference
BITARR_TO_INT Converts the specified number of bits in a bit array to an INT data type value. Page 1881
BITARR_TO_INT(_E)
BITARR_TO_INT_E
BITARR_TO_DINT Converts the specified number of bits in a bit array to a DINT data type value. Page 1882
BITARR_TO_DINT(_E)
BITARR_TO_DINT_E
Function symbol Processing details Reference
INT_TO_BITARR Outputs the lower n bits of the INT data type value to the bit array. Page 1883
INT_TO_BITARR(_E)
INT_TO_BITARR_E
DINT_TO_BITARR Outputs the lower n bits of the DINT data type value to the bit array. Page 1884
DINT_TO_BITARR(_E)
DINT_TO_BITARR_E
Function symbol Processing details Reference
CPY_BITARR Copies the bit array by the specified number of bits. Page 1885
CPY_BITARR(_E)
CPY_BITARR_E
Function symbol Processing details Reference
GET_BIT_OF_INT Reads a value from the specified bit of a word label. Page 1886
GET_BIT_OF_INT(_E)
GET_BIT_OF_INT_E
SET_BIT_OF_INT Writes a value to the specified bit of a word label. Page 1888
SET_BIT_OF_INT(_E)
SET_BIT_OF_INT_E
CPY_BIT_OF_INT Copies the specified bit of the word label to the specified bit of another word label. Page 1890
CPY_BIT_OF_INT(_E)
CPY_BIT_OF_INT_E