
B-61813E/03 CONNECTIONS 8. HIGH SPEED COUNTER MODULE
−95−
(2) Information related to counting
Counting starts and stops under the conditions listed below.
CE of CTRL CSP of external
signal
PSEL of external
signal
CSP of STTS
Count (A/B phase pulse) 1 Contact "Open" Open 0
Count (+/- pulse) 1 Contact "Open" Connected to 0 V 0
Counting stop (1) 0 ×××
Counting stop (2) × Contact "Closed" × 1
• Contact "Closed" means that 24 V is applied to the CSP
terminal. (1 or POS)
• Contact "Open" means that the CSP terminal is open. (0 or
NEG)
•× means that the bit can be either 0 or 1. (× for the CSP bit of
the STTS means that the bit corresponds to the status of the
CSP bit of the external signal.)
8.8.3 Setting data
Data for some models (such as the FS15 and FS18) is in the opposite
order to that of the NC data. In this case, convert (rearrange) the data in
byte units.
[Example of setting]
CTRL 76543210
DTOH PRS SELECT
DTOM
DTOL
Example 1 : To preset the counter preset register with a specific value
(the counter is also set to this value), follow the steps
below.
(1) Preset the DTOH, DTOM, and DTOL with a desired value.
(2) Set SELECT to 001.
(3) Reverse the setting of the PRS (from 0 to 1 or from 1 to 0).
(4) Wait for two scanning periods.
• Another method for presetting the counter is to use the MKS
external signal (see Section 3.1). It takes a maximum of 5 ms
to preset using the first method, while it takes only a
maximum of 100
µ
s to preset using the MKS external signal.
Example 2 : To set the comparison control register with the setting (0
or 1) of CMA, CMB, and CMC, follow the steps below.
(1) Set DTOH bits 0, 1, and 2 to the desired data.
(2) Set SELECT to 000.
(3) Reverse the setting of the PRS (from 0 to 1 or from 1 to 0).
(4) Wait for two scanning periods.