Skip to main content

DWORD_TO_REAL

The DWORD_TO_REAL block converts a DWORD value to REAL.

Ladder Representation

DWORD_TO_REAL Ladder representation

Block Structure

Variable TypeNameData TypeDescription
VAR_INPUTENBOOLBlock enable.
VAR_INPUTValueDWORD / UDINT / DINTDWORD value.
VAR_OUTPUTENOBOOLEnd of operation.
VAR_OUTPUTResultREALREAL value.

Operation

When EN is TRUE, the block interprets Value as a DWORD value, converts it to REAL, and stores the result in Result.

When EN is FALSE, Result remains unchanged.

The ENO output passes the EN state to the next Ladder block after the operation is finished.

Execution Flowchart

DWORD_TO_REAL execution flowchart

Examples

The Ladder examples convert VALUE from DWORD to REAL, store the final value in RESULT, and activate ENO when the block finishes successfully.

DWORD_TO_REAL Ladder example

DWORD_TO_REAL Ladder example result