Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル

ページ / 936
665
FX
3G
/FX
3U
/FX
3UC
 Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.2 FNC257 – BAND / Dead Band Control
21
FN
C
160
-F
N
C
16
9
R
eal
 T
im
e C
lock
 
C
ont
ro
l
22
FN
C
170-
FN
C
179
E
xte
rnal D
evice
23
FN
C
180
A
lter
nate 
In
st
ru
ct
ions
24
FN
C
181-
FN
C
18
9
O
ther
s
25
FN
C
190-
FN
C
199
B
lock D
ata
 
O
per
ation
26
FN
C2
00
-F
NC
20
9
C
ha
racter
 S
tring 
Co
ntro
l
27
FN
C
210-
FN
C
21
9
Da
ta
 
O
per
ati
on 3
28
FN
C
220-
FN
C
249
Da
ta
 
C
om
par
ison
29
FN
C
25
0-F
N
C
269
D
ata T
abl
O
per
at
ion
30
FN
C
270-
FN
C
274
Ex-
D
ev
ice 
Inv
ert
er
 Com
m
s
2. 32-bit operation (DBAND and DBANDP)
Depending on how the input value (32-bit binary value) specified by [
+1, 
] compares to the dead band
range between [
+1, 
] and [
+1, 
], the output value [
+1, 
] is controlled.
The output value is controlled as shown below:
Caution
• When the output value overflows, it is handled as follows:
- In the 16-bit operation
The output value is a 16-bit binary value with sign.  Accordingly, if the operation result is outside the range from 
-32768 to +32767, it is handled as follows:
- In the 32-bit operation
The output value is a 32-bit binary value with sign.  Accordingly, if the operation result is outside the range from 
-2,147,483,648 to +2,147,483,647, it is handled as follows:
Error
An operation error is caused when the instruction is executed in the setting status shown below; The error flag M8067
turns ON, and the error code (K6706) is stored in D8067.
Relationship
16-bit operation
>
32-bit operation
[
+1,
> [
+1,
]
  
S
3
  
S
3
  
S
1
  
S
1
  
S
2
  
S
2
   
D
   
D
FNC257
DBAND
+1,
+1,
+1,
+1,
+1,
+1,
+1,
+1,
+1,
+1,
+1,
+1,
+1,
+1,
[
]
[
]
S
1 ‚
S
2 ‚
S
3 ‚
D ‚
Command
input
‚
In the case of “Lower limit value > Input value” ...............Input value   
−     Lower limit value → Output value
‚
In the case of “Upper limit value <  Input value” ..............Input value   
−     Upper limit value → Output value
‚
In the case of “Lower limit value 
≤  Input value ≤  Upper limit value” ................................  0 →  Output value
+1,
D ‚
D ‚
+1,
S
3 ‚
S
3 ‚
Output value
Input
value
Output
value
Input value
S
1 ‚
S
1 ‚
S
3 ‚
S
3 ‚
S
2 ‚
S
2 ‚
S
3 ‚
S
3 ‚
S
3 ‚
S
3 ‚
S
1 ‚
S
1 ‚
S
2 ‚
S
2 ‚
S
3 ‚
S
3 ‚
S
3 ‚
S
3 ‚
S
1 ‚
S
1 ‚
S
2 ‚
S
2 ‚
D ‚
D ‚
D ‚
D ‚
D ‚
D ‚
Output
Output
Lower limit value of
dead band
Output value = 0
Upper limit value of
dead band [
]
+1,
S
2 ‚
S
2 ‚
[
]
+1,
S
1 ‚
S
1 ‚
Lower limit value of dead band          = 10
Input value          = -32768
Output value = -32768-10
                     = 8000H-AH
                     = 7FF6H
                     = 32758
S
1 ‚
S
3 ‚
Lower limit value of dead band [          +1,           ] = 1000
Input value [          +1,           ] = -2,147,483,648
Output value = -2,147,483,648-1000
                     = 80000000H-000003E8H
                     = 7FFFFC18H
                     = 2,147,482,648
S
1  
S
3  
S
1  
S
3  
  
S
1
  
S
2
  
S
1
  
S
1
  
S
2
  
S
2