H2: Auxiliary function outputs to PLC
8.13 Block-search response
Basic Functions
446
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Explanation of example
If the number of spindles is known, outputs of the same type can be written in one part program block to reduce
program runtime.
Output of $P_SEARCH_SDIR should be made in a separate part program block because spindle positioning or
switchover to axis mode in conjunction with the gear change can cause an alarm.
If the ASUB which has been started is ended with
REPOSA
, spindle 1 remains at position 111 degrees, while
spindle 2 is repositioned at position 77 degrees.
If a different response is required, the program sequence for block search (for example) "
N05 M3 S
..." and "
N30
SPOS[2] = IC(...)
" requires special treatment.
Whether block search is active can be ascertained in the ASUB via the system variable $P_SEARCH.
$P_SEARCH==1 ; Block search active
In the case of incremental positioning after speed control operation, the path to be traversed is defined but, in
some cases, the final position reached only becomes known during positioning. This is the case, for example,
during position calibration on crossing the zero mark when switching on position control. For this reason, the
distance programmed after the zero position is accepted as the REPOS position (
REPOSA
in the ASUB).
Boundary conditions
Collected S values
The meaning of an S value in the parts program depends on the feed type that is currently active:
If the feed operation is changed (e.g. for a tool change) before output of the system variable $P_SEARCH_S, the
original setting from the target block in the parts program must be restored to avoid use of the wrong type of feed.
Collected direction of rotation
For output of the direction of rotation, the system variable $P_SEARCH_SDIR is assigned default value "-5" at
the start of the block search. This value has no effect on output.
This ensures that the last spindle operating mode is retained for a block search across program section in which
spindles are not programmed with a direction of rotation, positioning or axis mode.
The programming of M19, SPOS, and SPOSA is collected as "M-19" (internal M19) in the system variables
$P_SEARCH_SDIR as an alternative to M3, M4, M5, and M70.
For the output of "M-19", the positioning data is read internally from the system variables $P_SEARCH_SPOS
and $P_SEARCH_SPOSMODE. Both system variables can also be written to, in order, for example, to make
corrections.
G93
,
G94
,
G95
,
G97
,
G971:
The S value is interpreted as the speed
G96
,
G961:
The S value is interpreted as a constant cutting rate
Note
Because of the assignments described above (e.g. M[<n>] = $P_SEARCH_SDIR[<n>]), the
values "–5" and "–19" generally remain hidden from the user and only have to be observed in
the case of special evaluation of the system variables in the ASUB.
Содержание 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 ...