December 2001 PLC Program Example 7 – 61
284 LBL JOG_DIRECTION_BU 73 LBL Jog_Direction_Button
285 L M4572 74 L NP_M4572_enable_jog_mode_Posit
286 A M4151 75 A NP_M4151_electronic_handwhell
287 IFT 76 IFT
288 LB M3200 77 LB ML_XYZ45_Plus
289 = W1050 78 = PN_W1050_jog_mode_Posit_plus
290 LB M3208 79 LB ML_XYZ45_Minus
291 = W1052 80 = PN_W1052_jog_mode_Posit_minus
292 ELSE 81 ELSE
293 LB M3200 82 LB ML_XYZ45_Plus
294 = W1046 83 = PN_W1046_manuel_dircetion_plus
295 LB M3208 84 LB ML_XYZ45_Minus
296 = W1048 85 = PN_W1048_manuel_direction_minus
297 ENDI 86 ENDI
298 EM 87 EM
________________________________ Local Symbols _______________________________
ML_1_MINUS : 20 M3208
=:273
ML_1_PLUS : 13 M3200
=:262
ML_2_MINUS : 21 M3209
=:275
ML_2_PLUS : 14 M3201
=:264
ML_3_MINUS : 22 M3210
=:277
ML_3_PLUS : 15 M3202
=:266
ML_4_MINUS : 23 M3211
=:279
ML_4_PLUS : 16 M3203
=:268
ML_5_MINUS : 24 M3212
=:281
ML_5_PLUS : 17 M3204
=:270
ML_XYZ45_MINUS : 19 M3208
LB:290 LB:295
ML_XYZ45_PLUS : 12 M3200
LB:288 LB:293
________________________________ Local Labels ________________________________
INPUT_KEYBOARD : 49
45
JOG_DIRECTION_BU : 73
46
1
2 * +---------------------------------------------------+
3 * | Axis control 5,4,3,2,1, |
4 * +---------------------------------------------------+
5
6 GLOBAL NC_Axis
7
W4062 8 #define /s WL_current_rpm_control W
W4060 9 #define /s WL_old_current_rpm_control W
10
B4052 11 #define /s BL_Axis_Step B[5]
W2048 12 #define WL_Axis_Mask W
13
M3975 14 #define /s ML_servo_enable_axis M[5]
M3975 15 #define /c ML_1_servo_enable_axis M &ML_servo_enable_axis + 0
M3976 16 #define /c ML_2_servo_enable_axis M &ML_servo_enable_axis + 1
M3977 17 #define /c ML_3_servo_enable_axis M &ML_servo_enable_axis + 2
M3978 18 #define /c ML_4_servo_enable_axis M &ML_servo_enable_axis + 3
M3979 19 #define /c ML_5_servo_enable_axis M &ML_servo_enable_axis + 4
20
M3970 21 #define /s ML_clamping_Achsen M[5]
M3970 22 #define /c ML_clamping_1_axis M &ML_clamping_Achsen + 0
M3971 23 #define /c ML_clamping_2_axis M &ML_clamping_Achsen + 1
M3972 24 #define /c ML_clamping_3_axis M &ML_clamping_Achsen + 2
M3973 25 #define /c ML_clamping_4_axis M &ML_clamping_Achsen + 3
M3974 26 #define /c ML_clamping_5_axis M &ML_clamping_Achsen + 4
27
PLC program example