DWORD_TO_REAL
The DWORD_TO_REAL block converts a DWORD value to REAL.
Ladder Representation
Block Structure
| Variable Type | Name | Data Type | Description |
|---|---|---|---|
| VAR_INPUT | EN | BOOL | Block enable. |
| VAR_INPUT | Value | DWORD / UDINT / DINT | DWORD value. |
| VAR_OUTPUT | ENO | BOOL | End of operation. |
| VAR_OUTPUT | Result | REAL | REAL 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

Examples
- Ladder
- Structured Text
The Ladder examples convert VALUE from DWORD to REAL, store the final value in RESULT, and activate ENO when the block finishes successfully.
The following Structured Text code applies the same logic shown in the Ladder example.
Structured Text
VAR
VALUE : DINT := 123954851;
RESULT : REAL;
END_VAR
RESULT := FB_DWORD_TO_REAL(EN:=DI1, Value:=VALUE, ENO=>DO1);