642
8 APPLICATION INSTRUCTION
8.20 Drum Sequence
• Suppose that the following data is written in advance by a transfer instruction:
• Timing chart
• When the command contact turns on, the output M0 turns on.
• 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.
• The next output M1 turns ON.
• 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.
• The current value is compared for up to "n (K4)" outputs in the same way (1
(n)
64).
• When the final process specified by (n) is finished, the execution complete flag SM8029 turns on and remains on for one
operation cycle. SM8029 is used for many instructions as the instruction execution complete flag. Use SM8029 as a contact
just after a corresponding instruction.
• The program execution returns to the beginning, and outputs are repeated.
Precautions
When specifying the nibble of a bit device to (s1), specify a multiple of 16 (0, 16, 32, 64 ...) as a device number.
Operation error
Device storing data
Output
Data value (example)
Example
(s1)
D300=20
(d)
M0
(s1)+1
D301=30
(d)+1
M1
(s1)+2
D302=10
(d)+2
M2
(s1)+3
D303=40
(d)+3
M3
(s1)+(n)-1
(d)+(n)-1
Error code
(SD0/SD8067)
Description
2820H
The number of device points specified by (s1), (s2), or (d) is insufficient.
3405H
The value specified by (n) is outside the following range.
1 to 64
X0
C1
M0
M1
M2
M3
SM8029
20
30
10
40
20
0
20
C0
1
2
3
0
1
0
1
Complete flag
Current
Value
Current
Value
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......