, from INT to BYTE or from DINT to WORD ). :
THEN iOutput := TO_INT(TO_DINT [...] Scale_Output_Int [...] _function_block'} FUNCTION_BLOCK Scale_Output_Int
99; iVar := INT [...] DINT#99; Example 16 [...] STRUCT iLocal : INT
, BYTE, WORD/INT, DWORD/DINT , etc