Channel Synchronization (Setm, Clearm) - Siemens SINUMERIK 840D sl Function Manual

Synchronized actions
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Detailed description
3.7 Actions in synchronized actions
Program code
; "Travel to fixed stop" is switched on for the X axis,
; as soon as the position setpoint in the WCS is > 20 mm
; Execution of the non-modal synchronized action: With N30
N20 WHEN G71 $AA_IW[X] > 20 DO FXS[X]=1
N30 G1 F200 X100
Example: Travel to fixed stop completely via synchronized actions
Program code
; IF selection request $R1==1 AND state of the Y axis == "not to fixed stop"
; THEN: For the Y axis:
;
- Switch on FXS
;
- Traverse to position 150 mm
;
- Reduce drive torque to 10%
IDS=1 WHENEVER G71 (($R1==1) AND $AA_FXS[y]==0)) DO $R1=0 FXS[Y]=1 FXST[Y]=10
...
; IF state of the Y-Axis == "Fixed stop has been detected"
; THEN: Increase drive torque to 30%
IDS=2 WHENEVER ($AA_FXS[Y]==4) DO FXST[Y]=30
...
; IF state of the Y axis == "Successful travel to fixed stop"
; THEN: Set drive torque in accordance with setting $R0
IDS=3 WHENEVER ($AA_FXS[Y]==1) DO FXST[Y]=$R0
...
; Deselection depending on R3 and retract.
IDS=4 WHENEVER (($R3==1) AND $AA_FXS[Y]==1)) DO FXS[Y]=0 FA[Y]=1000 POS[Y]=0
...
N10 R1=0 FXS[Y]=0 G0 G90 Y0
N30 RELEASE(Y)
N50 ...
N60 GET(Y)
3.7.21

Channel synchronization (SETM, CLEARM)

Synchronization markers can be set and deleted in the channel in which the synchronized
action runs with the SETM and CLEARM commands.
Syntax
SETM(<No_marker 1> [,<No_marker 2> {, ... < No_marker n>} ] )
CLEARM(<No_marker 1> [,<No_marker 2> {, ... < No_marker n>} ] )
114
Comment
FA[Y]=200 POS[Y]=150
;
Initialization
;
Enable Y axis for traversing in synchronized actions
;
Include Y axis in the path group again
Comment
;
Traversing block of the X axis
Function Manual, 08/2018, 6FC5397-5BP40-6BA2
Synchronized actions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents