Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G User Manual

Page of 936
93
FX
3G
/FX
3U
/FX
3UC
 Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.5 Timer [T]
1
In
trodu
ct
ion
2
O
ver
vi
ew
3
In
st
ru
ct
ion 
Li
st
4
D
evices 
in D
etail
5
Specifi
ed t
he
D
evice &
 
C
onst
ant
6
Bef
ore 
Pr
ogr
am
m
ing
7
B
asic 
In
st
ru
ct
ion
8
FNC0
0-F
NC0
9
Pr
ogr
am
 Flow
9
FN
C
10-FN
C
19
Mo
ve
 &
 Co
mp
are
10
FNC2
0-F
NC2
9
Ar
ith.
 &
 Logic 
O
per
ati
on
2. Retentive type
When the drive input X001 of the timer coil T250 turns ON, the current
value counter for T250 adds and counts clock pulses of 100 ms.
When the counted value becomes equivalent to the set value K345,
the output contact of the timer turns on.
Even if the drive input X001 turns OFF or the power is turned off
during counting, the timer continues counting when the operation
restarts.  The retentive operating time is 34.5 seconds.
When the reset input X002 turns ON, the timer is reset and the output
contact is returned.
3. Potentiometer type
1) When variable analog potentiometers built in the FX
3G
 main unit are used
Values of variable analog potentiometers built
in FX
3G
 PLCs as standard are stored as
numeric data in the range from 0 to 255 in the
following special registers in accordance with
the scale position.  
An obtained numeric value can be specified
as the indirectly specified value for a timer to
make a variable potentiometer type analog
timer.
•VR1
 → D8030 (Integer from 0 to 255)
•VR2 
→ D8031 (Integer from 0 to 255)
2) When variable analog potentiometers (expansion board) are used
The value of a variable analog potentiometer board
which can be built in an FX
3G
 PLC as an expansion
board can be obtained as numeric data in the range
from 0 to 255 in accordance with the scale position.
An obtained numeric value can be specified as the
indirectly specified value for a timer to make a
variable potentiometer type analog timer.
Use the FNC85 (VRRD) instruction to take the
value of a variable analog potentiometer into the
PLC.
→ For FNC85(VRRD), refer to Section 16.6.
Use the FNC86 (VRSC) instruction to take the value
of a variable analog potentiometer as a numeric
value in the range from 0 to 10.
→ For FNC86(VRSC), refer to Section 16.7.
X001
T250
T250
Y001
K345
Set value
(constant)
A data register
can be
specified also.
X002
RST
T250
Current
value
Y001
X001
X002
Set value
t2
t1
Retentive time
t1 + t2 = 34.5 sec
X003
T10
D08030
[Basic example]
This register stores the  
value (0 to 255) of variable  
analog potentiometer.
0 to 25.5 sec
FNC 22
MUL
D8031
K 2
DO (D1)
M8000
X003
T10
D 0
[Applied example]
"D8030 (VR2) value x 2" is transferred to D0 (D1).
(0 to 51 sec)
The set value range can be  
changed (up to 32,767) by multiplying  
the register value by "n". 
RUN monitor
Do not use D1 in other programs.
VRRD
Example of application as analog timer
The analog value of the potentiometer No. 0 is converted into
binary 8-bit data, and a numeric value in the range from 0 to 255
is transferred to D0.
In this application example, the value of D0 is used as the set
value of a timer.
volume
number
Read
destination
FNC 85
K0
D0
X000
X001
T0
D0