Name :Data type conversion

Symbol :???_TO_???

Illustrate:

        Convert one data type to another

Image:

Parameter:

Parameter | Statement | Type | Description
--- | --- | --- | ---
IN | Input | Any base type |
    Enter a value
OUT | Output | Any base type |
    Output value

Example:

LD:

ST:

TagOut := BOOL_TO_BYTE(IN := TagIn);

Interpretation:

parameter | operand | value
--- | --- | ---
IN | TagIn | Enter a value：TRUE
OUT | TagOut | Output value：1

        Enter BOOL (TRUE OR FALSE) data in IN and BYTE in OUT.