Examples Of Practical Programs; Program That Uses Number Of Averaging Time - Mitsubishi MELSEC-F FX3U Series User Manual

Programmable controllers
Hide thumbs Also See for MELSEC-F FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series PLC User's Manual - Analog Control Edition
3U
3UC
FX
-4AD (4-channel Analog Input)
3UC
7.

Examples of Practical Programs

Use the functions incorporated in 4AD to create practical programs. This chapter describes the examples of
practical programs.
• Program that uses the number of 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 Number of Averaging Time

This section describes a program that uses the number of analog data averaging time input to 4AD or the
digital filter function of 4AD.
1. Conditions
The sequence program described in this section is created under the following conditions.
1) System configuration
4AD (unit No.1) should be connected to the main unit.
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) Number of averaging time
For channels 1 through 4, the number of averaging time should be set to "10".
4) Digital filter function
For channels 1 through 4, the digital filter function should be disabled (default).
5) Device assignment
Device
D0
D1
D2
D3
2. Example of sequence program
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 the input mode specified,
if the same input mode is used, it is not necessary to set the input mode and the 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.
Description
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
FNC 12
H3300
MOV
P
K50
T0
FNC 16
K10
U1\G2
FMOV
P
FNC 16
K0
U1\G6
FMOV
P
FNC 16
U1\G10
D0
BMOV
7 Examples of Practical Programs
7.1 Program That Uses Number of Averaging Time
Input modes of channels 1
U1\G0
to 4 will be specified.
*1
For channels 1 and 2, the number of
K4
averaging time will be set to "10".
The digital filter function of channels 1
K4
and 2 will be disabled.
The digital values set for channels
K4
1 through 4 will be read out to D0 to D3.
*1
*2
B-51
A
B
C
D
E
F
G

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents