Mitsubishi Electronics FX3G User Manual

Page of 964
406
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.4 FNC 63 – INCD / Incremental Drum Sequencer
Operation
1) Timing chart
Suppose that the following data is written in advance by a transfer instruction:
2) When the command contact turns ON, the output M0 turns ON.
3) When the current value of C0 reaches the comparison value D300, the output M0 is reset. "1" is added to the
count value of the process counter C1, and the current value of the counter C0 is reset.
4) The next output M1 turns ON.
5) When the current value of C0 reaches the comparison value D301, the output M1 is reset. "1" is added to the
count value of the process counter C1, and the current value of the counter C0 is reset.
6) The current value is compared for up to "n (K4)" outputs in the same way (1 
≤ n ≤ 64).
7) When the final process specified by "n" is finished, the execution complete flag M8029 turns ON and remains ON
for one operation cycle.
M8029 is used for many instructions as the instruction execution complete flag. Use M8029 as a contact just after
a corresponding instruction.
8) The program execution returns to the beginning, and outputs are repeated.
Caution
1. When specifying digits of a bit device as 
As a device number, specify a multiple of 16 (0, 16, 32, 64 ...).
2. Number of occupied devices
Two devices are occupied from a device specified as 
. Make sure not to use devices used in another control.
Device storing data
Output
Data value (example)
Example
D300 = 20
M0
+ 1
D301 = 30
+ 1
M1
+ 2
D302 = 10
+ 2
M2
+ 3
D303 = 40
+ 3
M3
+ n 
− 1
+ n 
− 1
X000
FNC 63
INCD
D300
C0
M0
K4
S
S
C0
K9999
M8013
1 sec clock
n
  
S
1
  D
  
S
1
  D
  
S
1
  D
  
S
1
  D
  
S
1
  D
X000
Current
value of
C1
M0
M1
M2
M3
M8029   Complete flag
20
30
10
40
20
0
20
Current
value of
C0
1
2
3
0
1
0
1
  
D
1
  
S
1
  
D
1
  
S
2