xLadder user manual-V2.0.0.6

NNN is greater than 5, the output is displayed as a string of 12 ASCII space characters.

C decides to use a comma or a decimal point between integer and decimal .The 4 bits

above the top of the format must be zero.

6.5.8 BCD to integer, integer to BCD conversion

Operand

Input/output

Data type

OUT

VW, IW, QW, MW, SW, SMW, LW, T, C, AC, *VD, *LD, *AC

word

The BCD - I instruction converts the binary coded decimal

value to the integer value, and loads the result into the

variable specified by the OUT. “IN” BCD value range is 0 to

9999.Integer to BCD instruction converts the integer value

to binary coded decimal value and loads the result into

the variable specified by the OUT.The range of input

values is 0 to 9999.

Example:

96

Made with FlippingBook - Online magazine maker