1988
36 COUNTER/TIMER FUNCTION BLOCKS
36.4 Counter Function Block
Processing details
■
Operation processing
• The number of rising edges (status changes (off to on)) of (s1) is counted. Counting is not performed while (s1) remains on.
The counting starts from the (s3) value. When it reached the (s2) value, (d2) turns on. The current value is stored in (d1).
• The valid setting range of (s2) is 0 to 32767.
• The valid setting range of (s3) is -32768 to 32767. Note that if a negative value is specified, 0 will be used as the initial
value.
• To reset the current value (d1), reset (s1) of FB directly.
Ex.
Label name: COUNTER_FB_M_1
[Ladder program]
[ST program]
RST(M0, COUNTER_FB_M_1.Coil)
[Ladder example]
[Timing chart]
Operation error
There is no operation error.
M0
ENO
d
EN
RST
COUNTER_FB_M_1.Coil
M0
Coil
10
ValueOut
Preset
1
Status
ValueIn
M10
D10
COUNTER_FB_M
1
3
2
ON
ON
10
M10
M0
OFF
OFF
D10
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......