Mitsubishi MELSEC-Q/L Programming Manual page 561

Table of Contents

Advertisement

DZONE
(1) Adds bias value designated by ( ,
device number designated by ( ,
Addition of the bias value is performed as follows:
+1
S3
S3
When
Input value
S3
+1
S3
When
Input value
S3
+1
S3
When
Input value
(2) The values designated by ( ,
2147483647.
(3) The value stored at ( ,
D
Therefore, if the operation results exceed the range of from -2147483648 to 2147483647, the following takes place:
Negative bias value ( ,
When :
Input value ( ,
Output value
Operation Error
(1) There is no operation error in the ZONE(P) or DZONE(P) instruction.
Program Example
(1) The following program performs zone control by applying negative and positive bias values of
set at D0 and stores the result of control at D1 when X0 is turned ON.
[Ladder Mode]
[Operation]
• The value (D0) + (-100) is stored at D1 if D0
Example
D0 -200 D1 -300
• The value 0 is stored at D1 if D0
• The value of (D0) + 100 is stored at D1 if 0
Example
D0 700 D1 800
+1) or ( ,
+1) to input value designated by ( ,
S1 S1
S2
S2
+1).
D
D
+1
S3
S3
0
+
Input value
0
S3
+1
S3
0
+
Input value
Output value (
D
Positive bias value
(
S2
,
S2
+1)
0
+1), ( ,
+1), or ( ,
S1 S1
S2
S2
S3 S3
+1) is a signed 32-bit BIN value.
D
+1)
.......................-
S1 S1
+1)
.........................................
S3 S3
-2147483648 + (-1000)
7FFFFC18
2147482648.
0.
0.
D0.
ZONE, ZONEP, DZONE, DZONEP
S1
+1
S1
D
+1
D
Negative bias value
Output value
D
+1
D
0
Output value
+1
S2
S2
D
D
+1
Output value
Positive bias value
+1,
D
)
Input value
(
,
+1)
S3 S3
Negative bias value
(
S1
,
S1
+1)
+1) are within the range of from
1000
-2147483648
80000000
+ FFFFFC18
H
[List Mode]
Step
Instruction
+1), and stores the result at
S3 S3
2147483648 to
H
100 to 100 for the data
Device
1
2
3
4
4
6
7
8
559

Advertisement

Table of Contents
loading

Table of Contents