Delta AS Series Programming Manual page 359

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
Example
1.
When X0.0 is ON, the instruction converts a binary value in D10 into a binary-code decimal value, and stores the
conversion result in D100.
2.
If D10=16#04D2=1234, the conversion result is D100=16#1234.
Additional remarks
1.
If the conversion result exceeds the range 0–9,999, the instruction BCD is not executed, SM0 is ON, and the error
code in SR0 is 16#200D. The binary-coded decimal value is represented by the hexadecimal value, but one of
digits is not between 0–9.
2.
If the conversion result exceeds the range 0–99,999,999, the instruction DBCD is not executed, SM0 is ON, and
the error code in SR0 is 16#200D. The binary-coded decimal value is represented by the hexadecimal value, but
one of digits is not between 0–9.
_6
6 - 8 0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents