Mitsubishi Electric MELSEC-Q Structured Programming Manual page 53

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
3. Variable potentiometer type
• Program for built-in analog variable potentiometers
Program values for built-in analog variable potentiometers are stored in the following special data registers
as numeric data within the range from 0 to 255 in accordance with the scale position.
Values received as numeric values can be specified as the indirectly specified value for a timer to provide
variable potentiometer type analog timers.
[Special data registers]
FX
, FX
, FX
1S
1N
VR1→D8030
VR2→D8031
[Example of basic circuit]
X003
D8030
Data register which stores
an analog variable potentiometer
value (integer in range from 0 to 255)
*1.
FX
-30M /E -2AD are not applicable to built-in analog variable potentiometers.
3S
• Program for analog variable potentiometers on function board
Values of analog variable potentiometers which can be built in the PLC as a function board can be
received as numeric data in the range from 0 to 255 in accordance with the scale position.
Values received as numeric values can be specified as timer function values to provide variable
potentiometer type analog timers.
Use the VRRD function to put analog variable potentiometer values into the PLC.
X000
X001
Use the VRSC instruction to put the value of an analog variable potentiometer as a numeric value in the
range from 0 to 10 in accordance with the scale position.
*1
FX
0S
, FX
PLC
3S
3G
D8013
OUT_T
EN
ENO
TCoil
TC10
TValue
(0 to 25.5 sec)
VRRD
EN
ENO
s
d
K0
D0
OUT_T
EN
ENO
TCoil
TC0
D0
TValue
, FX
0
PLC
[Example of applied circuit]
M8000
EN
RUN monitor
_IN
D8031
_IN
K2
X003
EN
TC10
TCoil
D0
TValue
(0 to 51 sec)
The set value range can be changed
(to "32,767" maximum) by multiplying the contents of the
data register by "n".
Do not use D1 in other programs.
The analog value of the variable potentiometer No. 0 is
converted into 8-bit binary value, and the value in the range
from 0 to 255 is transferred to D0.
In this example, D0 is used as the timer set value.
2 Devices in Detail
2.5 Timer [T]
FX
0N
PLC
VR1→D8013(D8030)
VR2→D8031
MUL_E
ENO
D0
[Value of D8031 (VR2)] 2
Transferred to (D1, D0)
OUT_T
ENO
1
2
3
4
5
6
7
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents