Binary value of DOUBLE WORD into unsigned DOUBLE INTEGER
DWORD_BCD_TO_UDINT converts a binary value of the data type DWORD into a value of the data type Unsigned DOUBLE INTEGER.
Input
input data type
Output
Conversion result
All input and output variables used for programming this function have been declared in the POU header. The same POU header is used for all programming languages.
VAR
UDINT_value: UDINT:=419976246;
BCD_value_32bit: DWORD:=16#19085436;
END_VAR
BODY
WORKSPACE
NETWORK_LIST_TYPE := NWTYPELD ;
ACTIVE_NETWORK := 0 ;
END_WORKSPACE
NET_WORK
NETWORK_TYPE := NWTYPELD ;
NETWORK_LABEL := ;
NETWORK_TITLE := ;
NETWORK_HEIGHT := 5 ;
NETWORK_BODY
B(B_F,DWORD_BCD_TO_UDINT!,Instance,16,2,28,4,,?D?C);
B(B_VARIN,,BCD_value_32bit,14,2,16,4,);
B(B_VAROUT,,UDINT_value,28,2,30,4,);
L(1,0,1,5);
END_NETWORK_BODY
END_NET_WORK
END_BODY