Skip to main content

WORD_TO_DWORD

The WORD_TO_DWORD block converts a WORD value to DWORD.

Ladder Representation

WORD_TO_DWORD Ladder representation

Block Structure

Variable TypeNameData TypeDescription
VAR_INPUTENBOOLBlock enable.
VAR_INPUTValueWORD / UINT / INTWORD value.
VAR_OUTPUTENOBOOLEnd of operation.
VAR_OUTPUTResultDWORD / UDINT / DINTDWORD value.

Operation

When EN is TRUE, the block interprets Value as a WORD value, converts it to DWORD, 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

WORD_TO_DWORD execution flowchart

Examples

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

WORD_TO_DWORD Ladder example

WORD_TO_DWORD Ladder example result