Channel parameters
Further entries which are made in the channel parameters [1] are required for pro-gramming spindles in the part program.
In this case, each spindle to be addressed by this channel must be declared. For this purpose, a string (axis name) and the corresponding logical axis number are defined for each spindle. The axis names of the spindle can be freely selected but they must always start with S (e.g. S, S_MAIN, S1, SPINDEL_1).
In addition, the synchronization modes must be defined spindle-specifically for the spindle M-functions (M3, M4, M5 and M19) and for the S-word. For that, the appropriate meaning of M3, M4, M5 and M19 must be switched [1]-35.
The synchronization method of the S function has no effect if a spindle M function has been programmed in the NC block. Synchronization only takes place in accordance with the settings for the spindle M function. The following priorities apply: |
If the spindles are to be allowed for in simulation mode production time calculation, the data required for this can also be preassigned spindle-specifically.
To remain compatible with standard programming, a spindle must be declared as a so-called main spindle [1]-17/-18. This main spindle can then be programmed together with specific standard functionalities (e.g. tapping and gear changing etc.) in the conventional DIN syntax. Even if there is only one spindle in the system, it must be configured as the main spindle.
Setting a flag allows the optional gear changing function to also be enabled for the main spindle [1]-19.
The configuration defined in the channel parameters [1] is the default assignment available after boot-up of the control system.
Example 1: Configuration of a single-channel system with three spindles. The spindle with axis number 6 is to be the main spindle. Gear changing of this spindle is deactivated.
Extract from channel parameters list [1]:
:
spdl_anzahl 3
:
main_spindle_ax_nr 6 -> -> ->-
main_spindle_name S |
main_spindle_gear_change 0 |
# |
spindel[0].bezeichnung S1 |
spindel[0].log_achs_nr 6 -< -< -<-
spindel[0].s_synch 0x00000001
spindel[0].m3_synch 0x00000002
spindel[0].m4_synch 0x00000004
spindel[0].m5_synch 0x00000008
spindel[0].m19_synch 0x00000001
spindel[1].bezeichnung S2
spindel[1].log_achs_nr 11
spindel[1].s_synch 0x00000001
spindel[1].m3_synch 0x00000002
spindel[1].m4_synch 0x00000004
spindel[1].m5_synch 0x00000008
spindel[1].m19_synch 0x00000001
spindel[2].bezeichnung S3
spindel[2].log_achs_nr 30
spindel[2].s_synch 0x00000001
spindel[2].m3_synch 0x00000002
spindel[2].m4_synch 0x00000004
spindel[2].m5_synch 0x00000008
spindel[2].m19_synch 0x00000001
:
- After boot-up, the spindle with the logical axis number 6 is the main spindle. It is addressed via the spindle name S and can be programmed in conventional DIN syntax or in spindle-specific syntax. Spindles S2 and S3 can be programmed only in spindle-specific syntax.
Example 2: Configuration of a single-channel system with 3 spindles. The spindle with axis number 11 is to be the main spindle. Gear changing of this spindle is deactivated.
Extract from channel parameters list [1]:
:
spdl_anzahl 3
:
main_spindle_ax_nr 11-> -> ->-
main_spindle_name S_MAIN |
main_spindle_gear_change 0 |
# |
spindel[0].bezeichnung S1 |
spindel[0].log_achs_nr 6 |
spindel[0].s_synch 0x00000001 |
spindel[0].m3_synch 0x00000002 |
spindel[0].m4_synch 0x00000004 |
spindel[0].m5_synch 0x00000008 |
spindel[0].m19_synch 0x00000001 |
spindel[1].bezeichnung S2 |
spindel[1].log_achs_nr 11-< -< -<-
spindel[1].s_synch 0x00000001
spindel[1].m3_synch 0x00000002
spindel[1].m4_synch 0x00000004
spindel[1].m5_synch 0x00000008
spindel[1].m19_synch 0x00000001
spindel[2].bezeichnung S3
spindel[2].log_achs_nr 30
spindel[2].s_synch 0x00000001
spindel[2].m3_synch 0x00000002
spindel[2].m4_synch 0x00000004
spindel[2].m5_synch 0x00000008
spindel[2].m19_synch 0x00000001
:
- After boot-up, the spindle with the logical axis number 11 is the main spindle. It is addressed via the spindle name S_MAIN and can be programmed in conventional DIN syntax or in spindle-specific syntax. Spindles S1 and S3 can be programmed only in spindle-specific syntax.
Example 3: Configuration of a two-channel system with a total of three spindles:
Channel 1: Three spindles. Spindle with axis number 11 is to be the main spindle.
Extract from channel parameters list [1]:
:
spdl_anzahl 3
:
main_spindle_ax_nr 11-> -> ->-
main_spindle_name S |
main_spindle_gear_change 0 |
# |
spindel[0].bezeichnung S1 |
spindel[0].log_achs_nr 6 |
spindel[0].s_synch 0x00000001 |
spindel[0].m3_synch 0x00000002 |
spindel[0].m4_synch 0x00000004 |
spindel[0].m5_synch 0x00000008 |
spindel[0].m19_synch 0x00000001 |
spindel[1].bezeichnung S2 |
spindel[1].log_achs_nr 11-< -< -<-
spindel[1].s_synch 0x00000001
spindel[1].m3_synch 0x00000002
spindel[1].m4_synch 0x00000004
spindel[1].m5_synch 0x00000008
spindel[1].m19_synch 0x00000001
spindel[2].bezeichnung S3
spindel[2].log_achs_nr 30
spindel[2].s_synch 0x00000001
spindel[2].m3_synch 0x00000002
spindel[2].m4_synch 0x00000004
spindel[2].m5_synch 0x00000008
spindel[2].m19_synch 0x00000001
:
Channel 2: Two spindles. Spindle with the axis number 11 is to be the main spindle.
Extract from channel parameters list [1]:
:
spdl_anzahl 2
:
main_spindle_ax_nr 11-> -> ->-
main_spindle_name S |
main_spindle_gear_change 0 |
# |
spindel[0].bezeichnung S1 |
spindel[0].log_achs_nr 6 |
spindel[0].s_synch 0x00000001 |
spindel[0].m3_synch 0x00000002 |
spindel[0].m4_synch 0x00000004 |
spindel[0].m5_synch 0x00000008 |
spindel[0].m19_synch 0x00000001 |
spindel[1].bezeichnung S2 |
spindel[1].log_achs_nr 11-< -< -<-
spindel[1].s_synch 0x00000001
spindel[1].m3_synch 0x00000002
spindel[1].m4_synch 0x00000004
spindel[1].m5_synch 0x00000008
spindel[1].m19_synch 0x00000001
- After boot-up, the spindle with the logical axis number 11 can be addressed as the main spindle via spindle name S by both channels. It can be programmed in the conventional DIN syntax or in spindle-specific syntax. Spindle S1 can also be programmed from both channels in spindle-specific syntax. Spindle S3 is available only on channel 1. This spindle is not known on channel 2.