-

TO_BCD_DWORD

Type Function
Description Converts an unsigned integer value into a binary coded decimal value (BCD value) of the data type DWORD.
The function is an overloaded function. It can operate on all unsigned input data types (UDINT, UINT, ULINT and USINT).
Parameters Input

IN

Output

OUT
Conversion rules In a BCD DWORD, integer values between 0 and 99999999 can be stored. Each digit is represented by four bits. If the input value has more than 8 digits (exceeds the maximum value of the BCD DWORD), the function returns the maximum value 16#FFFFFFFF.
Examples Examples in ST
Error behavior Error behavior
Additional information EN/ENO behavior

 


This help information is valid for iCube Engineer Online Help 2025.6

Copyright © 2025 YASKAWA EUROPE GmbH and © 2025 YASKAWA America, Inc.