Delta Electronics AH500 Manual page 149

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

A H 5 00 M o ti on C on tr ol M od ul e Ma nua l
API
Instruction code
18
D
BCD
Device
X
Y
M
S
D
 The binary value in S is converted into a binary-coded decimal value,
E xp la nat io n
 If a binary number is converted to a binary-coded decimal number which
 BCD can be used to convert the binary value in a positioning unit to a
 SM1049 is an Ox motion subroutine error flag, and SM953 is an O100
 When X0.0 is ON, the binary value in D10 is converted into a
E xa mple
Operand
P
S
K
16#
F
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (6 steps)
and the conversion result is transferred to D.
is not in the range of 0 to 9,999, the instruction BCD will not be
executed. If a binary number is converted to a binary-coded decimal
number which is not in the range of 0 to 99,999,999, the instruction
DBCD will not be executed.
binary-coded decimal value, and transfer the conversion result to an
external device, e.g. a seven-segment display.
error flag.
binary-coded decimal value, and the digit in the ones place of the
conversion result is stored in K1M0 (M0~M3).
X0.0
If D10=001E (hexadecimal number)=0030 (decimal number),
M0~M3=0000 (binary number).
S, D
KnM KnS
D
W
BCD
D 10
K 1M 0
Function
Converting a binary
number into a
binary-coded decimal
number
T
C
V
Z
5 - 3 4

Advertisement

Table of Contents
loading

Table of Contents