Examples Of Practical Programs; Program That Uses Averaging Time - Mitsubishi Electric MELSEC-FX3S Series Manual

Table of Contents

Advertisement

FX
/FX
/FX
/FX
/FX
3S
3G
3GC
3U
FX
-4AD/FX
-4AD (4-channel Analog Input)
3U
3UC
7.

Examples of Practical Programs

Use the functions incorporated in the 4AD to create practical programs. This chapter describes the examples
of practical programs.
• Program that uses the averaging time
• Program that uses convenient functions
• Program that uses the data history function
• Program that initializes 4AD (to the factory default status)
7.1

Program That Uses Averaging Time

This section describes a program that uses the analog data averaging time input to the 4AD or the digital filter
function of the 4AD.
1. Conditions
The sequence program described in this section is created under the following conditions.
1) System configuration
The FX
-4AD (unit No.0) should be connected to the FX
3U
2) Input mode
Channels 1 and 2 should be set to mode 0 (voltage input, -10V to +10V → -32000 to +32000).
Channels 3 and 4 should be set to mode 3 (current input, 4mA to 20mA → 0 to 16000).
3) Averaging time
For channels 1 to 4, the averaging time should be set to "10".
4) Digital filter function
For channels 1 to 4, the digital filter function should be disabled (default).
5) Device assignment
Device
D0
D1
D2
D3
2. Example of sequence program
• For FX
/FX
3U
Initial pulse
M8002
RUN monitor
M8000
T0
*1.
After setting the input mode, set the data writing time (waiting time) to 5 seconds or more for each
setting.
The specified input mode will be retained even if power failure occurs. After specifying the input mode,
if the same input mode is used, it is not necessary to set the input mode and waiting time (T0 K50).
*2.
To use the default value set for the digital filter function, it is not necessary to set the digital filter
function in the sequence program.
B-52
PLC User's Manual - Analog Control Edition
3UC
A/D converted digital value for channel 1
A/D converted digital value for channel 2
A/D converted digital value for channel 3
A/D converted digital value for channel 4
Series PLCs
3UC
FNC 12
MOV
P
FNC 16
K10
FMOV
P
FNC 16
K0
FMOV
P
FNC 15
U0\G10
BMOV
Series PLC.
3U
Description
Input modes of channels 1
H3300
U0\G0
to 4 will be specified.
*1
K50
T0
For channels 1 to 4, the averaging time
U0\G2
K4
will be set to "10".
The digital filter function of channels 1
U0\G6
K4
to 4 will be disabled.
The digital values set for channels
D0
K4
1 to 4 will be read out to D0 to D3.
7 Examples of Practical Programs
7.1 Program That Uses Averaging Time
*1
*2

Advertisement

Table of Contents
loading

Table of Contents