13
4-2-7 Creating an Array .............................................................................. 79
4-2-8 Entering Programming Code ............................................................. 80
4-2-9 Checking the Operation of the Program ............................................ 81
4-2-10 Referring Values of Array Variables .................................................. 83
5 Motion FB Programming ......................................................... 84
5-1 Motion FB Programming .................................................................................. 85
5-1-1 Motion FB Programming .................................................................... 85
5-1-2 Programming Procedure ................................................................... 85
5-2 Adding a Servo Drive and Setting the Parameters ......................................... 86
5-2-1 Registering a Servo Drive.................................................................. 86
5-2-2 Registering the Axis ........................................................................... 87
5-2-3 Setting the Axis Parameters .............................................................. 87
5-3 Creating a Program ......................................................................................... 89
5-3-1 Overview of the Ladder Program ...................................................... 89
5-3-2 Motion FBs to Use ............................................................................. 89
5-3-3 Writing the Ladder Program .............................................................. 90
5-4 Data Tracing .................................................................................................... 93
5-4-1 Checking the Operation with Data Traces ......................................... 93
5-5 3D Simulation ................................................................................................... 95
5-5-1 Starting 3D Simulation ....................................................................... 95
6 ST Programming ..................................................................... 97
6-1 Overview of ST Programming ......................................................................... 98
6-1-1 Advantages of ST Language ............................................................. 98
6-1-2 ST Programs Including Constructs .................................................... 98
6-1-3 Structure of ST and Example ............................................................ 99
6-1-4 Operators ........................................................................................... 99
6-2 NX1P Programming in ST ............................................................................. 100
6-2-1 Writing an ST Program for NX1P .................................................... 100
6-3 ST Programming Exercise ............................................................................. 101
6-3-1 Exercise of Numerical Calculation Programming ............................ 101
6-3-2 Programming Procedures................................................................ 102
6-3-3 Checking the Program ..................................................................... 104
6-3-4 Checking the Operation of the ST Program .................................... 104