EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Zone Control for bin 16-Bit Data, Zone Control for bin 32-Bit Data

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
668
7 APPLICATION INSTRUCTIONS
7.13 Data Control Instructions
Zone control for BIN 16-bit data, zone control for BIN 32-bit data
ZONE(P), DZONE(P)
Processing details
ZONE
Adds bias value designated by (S1) or (S2) to input value designated by (S3), and stores at device number designated by
(D). Bias values are calculated in the following manner:
The values that can be designated by (S1), (S2), and (S3) are in the range of from -32768 to 32767.
The output value stored at (D) is a signed 16-bit BIN value. Therefore, if the operation results exceed the range of -32768 to
32767, the following will take place:
Ex.
When negative bias value is -100 and input value is -32768
-32768 + (-100) = 8000H + FF9CH = 7F9CH = 32668
(S1): Negative bias value to be added to an input value (BIN 16/32 bits)
(S2): Positive bias value to be added to an input value (BIN 16/32 bits)
(S3): Input value used for a zone control (BIN 16/32 bits)
(D): Head number of the devices where the output value controlled by the zone control will be stored (BIN 16/32 bits).
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1) 
(S2) 
(S3) 
(D) 
Condition Result
When input value (S3) < 0 Input value (S3) + Negative bias value (S1) Output value (D)
When input value (S3) = 0 0 Output value (D)
When input value (S3) > 0 Input value (S3) + Positive bias value (S2) Output value (D)
Basic
Process
High
performance
Redundant
Universal
LCPU
ZONE, DZONE
ZONEP, DZONEP
D
S1 S2
Command
Command
P
S3
D
S1 S2 S3
indicates an instruction symbol of ZONE/DZONE.
D
Output value ( )
S3
Input value ( )
S1
Negative bias value ( )
0
S2
Positive bias value ( )

Table of Contents

Related product manuals