Relative Method - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Relative method

INCD
This instruction creates many output patterns using a pair of counters.
Ladder diagram
(s1)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Head word device number storing the set value
(s2)
Head counter number for monitoring current value is monitored
(d)
Head bit device number to be output
(n)
Number of output bit devices
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(s1)
(s2)
(d)
(n)
*1 Only C can be used.
*2 T, ST, C cannot be used.
Processing details
• The current value of a counter is compared with the data table having "n" lines starting from (s1) (which occupies "n" lines 
1 device). When the value is equivalent to the table data, the current output is reset, and the next output is controlled. In this
way, the ON/OFF status of specified outputs is controlled in turn.
■Operation example
• The following ladder example shows the operation. (s2) occupies two points. In the following timing chart, C0 and C1
correspond to the two points.
X0
INCD
D300
SM412
1 sec clock
• Suppose that the following data is written in advance by a transfer instruction:
Device storing data
(s1)
(s1)+1
(s1)+2
(s1)+3
(s1)+(n)-1
7 APPLICATION INSTRUCTION
542
7.15 Drum sequence
(s2)
(d)
(n)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
*1
*2
C0
M0
K4
K9999
C0
Data value (example)
D300=20
D301=30
D302=10
D303=40
Structured text
ENO:=INCD(EN,s1,s2,n,d);
Range
1 to 64
Double word Indirect
U\G
Z
LC
LZ
Output
(d)
(d)+1
(d)+2
(d)+3
(d)+(n)-1
Data type
Data type (label)
32-bit signed binary
ANY32
32-bit signed binary
ANY32
Bit
Bit
16-bit signed binary
ANY16
Constant
specification
K, H
E
Example
M0
M1
M2
M3
Others
$

Advertisement

Table of Contents
loading

Table of Contents