3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
3.9 Numeric Values which can be Used in Sequence Programs
3
- 81
1
O
verv
iew
2
Per
fo
rma
nce
S
p
ecifica
tio
n
3
S
equ
en
ce P
ro
g
ra
m
Co
nfig
ura
tio
n a
nd
E
xecut
io
n Co
nd
iti
o
ns
4
I/O N
unb
er
Assig
n
m
e
nt
5
Me
mor
ie
s a
nd
File
s
Ha
nd
led
by CP
U Mo
du
le
6
Func
tions
7
Co
mmu
nic
a
tion
us
in
g
bu
ilt
-i
n E
th
e
rne
t po
rt
s o
f
CP
U mod
u
le
8
Co
mm
un
icatio
n
w
ith
Int
e
lli
ge
nt
Fun
ction
Mo
du
le
(2) Numeric value output from CPU module to outside
A digital display or similar device is available to externally display the numeric value
operated by the CPU module.
(a) How to output numeric value
The CPU module performs operation in BIN.
If binary values used in the CPU module are output as they are to a digital display,
they will not displayed correctly.
Therefore, the BCD instruction is used to convert the data operated in BIN into
BCD used by the external display or similar device.
Using the BCD instruction allows the same display as in DEC (decimal) to be
provided on the external display or similar device.
Remark
Refer to the following manual for details of the BCD instruction.
QCPU (Q Mode)/QnACPU Programming Manual (Common Instructions)
Figure 3.67 Display of CPU module operation data by digital display
[Numeric data designation]
Digital display
Y3F
Y30
to
CPU module
BCD output
BIN data
BINP K4X0 D0
BCD D5 K4Y30
Содержание Q00CPU
Страница 1: ......
Страница 2: ......
Страница 972: ...Index 6 Memo ...
Страница 975: ......
Страница 976: ......