Bcd (Fnc18); Bcd - Fnc - Mitsubishi FX1S Series Programming Manual

Melsec-f
Hide thumbs Also See for FX1S Series:
Table of Contents

Advertisement

FX Series Programmable Controlers
5.2.9

BCD (FNC18)

Mnemonic
BCD
FNC 18
(
coded
Binary
decimal)
16 BIT OPERATION
Function
Converts binary
KnX,KnY, KnM, KnS,
numbers to BCD
T, C, D, V, Z
equivalents /
When using M8023 to convert data to scientific for-
Converts floating
mat, only double word (32 bit) data registers (D) may
point data to
be used. See page 4-46 for more details regarding
scientific format
floating point format.
32 BIT OPERATION
Operands
S
KnY, KnM, KnS,
T, C, D, V, Z
PULSE-P
Operation: (Applicable to all units)
The binary source data (S) is converted into an
e q u i v a l e n t B C D n u m b e r a n d s t o r e d a t t h e
destination device (D). If the converted BCD
number exceeds the operational ranges of 0 to
9,999 (16 bit operation) and 0 to 99,999,999 (32 bit
operation) an error will occur.This instruction can be
used to output data directly to a seven segment
display.
Applied Instructions 5
FX
FX
FX
1S
1N
2N
Program steps
D
BCD, BCDP:
5 steps
DBCD,
DBCDP:
9 steps
5-26
FX
2NC

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx1n seriesFx2nc seriesFx2n series

Table of Contents