Examples Of Practical Programs - Mitsubishi Electric FX3G User Manual

Hide thumbs Also See for FX3G:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
/FX
3S
3G
3GC
3U
FX
-4DA (4-channel Analog Output)
3U
8.

Examples of Practical Programs

8.1
Example of Program for Analog Output Operation (Regular Operation)
When you want to use the initial output characteristics but do not need to use the status information, you can
operate the PLC with a simple program as shown below.
1. Conditions
The sequence program described in this section is under the following conditions.
1) System configuration
FX
-4DA (unit No.0) should be connected to the FX
3U
2) Output mode
Channels 1 and 2 should be set to mode 0 (voltage output, -10 V to +10 V).
Channel 3 should be set to mode 3 (current output, 4 mA to 20 mA).
Channel 4 should be set to mode 2 (current output, 0 mA to 20 mA).
- For FX
3U
Initial pulse
M8002
RUN monitor
M8000
Data to be output to channel 1 is written in D0.
Data to be output to channel 2 is written in D1.
Data to be output to channel 3 is written in D2.
Data to be output to channel 4 is written in D3.
T0
*1. After setting the output mode, set the data writing time (waiting time) to 5 seconds or more for each
setting. The specified output mode will be retained even if power failure occurs. After the output mode
is specified, if the same output mode is used, it is not necessary to set the output mode and the waiting
time (T0 K50).
- For FX
3G
Initial pulse
M8002
RUN monitor
M8000
Data to be output to channel 1 is written in D0.
Data to be output to channel 2 is written in D1.
Data to be output to channel 3 is written in D2.
Data to be output to channel 4 is written in D3.
T0
*1. After setting the output mode, set the data writing time (waiting time) to 5 seconds or more for each
setting. The specified output mode will be retained even if power failure occurs. After the output mode
is specified, if the same output mode is used, it is not necessary to set the output mode and the waiting
time (T0 K50).
E-56
PLC User's Manual - Analog Control Edition
3UC
/FX
Series PLCs
3UC
FNC 12
MOV
P
FNC 15
D0
BMOV
/FX
/FX
/FX
Series PLCs
3GC
3U
3UC
FNC 79
K0
K0
TO
P
FNC 79
K0
K1
TO
8.1 Example of Program for Analog Output Operation (Regular Operation)
Series PLC.
3U
Transfer H2300 to BFM#0 (output modes of
channels 1 to 4).
H2300
U0\G0
ch1 and ch2: Voltage output (-10 to +10 V),
ch3: Current output (4 mA to 20 mA), output
mode 3
ch4: Current output (0 mA to 20 mA), output
K50
*1
T0
mode 2
Store the data to be output to channels 1 to 4
in D0 to D3 in the following ranges.
D0 and D1: -32000 to +32000
D2 and D3: 0 to 32000
D0BFM#1 (output to channel 1)
U0\G1
K4
D1BFM#2 (output to channel 2)
D2BFM#3 (output to channel 3)
D3BFM#4 (output to channel 4)
Transfer H2300 to BFM#0 (output modes of
channels 1 to 4).
H2300
K1
ch1 and ch2: Voltage output (-10 to +10 V),
ch3: Current output (4 mA to 20 mA), output
ch4: Current output (0 mA to 20 mA), output
K50
*1
T0
Store the data to be output to channels 1 to 4
in D0 to D3 in the following ranges.
D0 and D1: -32000 to +32000
D2 and D3: 0 to 32000
D0BFM#1 (output to channel 1)
D0
K4
D1BFM#2 (output to channel 2)
D2BFM#3 (output to channel 3)
D3BFM#4 (output to channel 4)
8 Examples of Practical Programs
output mode 0
output mode 0
mode 3
mode 2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3sFx3gcFx3uFx3uc

Table of Contents