Mitsubishi Electronics FX1S manual Bit counters, Availability of devices, Normal 32 bit Counters

Models: FX1S

1 120
Download 120 pages 31.35 Kb
Page 45
Image 45

FX Series Programmable Controllers

Basic Program Instructions 2

2.16.2Normal 32 bit Counters

The 32 bit counter C200 counts (up-count, down-count) according to the ON/OFF state of M8200. In the example program shown on the previous page C200 is being used to count the number of OFF ~ ON cycles of input X4.

The output contact is set or reset depending on the direction of the count, upon reaching a value equal (in this example) to the contents of data registers D1,D0 (32 bit setting data is required for a 32 bit counter).

The output contact is reset and the current value of the counter is reset to ‘0’ when input X3 is turned ON.

32 bit counters:

• For more information on 32 bit counters please see page 4-21.

2.16.3High Speed Counters

High speed counters have selectable count directions. The directions are selected by driving the appropriate special auxiliary M coil. The example shown to the right works in the following manner; when X10 is ON, counting down takes place. When X10 is OFF counting up takes place.

In the example the output contacts of counter CΔΔΔ and its associated current count values are reset to “0” when X11 is turned ON. When X12 is turned ON the driven counter is enabled. This means it will be able to start counting its assigned input signal (this will not be X12 - high speed counters are assigned special input signals, please see page 4-22)

X10

M8

 

X11

C

RST

X12

C

 

 

K/D

C

Y2

 

.

Availability of devices:

• Not all devices identified here are available on all programmable controllers. Ranges of active devices may vary from PLC to PLC. Please check the specific availability of these devices on the selected PLC before use. For more information on high speed counters please see page 4-22. For PLC device ranges please see chapter 8.

2-19

Page 45
Image 45
Mitsubishi Electronics FX1S manual Bit counters, Availability of devices, Normal 32 bit Counters, High Speed Counters