D-68
Pulse + counting direction mode (D1044=1): user can use pulse input and counting
direction to execute counting up or down or signal. A terminal of PG feedback card needs
to be defined as pulse input, and B terminal as switching between counting up or down.
Make sure that
A
,
B
and GND are grounding.
Pulse + internal flag (M1030) mode (D1044=2): user can use pulse input and internal flag
(M1030). A terminal of PG feedback card needs to be used for pulse input, and internal
flag (M1030) is used for switching between counting up or down. Only A is needed for this
mode and make sure that
A
, and GND are grounding.
Program Example:
1.
Assume that when M100=ON, it is set to A-B phase mode. When M101=ON, it is set to
Pulse + counting direction mode. When M102=ON, it is set to Pulse + internal flag (M1030)
mode.
2.
M1030 is used to set to count up (OFF) and count down (ON).
3.
If M0 goes from OFF to ON, DHSCS command starts to execute the comparison of high-
speed counter. When C235 goes from H’2 to H’3 or from H’4 to H’3, M3 will be always be
ON.
4.
If M1 goes from OFF to ON, DHSCS command starts to execute the comparison of high-
speed counter. When C235 goes from H’1004F to H’10050 or from H’10051 to H’10050,
M2 will be always be ON.
5.
M1028: it is used to enable(ON)/disable(OFF) the high-speed counter function.
6.
M1029: it is used to clear the high-speed counter.
7.
M1018: it is used to start high-speed counter function. (when M1028 is ON).
8.
D1025: the low word of high-speed counter C235.
9.
D1026: the high word of high-speed counter C235.