Mitsubishi Electronics MELSEC-F Manuel D’Utilisation

Page de 504
E-60
8 Examples of Practical Programs
8.3 Example of Program for Table Output Operation (Pattern Output Operation)
FX
3G
/FX
3U
/FX
3UC
 PLC User's Manual - Analog Control Edition
FX
3U
-4DA (4-channel Analog Output)
8.3
Example of Program for Table Output Operation (Pattern Output 
Operation)
This section describes a practical program that uses the table output function.
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) Output mode
Channel 1 should be set to mode 0 (voltage output, -10 V to +10 V).
Channel 3 should be set to mode 2 (current output, 0 mA to 20 mA).
Channels 2 and 4 are out of use.
3) Convenient function
The table output function is used.
4) Device assignment
* It is necessary to separately create the data table.
→ For a detailed description of creation of the data table, refer to Section 6.2.
2. Example of sequence program
• For  FX
3U
, FX
3UC
 Series PLCs
*1.
The output mode setting is retained in the EEPROM of the FX
3U
-4DA. For this reason, even if the
sequence program is deleted, the previously set functions will still be valid.
*2.
After setting the output mode, set the data writing time (waiting time) to 5 seconds or more for each
setting. After the output mode is specified, and the same output mode is used, it is not necessary to
set the output mode and the waiting time (T0 K50).
Device
Description
Input
X000
Start of table output function for channels 1 and 3
X001
Stop of table output function
X002
Restart of table output function for channel 3
D10
Data to be output from channel 1
D11
Data to be output from channel 2
D12
Data to be output from channel 3
D13
Data to be output from channel 4
D5000 or more Data table *
Output
Y000
Completion of output of table from channel 1
Y001
Table output error
M0
Data table transfer complete
M1
During output of table from channel 3
D100
Data table transfer command
D101
Table output completion flag
M8002
   FNC 12
   MOV
HF2F0
U0\G0
P
M8000
K50
T0
Specification of output modes of channels 1 to 4
Initial pulse
RUN monitor
*1
*2
Continued