Mitsubishi Electronics FX3G User Manual

Page of 964
98
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.5 Timer [T]
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
3S
/FX
3G
 PLCs are used
*1
Values of variable analog potentiometers built
in FX
3S
/FX
3G
 PLCs as standard are stored as
numeric data ranging 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)
*1.
This function is not supported in the FX
3S
-30M /E -2AD PLC.
2) When variable analog potentiometers (expansion board) are used
The value of a variable analog potentiometer board
which can be built in an FX
3S
/FX
3G
/FX
3U
/FX
3UC
-
32MT-LT(-2) PLC can be obtained as numeric data
ranging 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 FNC 85 (VRRD) instruction to take the
value of a variable analog potentiometer into the
PLC.
→ For FNC 85 (VRRD), refer to Section 16.6.
Use the FNC 86 (VRSC) instruction to take the
value of a variable analog potentiometer as a
numeric value ranging from 0 to 10.
→ For FNC 86 (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 ranging 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