Zone Control Of 16-Bit Binary Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Zone control of 16-bit binary data

ZONE(P)(_U)
These instructions add the bias value specified by (s1) or (s2) to the input value specified by (s3), and store the operation
result in the device specified by (d).
Ladder diagram
(s1)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
ZONE(P)
Negative bias value to be added to the input value
ZONE(P)_U
(s2)
ZONE(P)
Positive bias value to be added to the input value
ZONE(P)_U
(s3)
ZONE(P)
Input value for performing the zone control
ZONE(P)_U
(d)
ZONE(P)
Head device number storing the output value controlled by
the zone
ZONE(P)_U
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(s1)
(s2)
(s3)
(d)
Processing details
• These instructions add the bias value specified by (s1) or (s2) to the input value (16-bit binary data) specified by (s3), and
store the operation result in the device specified by (d). The bias value is controlled as follows.
Condition
Input value (s3) < 0
Input value (s3) = 0
Input value (s3) > 0
Output value (d)
Positive bias value (s2)
• When the output value to be stored in the device specified by (d) is a 16-bit signed binary value and the operation result
exceeds the range of -32768 to 32767, the output value is calculated as follows.
7 APPLICATION INSTRUCTION
480
7.10 Data control instruction
(s2)
(s3)
(d)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
Input value (s3)
0
Negative bias value (s1)
Structured text
ENO:=ZONE(EN,s1,s2,s3,d);
ENO:=ZONEP(EN,s1,s2,s3,d);
Range
-32768 to +32767
0 to 65535
-32768 to +32767
0 to 65535
-32768 to +32767
0 to 65535
Double word Indirect
U\G
Z
LC
LZ
Output value
Input value (s3) + Negative bias value (s1)
0
Input value (s3) + Positive bias value (s2)
ENO:=ZONE_U(EN,s1,s2,s3,d);
ENO:=ZONEP_U(EN,s1,s2,s3,d);
Data type
Data type (label)
16-bit signed binary
ANY16
16-bit unsigned binary
16-bit signed binary
ANY16
16-bit unsigned binary
16-bit signed binary
ANY16
16-bit unsigned binary
16-bit signed binary
ANY16
16-bit unsigned binary
Constant
specification
K, H
E
Others
$

Advertisement

Table of Contents
loading

Table of Contents