8-10
Section
Sample Program
200
8-10 Sample Program
This section provides a sample program for starting the X axis. The PCU used is
a CS1W-NC113.
8-10-1 Operation
Positioning is executed as shown in the following diagram.
Speed
Target speed: 3,000 pps
Speed #21
Acceleration time:
5,000 ms
Acceleration time
#5
Target speed: 4,000 pps
Speed #22
Deceleration time:
6,000 ms
Deceleration speed
#6
Initial speed
1,000 pps
Speed #20
Target position:
25,000 pulses
(relative)
Time
Target position:
30,000 pulses
(relative)
The values set for the acceleration and deceleration times and the actual accel-
eration and deceleration times are related to the values set for actual target
speeds and the maximum speeds in the axis parameter area. For details, refer to
Appendix B Estimating Times and Pulses for Acceleration/Deceleration
.
Data
Settings
Sequence #10
Sequence #11
Axis designation
1 (X axis)
1 (X axis)
Output code
0
0
Position designation
1 (X axis, relative
positioning)
1 (X axis, relative
positioning)
Completion code
2 (Continuous)
3 (Bank end)
Dwell time number
00
00
Acceleration time number
5
5
Deceleration time number 6
6
Initial speed number
14
14
Target speed number
15
16
8-10-2 Conditions and Details of Settings
The following table shows the settings under various conditions.
Item
Details
Unit number of PCU
Unit 1: Common parameter area: D20100 to D20102
Operating memory area: CIO 2010 to CIO 2014 (words)
(The above areas are allocated automatically according to the unit
number set.)
Common
parameters
Operating data area
designation
0
D20100
0
0
D
DM Area
pa a e e s
Beginning word of
operating data area
0
D20101
0
C
8
D00200
Axis parameter
designation
0
D20102
E
0
0
Use parameters saved in PCU.
(Default settings used for Y, Z, and
U axes.)
Details of Positioning
Sequences
Содержание CS1W-NC113 - REV 02-2008
Страница 1: ...CS1W NC113 213 413 133 233 433 Position Control Units ...
Страница 2: ...iv ...
Страница 4: ...vi ...