December 2001 PLC Program Example 7 – 53
T57 106 TR_2_servo_supervison &TS_2_servo_supervison + 48
T10 107 TS_3_servo_supervison 10
T58 108 TR_3_servo_supervison &TS_3_servo_supervison + 48
T11 109 TS_4_servo_supervison 11
T59 110 TR_4_servo_supervison &TS_4_servo_supervison + 48
T12 111 TS_5_servo_supervison 12
T60 112 TR_5_servo_supervison &TS_5_servo_supervison + 48
T13 113 TS_6_servo_supervison 13
T61 114 TR_6_servo_supervison &TS_6_servo_supervison + 48
T14 115 TS_7_servo_supervison 14
T62 116 TR_7_servo_supervison &TS_7_servo_supervison + 48
T15 117 TS_8_servo_supervison 15
T63 118 TR_8_servo_supervison &TS_8_servo_supervison + 48
119
T20 120 TS_gear_timeout 20
T68 121 TR_gear_timout &TS_gear_timeout + 48
T21 122 TS_grear_toggel_all 21
T69 123 TR_grear_toggel_all &TS_grear_toggel_all + 48
T22 124 TS_grear_toggel_right 22
T70 125 TR_grear_toggel_right &TS_grear_toggel_right + 48
27 #define /g GLB_NC.Def
1 #type
2
3 *+----------------------------------------------------+
4 *| Spindle |
5 *+----------------------------------------------------+
6
M4000 7 NP_M4000_S_in_position M4000
M4001 8 NP_M4001_S_analog_not_in_ramp M4001
M4002 9 NP_M4002_S_analog_0_V M4002
10
M4005 11 PN_M4005_S_M03_analog_volt_status M4005
M4006 12 PN_M4006_S_M04_analog_volt_status M4006
M4007 13 PN_M4007_S_M05_0V_status M4007
M4012 14 PN_M4012_S_close_loop_open M4012
15
16 *+----------------------------------------------------+
17 *| Strobe signal from NC to PLC |
18 *+----------------------------------------------------+
19
M4070 20 NP_M4070_strobe_G_code M4070
M4071 21 NP_M4071_strobe_S_code M4071
M4072 22 NP_M4072_strobe_M_function M4072
23
24 *+----------------------------------------------------+
25 *| Quit NC strobe signal |
26 *+----------------------------------------------------+
27
M4090 28 PN_M4090_quit_G_code M4090
M4091 29 PN_M4091_quit_S_code M4091
M4092 30 PN_M4092_quit_M_function M4092
31
32 *+----------------------------------------------------+
33 *| Strobe signal from PLC to NC |
34 *+----------------------------------------------------+
35
M4130 36 PN_M4130_Strobe_PLC_pos_spindle M4130
M4134 37 PN_M4134_strobe_G_step_rpm M4134
M4010 38 PN_M4010_S_swing_right M4010
M4009 39 PN_M4009_S_swing_left M4009
40 *+----------------------------------------------------+
41 *| NC modes and status |
42 *+----------------------------------------------------+
43
M4150 44 NP_M4150_manuel_mode M4150
M4151 45 NP_M4151_electronic_handwhell M4151
M4155 46 NP_M4155_reference_mode M4155
M4156 47 NP_M4156_Softkey_Manual_Operation M4156
M4172 48 NP_M4172_1_PLC_after_power_on M4172
M4173 49 NP_M4172_1_PLC_after_compile M4173
M4174 50 NP_M4172_1_PLC_after_MP_edit M4174
51
52 *+----------------------------------------------------+
53 *| Arithim or modul error in PLC |
54 *+----------------------------------------------------+
55
M4203 56 NP_M4203_error_Modul_9xxx M4203
57
58 *+----------------------------------------------------+
59 *| Marker influenzend bei machine parameter |
60 *+----------------------------------------------------+
61
M4300 62 NP_M4300_PowerFailOn_MP4310.0_Bit_00 M4300
63
PLC program example