6 Application Instructions API 00-49
DVP-PLC Application Manual
6-29
API Mnemonic Operands
Function
18
D BCD P
Binary Coded Decimal
Controllers
ES/EX/SS SA/SX/SC EH/SV
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S K H
KnX
KnY KnM KnS T C D E F
S
*
*
*
*
*
*
*
*
*
D
*
*
*
*
*
*
*
*
BCD, BCDP: 5 steps
DBCD, DBCDP: 9 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S
: Source of data
D
: Conversion result
Explanations:
1. If
S
and
D
are used in device F, only 16-bit instruction is applicable.
2.
See the specifications of each model for their range of use.
3.
Flags: M1067 (operation error); M1068 (operation error); D1067 (error code)
4.
The content in
S
(BIN value) is converted into BCD value and stored in
D
.
5.
As a 16-bit (32-bit) instruction, when the conversion result exceeds the range of 0 ~ 9,999 (0 ~ 99,999,999), and
M1067, M1068 = On, D1067 will record the error code 0E18 (hex).
6.
The four arithmetic operations and applications in PLC and the execution of INC and DEC instructions are
performed in BIN format. Therefore, if the user needs to see the decimal value display, simply use this
instruction to convert the BIN value into BCD value.
Program Example:
1.
When X0 = On, the binary value of D10 will be converted into BCD value, and the 1s digit of the conversion
result will be stored in K1Y0 (Y0 ~ Y3, the 4 bit devices).
X0
BCD
D10
K1Y0
2.
When D10 = 001E (hex) = 0030 (decimal), the execution result will be: Y0 ~ Y3 = 0000(BIN).
Содержание DVP-PLC
Страница 1: ...PLC PLC...
Страница 28: ...1 Basic Principles of PLC Ladder Diagram DVP PLC Application Manual 1 24 MEMO...
Страница 192: ...4 Step Ladder Instructions DVP PLC Application Manual 4 22 MEMO...
Страница 250: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 38 X0 DIV D0 D10 D20 D0 D10 K4Y0 DIV...
Страница 270: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 58 RST M0 X0 RST T0 RST Y0 FMOV K0 D10 K5...
Страница 337: ...7 Application Instructions API 50 99 DVP PLC APPLICATION MANUAL 7 53 X10 STMR T10 K50 Y0 Y3 X10 Y1 Y2 5 sec 5 sec...
Страница 458: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 56 or relay itself See 2 3 for more information...
Страница 472: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 70 MEMO...
Страница 574: ...9 Application Instructions API 150 199 DVP PLC Application Manual 9 102 MEMO...