msousa@267: msousa@267: {disable code generation} msousa@267: msousa@267: msousa@267: msousa@280: FUNCTION BOOL_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_DINT : DINT msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_INT : INT msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_LINT : LINT msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_REAL : REAL msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_SINT : SINT msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_UINT : UINT msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_USINT : USINT msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_WORD : WORD msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_DINT : DINT msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_INT : INT msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_LINT : LINT msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_REAL : REAL msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_SINT : SINT msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_UINT : UINT msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_USINT : USINT msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_WORD : WORD msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_INT : INT msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_LINT : LINT msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_REAL : REAL msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_SINT : SINT msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_UINT : UINT msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_USINT : USINT msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_WORD : WORD msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_DINT : DINT msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_INT : INT msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_LINT : LINT msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_REAL : REAL msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_SINT : SINT msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_UINT : UINT msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_USINT : USINT msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_WORD : WORD msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_DINT : DINT msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_LINT : LINT msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_REAL : REAL msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_SINT : SINT msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_UINT : UINT msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_USINT : USINT msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_WORD : WORD msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_DINT : DINT msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_INT : INT msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_REAL : REAL msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_SINT : SINT msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_UINT : UINT msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_USINT : USINT msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_WORD : WORD msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_DINT : DINT msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_INT : INT msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_LINT : LINT msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_REAL : REAL msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_SINT : SINT msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_UINT : UINT msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_USINT : USINT msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_WORD : WORD msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_DINT : DINT msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_INT : INT msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_LINT : LINT msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_REAL : REAL msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_SINT : SINT msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_UINT : UINT msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_USINT : USINT msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_WORD : WORD msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_DINT : DINT msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_INT : INT msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_LINT : LINT msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@267: msousa@267: FUNCTION REAL_TO_SINT : SINT msousa@267: VAR_INPUT IN: REAL; END_VAR msousa@267: VAR_OUTPUT OUT: SINT; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@280: FUNCTION REAL_TO_UDINT : UDINT msousa@267: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_UINT : UINT msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_USINT : USINT msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_WORD : WORD msousa@280: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_DINT : DINT msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_INT : INT msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_LINT : LINT msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@267: VAR_OUTPUT OUT: LINT; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@280: FUNCTION SINT_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_REAL : REAL msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_UINT : UINT msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_USINT : USINT msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_WORD : WORD msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_DINT : DINT msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_INT : INT msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_LINT : LINT msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_REAL : REAL msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_SINT : SINT msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_UINT : UINT msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_USINT : USINT msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_WORD : WORD msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_DINT : DINT msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_INT : INT msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_LINT : LINT msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_REAL : REAL msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_SINT : SINT msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_USINT : USINT msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_WORD : WORD msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_DINT : DINT msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_INT : INT msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_LINT : LINT msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_REAL : REAL msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_SINT : SINT msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_UINT : UINT msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_USINT : USINT msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_WORD : WORD msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_DINT : DINT msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_INT : INT msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_LINT : LINT msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_REAL : REAL msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_SINT : SINT msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_UINT : UINT msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_WORD : WORD msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_DINT : DINT msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_INT : INT msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_LINT : LINT msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_REAL : REAL msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_SINT : SINT msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_UINT : UINT msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_USINT : USINT msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_BOOL : BOOL msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: BOOL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_WORD : WORD msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_SINT : SINT msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_INT : INT msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_DINT : DINT msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_LINT : LINT msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_USINT : USINT msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_UINT : UINT msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_REAL : REAL msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_DATE : DATE msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_TIME : TIME msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_TOD : TOD msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION STRING_TO_DT : DT msousa@280: VAR_INPUT IN: STRING; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_STRING : STRING msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_STRING : STRING msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_STRING : STRING msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_STRING : STRING msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_STRING : STRING msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_STRING : STRING msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_STRING : STRING msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_STRING : STRING msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_STRING : STRING msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_STRING : STRING msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_STRING : STRING msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_STRING : STRING msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_STRING : STRING msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_STRING : STRING msousa@267: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_STRING : STRING msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_STRING : STRING msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_STRING : STRING msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_STRING : STRING msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_STRING : STRING msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: STRING; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_DATE : DATE msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_DATE : DATE msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_DATE : DATE msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_DATE : DATE msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_DATE : DATE msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_DATE : DATE msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_DATE : DATE msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_DATE : DATE msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_DATE : DATE msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_DATE : DATE msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_DATE : DATE msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_DATE : DATE msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_DATE : DATE msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@267: FUNCTION REAL_TO_DATE : DATE msousa@267: VAR_INPUT IN: REAL; END_VAR msousa@267: VAR_OUTPUT OUT: DATE; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@280: FUNCTION LREAL_TO_DATE : DATE msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: DATE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_WORD : WORD msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_SINT : SINT msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_INT : INT msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_DINT : DINT msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_LINT : LINT msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_USINT : USINT msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_UINT : UINT msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_REAL : REAL msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: DATE; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_TIME : TIME msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_TIME : TIME msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_TIME : TIME msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_TIME : TIME msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_TIME : TIME msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_TIME : TIME msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_TIME : TIME msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_TIME : TIME msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_TIME : TIME msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_TIME : TIME msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_TIME : TIME msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_TIME : TIME msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_TIME : TIME msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION REAL_TO_TIME : TIME msousa@267: VAR_INPUT IN: REAL; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LREAL_TO_TIME : TIME msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: TIME; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_WORD : WORD msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@267: VAR_OUTPUT OUT: DWORD; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@280: FUNCTION TIME_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_SINT : SINT msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_INT : INT msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_DINT : DINT msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_LINT : LINT msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_USINT : USINT msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_UINT : UINT msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_REAL : REAL msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TIME_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: TIME; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_DT : DT msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_DT : DT msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_DT : DT msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_DT : DT msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_DT : DT msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_DT : DT msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_DT : DT msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_DT : DT msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_DT : DT msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_DT : DT msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_DT : DT msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_DT : DT msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_DT : DT msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@267: FUNCTION REAL_TO_DT : DT msousa@267: VAR_INPUT IN: REAL; END_VAR msousa@267: VAR_OUTPUT OUT: DT; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@280: FUNCTION LREAL_TO_DT : DT msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: DT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_WORD : WORD msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_SINT : SINT msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_INT : INT msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_DINT : DINT msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_LINT : LINT msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_USINT : USINT msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_UINT : UINT msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: UDINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: ULINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_REAL : REAL msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: REAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DT_TO_LREAL : LREAL msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: LREAL; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BOOL_TO_TOD : TOD msousa@280: VAR_INPUT IN: BOOL; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION BYTE_TO_TOD : TOD msousa@280: VAR_INPUT IN: BYTE; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION WORD_TO_TOD : TOD msousa@280: VAR_INPUT IN: WORD; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DWORD_TO_TOD : TOD msousa@280: VAR_INPUT IN: DWORD; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LWORD_TO_TOD : TOD msousa@280: VAR_INPUT IN: LWORD; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION SINT_TO_TOD : TOD msousa@280: VAR_INPUT IN: SINT; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION INT_TO_TOD : TOD msousa@280: VAR_INPUT IN: INT; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DINT_TO_TOD : TOD msousa@280: VAR_INPUT IN: DINT; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION LINT_TO_TOD : TOD msousa@280: VAR_INPUT IN: LINT; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION USINT_TO_TOD : TOD msousa@280: VAR_INPUT IN: USINT; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UINT_TO_TOD : TOD msousa@280: VAR_INPUT IN: UINT; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION UDINT_TO_TOD : TOD msousa@280: VAR_INPUT IN: UDINT; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION ULINT_TO_TOD : TOD msousa@280: VAR_INPUT IN: ULINT; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@267: FUNCTION REAL_TO_TOD : TOD msousa@267: VAR_INPUT IN: REAL; END_VAR msousa@267: VAR_OUTPUT OUT: TOD; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@280: FUNCTION LREAL_TO_TOD : TOD msousa@280: VAR_INPUT IN: LREAL; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_BYTE : BYTE msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: BYTE; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_WORD : WORD msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: WORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_DWORD : DWORD msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: DWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_LWORD : LWORD msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: LWORD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_SINT : SINT msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: SINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_INT : INT msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: INT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_DINT : DINT msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: DINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_LINT : LINT msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: LINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_USINT : USINT msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: USINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_UINT : UINT msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@280: VAR_OUTPUT OUT: UINT; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION TOD_TO_UDINT : UDINT msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@267: VAR_OUTPUT OUT: UDINT; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@280: FUNCTION TOD_TO_ULINT : ULINT msousa@280: VAR_INPUT IN: TOD; END_VAR msousa@267: VAR_OUTPUT OUT: ULINT; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@267: FUNCTION TOD_TO_REAL : REAL msousa@267: VAR_INPUT IN: TOD; END_VAR msousa@267: VAR_OUTPUT OUT: REAL; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@267: FUNCTION TOD_TO_LREAL : LREAL msousa@267: VAR_INPUT IN: TOD; END_VAR msousa@267: VAR_OUTPUT OUT: LREAL; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@267: msousa@280: FUNCTION DATE_AND_TIME_TO_TIME_OF_DAY : TOD msousa@280: VAR_INPUT IN: DT; END_VAR msousa@280: VAR_OUTPUT OUT: TOD; END_VAR msousa@280: LD TRUE msousa@280: END_FUNCTION msousa@280: msousa@280: msousa@280: FUNCTION DATE_AND_TIME_TO_DATE : DATE msousa@280: VAR_INPUT IN: DT; END_VAR msousa@267: VAR_OUTPUT OUT: DATE; END_VAR msousa@267: LD TRUE msousa@267: END_FUNCTION msousa@267: msousa@269: {enable code generation} msousa@280: