Mitsubishi Electric MELSEC-Q Series User Manual page 60

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

4 SEQUENCE PROGRAM CONFIGURATION & EXECUTION
CONDITIONS
4 - 21
(1) External numeric inputs to Basic model QCPU
When designating numeric settings for the Basic model QCPU from an external
source (digital switch, etc.), a BCD (binary coded decimal) setting can be
designated which is the same as a decimal setting.
However, because the Basic model QCPU operation is based on BIN, if the
Basic model QCPU uses values designated in the BCD method as they are, it
handles the values as BIN.
The Basic model QCPU operation based on such values will be different from the
operation specified by the designated values.
A BIN instruction is therefore provided for the Basic model QCPU to convert BCD
input data to the BIN data which is used by the Basic model QCPU.
A program which converts numeric data to BIN data can be created at the
sequence program in order to allow numeric settings to be designated from an
external source without regard to the corresponding BIN values.
[Numeric data designation]
Digital switch
4
3
2
XF
Fig.4.10 Digital Switch Data Input to Basic model QCPU
(2) External numeric outputs from Basic model QCPU
A digital display can be used to display numeric data which is output from the
Basic model QCPU.
However, because the Basic model QCPU uses BIN data, it cannot be displayed
at the digital display as is.
A BCD instruction is therefore provided for the Basic model QCPU to convert the
BIN data to BCD data. A program which converts BIN data to BCD data can be
created at the sequence program in order to display the output data in a manner
identical to decimal data.
Basic modle QCPU
Fig.4.11 Digital Display of Data from Basic model QCPU
Basic model QCPU
1
BCD input
X0
BINP K4X0 D0
BCD D5 K4Y30
MELSEC-Q
BINP K4X0 D0
BIN data
BCD D5 K4Y30
[Numeric data designation]
Digital display
Y3F
Y30
BCD output
BIN data
4 - 21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qcpuMelsec q00jcpuMelsec q00cpuMelsec q01cpu

Table of Contents