Basic Program Example - 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
-3A-ADP (2-channel Analog Input, 1-channel Analog Output)
3U
4.12

Basic Program Example

Create the following basic program example to input/output analog conversion data.
• FX
/FX
/FX
3S
3G
The following program will set channel 1 of the 3rd
current input mode, and will store the converted A/D value of channel-1 data into D100 and that of channel-
2 data into D101. The program also sets "voltage output" for output channels, and sets the D/A conversion
output to D102.
M8001
Normally OFF
M8000
Normally ON
M8001
Normally
OFF
M8000
Normally ON
M8002
Initial
pulse
M8000
Normally
ON
M8000
Normally
ON
M8000
Normally
ON
Even if the input data is not stored into D100 or D101, the data registers D8280 or D8281 can be directly
used in the timer/counter setting value or in a PID instruction.
Using the indicator or the sequence program, input the digital data to be subject to D/A conversion (to be
output as analog data) in D102.
*1.
"1st" for the FX
H-30
PLC User's Manual - Analog Control Edition
3UC
/FX
/FX
Series PLC
3GC
3U
3UC
M8280
M8281
M8282
M8286
FNC 12
D8288
K4M0
MOV
RST
RST
FNC 12
K4M0
D8288
MOV
FNC 12
K5
D8284
MOV
FNC 12
K5
D8285
MOV
FNC 12
D8280
D100
MOV
FNC 12
D8281
D101
MOV
FNC 12
D102
D8282
MOV
/FX
/FX
3S
3G
3GC
*1
adapter to voltage input mode and channel 2 to
Set the input mode of channel 1 to the voltage
input mode (0 V to 10 V).
Set the input mode of channel 2 to the current
input mode (4 mA to 20 mA).
Set the output mode to the voltage output mode
(0 V to 10 V).
Set the output holding function.
Error status: b6 = OFF
M6
Error status: b7 = OFF
M7
Set the averaging time to "5" for channel-1 data.
Set the averaging time to "5" for channel-2 data.
Stores the A/D converted channel-1 digital data
into D100.
Stores the A/D converted channel-2 digital data
into D101.
Performs D/A conversion with the digital data
stored in D102.
PLC.
4 Programming
4.12 Basic Program Example

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3sFx3gcFx3uFx3uc

Table of Contents