5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-259
4. Example
Purpose:
T h-speed ors ar Wh e
the output devices specified are se g
wo hig comparat e set.
set/re
en the conditions s
t. The external wirin
t are met, users can check whether
required is shown below.
FP0 is connected to A0.
RP0 is connected to B0.
C2 is connected to -24G.
Y2 is connected to X0.
S/S2 is connected to +24V.
If the program is executed, the pulses output by the first axis will be A/B-phase pulses, the motion
control function block T_CmpRstOut will be started, and the states of output devices will be read.
After M53 is set to ON, a high-speed counter will be started.
After M1 is set to ON, high-speed comparator 0 will be started.
Setting high-speed comparator 0: If the number of pulses output by the first axis is greater than or
equal to 50,000, Y2 will be set to ON.
After M10 is set to ON, high-speed comparator 1 will be started.
Setting high-speed comparator 1: If the value in C200 is equal to 5,000, the value in C200 will be