3
SEQUENCE PROGRAM EXECUTION
3.7 Numeric Values which can be Used in Sequence Programs
3
- 14
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
nica
tion
with
Inte
llig
en
t Fu
n
ct
ion
Mo
du
le
8
P
a
ram
et
e
rs
(1) Numeric value input from outside to CPU module
When setting a numeric value from an external digital switch or similar device to the
CPU module, BCD (binary coded decimal) can be used as the same setting in DEC
(decimal) by the method given in (b).
(a) Numeric values handled in CPU module
The CPU module performs operation in BIN (binary).
If the value set in BCD is used as-is, the CPU module recognizes the set value as
a BIN and performs operation.
Hence, operation is performed using the value different from the set value.
(
(b) How to enter numeric value without taking into account BIN notation
Use the BIN instruction to convert the data set in BCD into BIN used in the CPU
module.
Using the BIN instruction allows users to set numeric value data from the outside
without taking into account BIN notation.
Remark
Refer to the following manual for details of the BIN instruction.
QSCPU Programming Manual (Common Instructions)
Diagram 3.9 Import of data from digital switch to CPU module
[Numeric data designation]
Digital switch
X10F
X100
to
4
3
2
1
CPU module
BCD input
BIN data
BINP K4X100 D0
BCD D5 K4Y130
Содержание MELSEC QS Series
Страница 1: ......
Страница 2: ......
Страница 24: ...A 22 Memo ...
Страница 258: ...Index 3 Memo ...
Страница 263: ......
Страница 264: ......