Kv -300, 3 positioning control, Program example – KEYENCE Visual KV Series User Manual
Page 326

6.3 Positioning Control
KV
-300
KV-10/80
3-302
6
Chapter 6 Interrupts, High-speed Counters, Positioning Control
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
STEPPING MOTOR CONTROL PROGRAM (ORIGIN, FORWARD, REVERSE LIMITS)
SPECIFICATION
PULUSE OUT==500 FOR/REV=502 ORIGIN=0002 FOR/END=0006 FOR/END=0004
MANUAL SW: FORWARD=0008 REVERSE=0009 ORIGIN SW=0007
AUTO OPERATION START=0000
ENABLES INTERRUPT & RESETS ORIGIN POSITIONING FRAG
MANUAL SWITCHES: FORWARD=0008 REVERSE=0009
LIMIT SWITCHES
FORWARD IN ADVANCE
STOP FORWARDING
POSITIONING ORIGIN WHILE REVERSING SLOWLY
* * * * * * * * * * * * * * * * * * * * * * * * * * ORIGIN * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2008
1200
(RES)
< EI >
0008
0009
2309
0006
0502
(SET)
DIFU
1100
0009
0008
2309
0004
0502
(RES)
DIFU
1101
1100
1101
< DW >
< DW >
< DW >
< DW >
< DW >
1103
DIFU
#00600
DM9408
#04000
DM9409
#00100
DM9410
#00001
DM9411
#00000
DM9412
0008
0009
1105
DIFU
0007
1205
DIFU
1205
< DW >
< DW >
< DW >
< DW >
< DW >
1300
DIFU
#00300
DM9408
#03000
DM9409
#00250
DM9410
#00000
DM9411
#03500
DM9412
0502
(SET)
1200
(SET)
1203
< DW >
< DW >
< DW >
< DW >
< DW >
1301
DIFU
#00500
DM9408
#05000
DM9409
#00000
DM9410
#00001
DM9411
#00000
DM9412
0502
(RES)
1200
(RES)
1203
DIFU
1200
1201
1202
2309
ON
2309
OFF
1201
1202
Program example
Sets start frequency, run frequency,
and acceleration/deceleration time.
Start frequency: 600 Hz
Run frequency: 4 kHz
Acceleration/deceleration time:
100 ms
Output pulse count: 65536
To return to the origin, first goes
forward and then rearward. Stops
when origin limit (0002) turns ON.
For forward operation, the following
parameters are set:
Start frequency: 300 Hz,
Run frequency: 3 kHz,
Acceleration/decekeratuib time: 250 ms,
Output pulse count: 3500.
For rearward operation, the following
parameters are set:
Start frequency: 50 Hz
Run frequency: 500 Hz
Acceleration/deceleration time: 0 ms
Output pulse count: 65536
KVNKA Chap 06.p65
08.3.11, 0:10 PM
302