H2: Auxiliary function outputs to PLC
8.13 Block-search response
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
445
DB21, ... DBX32.6 = 1 (last action block active)
More detailed information on ASUB, block search, and action blocks is to be found in:
References:
Function Manual, Basic Functions; BAG, Channel, Program Operation, Reset Response (K1), Chapter:
"Program test"
Example
Block search for contour with suppression of output of the spindle-specific auxiliary functions and start of an
ASUB after output of action blocks.
Parameter assignment: MD11450 $MN_SEARCH_RUN_MODE, bit 2 = 1
After the block search on N55, the ASUB is started.
Parts program:
ASUB:
Note
The contents of the system variables $P_S, $P_DIR and $P_SGEAR may be lost after block
search due to synchronization operations.
Program code
Comment
N05 M3 S200
; Spindle 1
N10 G4 F3
N15 SPOS=111
; Spindle 1 is positioned to 111 degrees in the ASUB
N20 M2=4 S2=300
; Spindle 2
N25 G4 F3
N30 SPOS[2]=IC(77)
; Spindle 2 traverses incrementally by 77 degrees
N55 X10 G0
; Destination block
N60 G4 F10
N99 M30
Program code
Comment
PROC ASUP_SAVE
MSG ("Output of the spindle functions")
DEF INT SNR=1
AUSG_SPI:
M[SNR]=$P_SEARCH_SGEAR[SNR]
; Output gear level.
S[SNR]=$P_SEARCH_S[SNR]
; Output speed (for M40, a suitable
gear level is determined).
M[SNR]=$P_SEARCH_SDIR[SNR]
; Output direction of rotation,
positioning or axis mode.
SNR=SNR+1
; Next spindle.
REPEAT AUSG_SPI P=$P_NUM_SPINDLES-1
; For all spindles.
MSG("")
REPOSA
RET
Содержание 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 ...