K1: Mode group, channel, program operation, reset response
9.15 Replacing functions by subprograms
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
653
9.15.3.5
Example: Gear stage change
In the subprogram, all commands to change the gear stage
M40
,
M41
...
M45
are replaced.
Parameterization
Main program
Machine data
Meaning
MD15700 $MN_LANG_SUB_NAME = "LANG_SUB"
Subprogram
MD15702 $MN_LANG_SUB_PATH = 0
Manufacturer's folder
MD22080 $MC_AUXFU_PREDEF_SPEC[12] = 'H21'
M41: Output prior to motion
MD22080 $MC_AUXFU_PREDEF_SPEC[13] = 'H21'
M42: Output prior to motion
MD22080 $MC_AUXFU_PREDEF_SPEC[13] = 'H21'
M43: Output prior to motion
MD22080 $MC_AUXFU_PREDEF_SPEC[15] = 'H21'
M44: Output prior to motion
MD22080 $MC_AUXFU_PREDEF_SPEC[16] = 'H21'
M45: Output prior to motion
MD30465 $MA_AXIS_LANG_SUB_MASK[AX5] =
'H0001'
Replace gear change commands
Programming
Comment
PROC MAIN
N110 COUPON(S2,S1)
;
Close the synchronous spindle coupling
N120 G01 F100 X100 S5000 M3 M43
;
Subprogram call due to M43
N130 M40
;
Switch-on automatic gear stage change
N140 M3 S1000
;
;
;
Subprogram call due to S1000
and as a result initiated automatic
gear stage change
N9999 M30
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...