Counter C - Mitsubishi Electric M800VW Series Programming Manual

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
4 Explanation of Devices
4.4 Detailed Explanation of Devices

4.4.9 Counter C

The counter counts up and detects the rising edge of the input conditions. Thus, the count will not take place when the input
conditions are ON.
Counter C
 The value is set with a decimal, and can be designated from 1 to 32767. The data register D or file register R data can
be used as the setting value.
 The counter count value will not be cleared even if the input conditions turn OFF. The counter count value must be
cleared with the RST instruction.
 When the bit selection parameter is set, the counter current value (count value) will be held even when the power is
turned OFF. Note that some cannot be held depending on the version of CNC.
With the device C, the contact/coil is handled as bit device, and the current value (counter value) is handled as word device.
In the function instructions described after, the word device C indicates the current value (counter value) even if there is no
description about it.
The counter C setting value can be set with the following two methods.
 Method to validate the setting value (Kn) programmed with the sequence program (Fixed counter)
 Method to validate the setting value set from the setting and display unit (Variable counter)
(Note that even when this method is used, the setting value (Kn) must be programmed in the sequence program. In this
case, the Kn value will be ignored during the operation. When a data register D is used for the setting value, the contents
of the data register D will be the setting value regardless of the parameter.)
The number of points of the fixed counter and variable counter in all of the counter C points can be set with the bit
selection parameter.
Variable counter
Number
Range
of points
0
40
(0 to 39)
80
(0 to 79)
120
(0 to 119)
160
(0 to 159)
200
(0 to 199)
240
(0 to 239)
256
(0 to 255)
A bit selection parameter is provided as a switch for the variable counter to invalidate all of the setting values set from the
setting display unit and validate the setting values in the sequence program. (Refer to the explanation on the timer.)
Bit selection (#6454)
Bit 7
Bit 6
Bit 5
Bit 4
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
45
Remarks
Use all points as fixed counter
Use range other than that
shown on left as fixed counter
Use 256 points as variable counter
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents