Model Code; Basic Program Example - Mitsubishi Electric MELSEC-FX3S Series Manual

Table of Contents

Advertisement

FX
/FX
/FX
/FX
/FX
3S
3G
3GC
3U
FX
-4DA-ADP (4-channel Analog Output)
3U
4.7

Model Code

1. Description of setting
When the 4DA-ADP is connected, model code "2" is stored in the corresponding special data register.
The following table shows the special data registers that store the model code:
• FX
Series PLC
3S
Special data register
D8289
• FX
/FX
3G
3GC
Special data register
1st
D8289
• FX
/FX
3U
3UC
1st
D8269
Use the special data registers above to check whether 4DA-ADP is connected or not.
2. Program Example (For FX
FNC224
D8269
LD=
4.8

Basic Program Example

Create the following basic program example to output D/A converted analog data.
The following program will set channel 1 of the 3rd
current output mode, and will set digital data in D100 and D101 for D/A conversion.
M8001
Normally
OFF
M8000
Normally
ON
M8000
Normally
ON
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 D100 and D101.
*1.
"1st" for the FX
F-26
PLC User's Manual - Analog Control Edition
3UC
Model code
Series PLC
2nd
D8299
Model code
Series PLC
Special data register
2nd
3rd
D8279
D8289
/FX
3U
3UC
K2
M8280
M8284
M8281
M8285
FNC 12
D100
D8280
MOV
FNC 12
D101
D8281
MOV
/FX
/FX
PLC.
3S
3G
3GC
Description
Description
4th
D8299
Model code
Series PLC)
Checks the model code
Y007
of the 1st analog special
adapter.
*1
adapter to the voltage output mode and channel 2 to
Sets the output mode of channel 1 to the voltage
output mode (0 V to 10 V).
Sets the output holding function for channel 1.
Sets the output mode of channel 2 to the current
output mode (4 mA to 20 mA).
Cancels the output holding function for channel 2.
Performs D/A conversion with the digital data stored
in D100 for channel 1.
Performs D/A conversion with the digital data stored
in D101 for channel 2.
4 Programming
4.7 Model Code
Initial value: K2
Numeric data type: Decimal (K)
Description

Advertisement

Table of Contents
loading

Table of Contents