Mitsubishi Electric melsec-k Programming Manual page 10

Hide thumbs Also See for melsec-k:
Table of Contents

Advertisement

register IW, and the input/output number X1 is sent to the input selection part.
*The same applies for subsequent program.
@
X1 is selected by the input selection part X.
@
The on-off status of X1 is taken in, and
it is stored in register
B via register A.
@
X2 is selected by the input selection part X.
@
The on-off status of X2 is taken in and stored in register A.
@ The contens of X2 in register A and X1 in register B are sent to the logic processing unit, LU,
@
This operation result (X1
+
X2) is sent to register
By
where it is stored, Register B becomes
1 ORX2
OR
operation
is
executed, and the operation result for (X1
+
X2)
is obtained.
the answer register.
2 ANDX3
@
X3 is selected by the input selection part X.
@
The on-off status of X3 is taken in and stored in register A.
@
The contents of
(X1
+
X2) in register B and X3 in register A are sent to the logic processing
unit LU, AND operation is executed, and the operation result for (Xl
+
X2) X3 is obtained.
@
This operation result (X1
+
X2) X3 is sent to register
By
where it is stored.
1
@
Y14 is selected by the output selection part Y.
@
The operation result (XI
+
X2) X3 from register B is sent to output
Y14.
Y14 has an output register, where this operation result is stored and kept.
The above example treated X and Y as input and output, but seen from the logic processing
unit (LU), X and
Y
are preceding units providing conditions
or
data for logic processing
and units for output of the operation results. These units seen from the LU are called
"devices". There are the following types of devices:-
3 OUTY14
X
........
Input
Y
.........
output
M
........
Temporary memory
T
.........
Timer
C
.........
Counter
F
.........
External failure memory
D
........
Data register
Input and output
by
the LU.
K
.........
Constant
Only input by the LU.
- 6 -

Advertisement

Table of Contents
loading

Table of Contents