Mitsubishi Electronics MELSEC-F Manuel D’Utilisation

Page de 504
E-63
8 Examples of Practical Programs
8.4 Program to Initialize FX3U-4DA (Factory Default)
A
Comm
on I
te
ms
B
FX
3U
-4AD
FX
3UC
-4
A
D
C
FX
3U
-4A
D
-A
D
P
D
FX
3G
-2A
D
-BD
E
FX
3U
-4DA
F
FX
3U
-4D
A
-AD
P
G
FX
3G
-1D
A
-BD
H
FX
3U
-3
A-
ADP
I
FX
3U
-4
A
D
-P
T
       
         
   -
A
D
P
J
FX
3U
-4A
D
-P
TW
     
        
      -
A
D
P
FX
3G
/FX
3U
/FX
3UC
 PLC User's Manual - Analog Control Edition
FX
3U
-4DA (4-channel Analog Output)
8.4
Program to Initialize FX
3U
-4DA (Factory Default)
To initialize FX
3U
-4DA, execute the following program.
This will return the output mode (BFM #0), the offset data (BFM #10 to #13) and the gain data (BFM #14 to
#17) will be to the factory default status state.
1. Conditions
The sequence program described in this section is under the following conditions.
1) System configuration
FX
3U
-4DA (unit No.0) should be connected to the FX
3U
 Series PLC.
2) Device assignment
2. Example of sequence program
• For  FX
3U
, FX
3UC
 Series PLCs
• For  FX
3G
, FX
3U
, FX
3UC
 Series PLCs
3. Cautions regarding initializing
• During initialization, output is stopped, and H0000 is automatically written in the output status (BFM #6).
At the completion of initialization, the output status (BFM #6) will automatically change to H1111, and the 
output will be restarted.
• It takes approximately 5 seconds to complete initialization. Do not set (write) data in the buffer memory 
during the period.
• Priority is given to the setting of the change prohibition mode (BFM #19).
• Once initialization is completed, the value in BFM #20 will automatically change to "K0".
Device
Description
X000
4AD initialization command
Completion of table output from channel 1
Output to Y000
Y001
M30
Y000
Readout table output completion flag and table
output error
M1
FNC 228
LD< >
K0
D102
Output to Y001 when table output error occurs
  FNC 78
  FROM
K89
K2
K0
D101
  FNC  12
    MOV
D101
K4M30
X000
  FNC 12
  MOV
K1
U0\G20
P
The 4DA will be initialized.
(BFM #0 to #3098 will be cleared.)
4DA initialization command
X000
The 4DA will be initialized.
(BFM #0 to #3098 will be cleared.)
4DA initialization command
  FNC 79
  TO
K20
K1
P
K0
K1