10. High-speed Input/Output Design Examples Control Program: X1 M1029 Y0 will output pulses. Max. Frequency: 10000Hz Number of Pulses:100000 Acceleration/Deceleration Time: 200ms M1029 Servo motor rotates 10 times then stop. M1029 = ON for 5 sec then be reset by T0. T0 M1000 When proximity switch X0 detects 100 pulses,Y4 = ON and the cutter will start to cut, then content in C235 will be cleared. Y4 T1 The cutter will perform cutting action for 1sec and then be reset.. X2 M1334 When X2 = ON, the pulse output is paused. Program Description:
z When START is pressed (X1 = ON), the servo motor will start at the speed of 0.1 r/s (f = 1000Hz) and the speed will be increased by 0.1 r/min every 20ms. After 200ms, the speed will be 1r/s (f = 10000Hz) and then remain constant. When the set value is nearly reaching, the servo motor will decelerate and stop rotating when the set value is reached. z When PAUSE is pressed (X2 = ON), the servo motor will stop rotating, and the PV in C235 will not be stored. When X2 = OFF, the servo motor will start rotating again and stop when set value is reached. z When the servo motor rotates once, the proximity switch will detect 10 pulses.
When the servo motor rotates 10 times (100 pulses), it will stop rotating and the system will perform cutting process for 1 sec. DVP-PLC Application Examples 10-12 Device Function X1 X1 = ON when START is pressed. X2 X2 = ON when PAUSE is pressed. Y0 High-speed pulse output Y4 Cutter C235 High-speed counter DPLSR K10000 K100000 K200 Y0 TMR T0 K50 RST M1029 DCNT C235 K100000 DHSCS K100 C235 Y4 DLD>= C235 K100 RST C235 TMR T1 K10 RST Y4