1840
25 TYPE CONVERSION FUNCTIONS
25.38 Converting BCD to DINT
25.38 Converting BCD to DINT
BCD_TO_DINT(_E)
These functions convert a value from BCD data type to DINT data type.
■Description, type, data type
Ladder, FBD/LD Structured text
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
d:=BCD_TO_DINT(s);
[With EN/ENO]
d:=BCD_TO_DINT_E(EN,ENO,s);
Argument Description Type Data type
EN Execution condition (TRUE: Executed, FALSE: Not executed) Input variable BOOL
s (IN) Input Input variable ANY_BIT
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable DINT
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
EN ENO
ds