Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
7  APPLICATION INSTRUCTIONS
7.13  Data Control Instructions
669
7
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
 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 (      )