638
8 APPLICATION INSTRUCTION
8.20 Drum Sequence
• The current value (s2) of the counter is compared with the data table with "n" lines starting from (s1) (which occupies "n"
lines
2 devices), and consecutive "n" outputs starting from (d) are controlled to on or off during one rotation.
• Write the following data to (s1) to (s1)+2(n)-1 in advance by a transfer instruction: For example, store 16-bit rising point data
in even-numbered devices and 16-bit falling point data in odd-numbered devices.
• The following figure shows the output patterns for device points (n) starting from (d) when the command input is set to on.
Each rising point/falling point can be changed by overwriting the data in (s1) to (s1)+2(n)-1.
Precautions
• When specifying the nibble of a bit device to (s1), specify a multiple of 16 (0, 16, 32, 64 ...) as a device number and always
specify K4 for the number of digits.
• The value of (n) determines the number of target outputs (1
(n)
64).
• Even if the command input is set to OFF, the ON/OFF status of outputs does not change.
Operation error
Rising point
Falling point
Target output
Data value (example)
Data value (example)
(s1)
40
(s1)+1
140
(d)
(s1)+2
100
(s1)+3
200
(d)+1
(s1)+4
160
(s1)+5
60
(d)+2
(s1)+6
240
(s1)+7
280
(d)+3
(s1)+2(n)-2
(s1)+2(n)-1
(d)+n-1
Error code
(SD0/SD8067)
Description
2820H
The number of device points specified by (s1) or (d) is insufficient.
3405H
The value specified by (n) is outside the following range.
1 to 64
ABSD
RST
X1
(s2)
K360
(s2)
(s1)
(s2)
(d)
(n)
(s2)
X1
Rotation angle signal of 1°/pulse
Command
input
40
140
100
200
160
240
280
180
360
60
0
(d)+3
(d)+2
(d)+1
(d)
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: ......