Read And Write Nc Machine And Nc Setting Data - Siemens Sinumerik 840D sl Programming Manual

Job planning
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

Motion synchronous actions
10.3 Main run variables for synchronized actions
Arithmetic parameters
Using arithmetic parameters allows for:
storage of values that you want to retain beyond the end of program, NC reset, and Power
On
display of stored value in the R parameter display.
Examples
Program code
WHEN $AA_IM[X]>=40.5 DO $R10=$AA_MM[Y]
G01 X500 Y70 F1000
STOPRE
IF R10>20
Program code
SYG_AS[2]=X
SYG_IS[1]=1
WHEN $AA_IM[SGY_AS[2]]>10 DO $R3=$AA_EG_DENOM[SYG_AS[1]], SYG_AS[2]]
WHEN $AA_IM[SGY_AS[2]]>12 DO $AA_SCTRACE[SYG_AS[2]]=1
SYG_AS[1]=X
SYG_IS[0]=1
WHEN $AA_IM[SGY_AS[1]]>10 DO $R3=$$MA_POSCTRL_GAIN[SYG_IS[0]],SYG_AS[1]]
WHEN $AA_IM[SGY_AS[1]]>10 DO $R3=$$MA_POSCTRL_GAIN[SYG_AS[1]]
WHEN $AA_IM[SGY_AS[1]]>15 DO $$MA_POSCTRL_GAIN[SYG_AS[0]], SYG_AS[1]]=$R3
10.3.8

Read and write NC machine and NC setting data

Function
It is also possible to read and write NC machine / setting data of synchronized actions. When
reading and writing machine data array elements, an index can be left out during
programming. If this happens in the part program, all of the array's elements are described
with the value when reading the first array element and when writing.
In synchronized actions, only the first element is read or written in such cases.
Definition
MD, SD with
$: Read the value at the interpretation time of the synchronized actions
$$: Read the value in the main run
576
Comments
; Using R10 in synchronized
actions.
; Preprocessing stop
; Evaluation of the arithmetic
variable.
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents