Delta AS Series Programming Manual page 361

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
Additional remarks
1.
If the value in S is not the binary-coded decimal value, an operation error occurs, 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.
Application of the BCD and BIN instructions:
Before the value of the binary-coded decimal type of DIP switch is read into the PLC, use the BIN instruction
to convert the data into the binary value and store the conversion result in the PLC.
If you want to display the data stored inside the PLC in a seven-segment display of the binary-coded decimal
type, use the BCD instruction to convert the data into the binary-coded decimal value before the data is sent
to the seven-segment display.
When X1.0 is ON, the BIN instruction converts the binary-coded decimal value in X0.0–X0.15 into the binary
value, and stores the conversion result in D100. Subsequently, the BCD instruction converts the binary value
in D100 into the binary-coded decimal value, and stores the conversion result in Y0.0–Y0.15.
_6
3
10
6
8
1
X0.15
F our -digit binary -coded deci mal value
T he instruction B IN is us ed to store
the binary value in D100.
T he instruction B CD is us ed to conver t
the value in D100 into the four- di gi t
binary- coded decimal value.
Y0.15
6 - 8 2
2
1
0
10
10
10
F our -digit binary -coded
decimal ty pe of DIP s witch
6
4
2
8
1
8
1
8
1
X0.0
Y0.0
F our -digit binary -coded deci mal type
of sev en- segment display

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents