Device Input: Din - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Device input: DIN

Format
DIN (D),(S)
Setting data
■Usable Data
: Usable
Setting
Usable Data
data
Bit
device
(D)
(S)
■Description, data type of result
Setting data
Description
(D)
Input destination data
(S)
Input source bit data
Processing details
• The bit data specified with (S) is input to the data specified with (D).
• Specify a multiple of 16 as the device No. of the bit data specified with (S).
• If the type of (D) is a 16-bit integer type, 16 points of the (D) data, starting at the least significant bit, are input in order to the
bit devices headed by the one specified with (S).
• If the type of (D) is a 32-bit integer type, 32 points of the (D) data, starting at the least significant bit, are input in order to the
bit devices headed by the one specified with (S).
Operation error
An operation error will occur if:
• (D) or (S) is an indirectly specified device and its device No. is outside the range.
• (S) is an indirectly specified device and its device No. is not a multiple of 16.
Program example
■Program which inputs the data of X0-XF to D0
DIN D0, X0
b15
D0
0
0 0 0 1 0 0
1
1 1
4 OPERATION CONTROL PROGRAMS
182
4.11 Bit Device Controls
Number of basic steps
8
Word device
16-bit
32-bit
64-bit
integer
integer
floating
type
type (L)
point
type (F)
b0
0 0 1
1 1 1
Usable steps
F/FS
Constant
16-bit
32-bit
64-bit
integer
integer
floating
type
type
point
(K/H)
(K/H, L)
type (K)
XF
X0
0 1
0 0 0 1 0 0
1 1
0 0 1
1 1 1
G
Calculation
Bit
expression
conditional
expression
Data type of result
Data type of (D) (Integer type)
Comparison
conditional
expression

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents