EasyManuals Logo

Siemens SINUMERIK 840D Programming Guide

Siemens SINUMERIK 840D
598 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #352 background imageLoading...
Page #352 background image
10
Motion-Synchronous Action 12.97
10.2 Basic modules for conditions and actions
10
840 D
NCU 571
840D
NCU 572
NCU 573
FM-NC
810D
840Di
ï›™
Siemens AG 2000. All rights reserved
10-352
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
Notes
Only variables of the same data type can be
gated.
Correct: $R10=$AC_PARAM[1]
Incorrect: $R10=$AC_MARKER[1]
Multiplication and division are performed before
addition and subtraction and bracketing of
expressions is permissible.
The operators DIV and MOD are permissible for
the data type REAL (SW 4 and higher).
Example:
DO $AC_PARAM[3] = $A_INA[1]-$AA_IM[Z1]
;Subtraction of two real-time variables
WHENEVER $AA_IM[x2]
< $AA_IM[x1]-1.9 DO $A_OUT[5] = 1
;Subtraction of a constant from real-time variable
DO $AC_PARAM[3] = $INA[1]-4*SIN(45.7 $P_EP[Y])*R4
;Constant expression, calculated during preprocessing
•
Indexation
Real-time variables can be indexed with real-time
variables.
Notes
Variables that are not formed in real time must
not be indexed with real-time variables.
Example:
WHEN…DO $AC_PARAM[$AC_MARKER[1]] = 3
Illegal:
$AC_PARAM[1] =
$P_EP[$AC_MARKER]
Programming example
Example of real-time expressions
ID=1 WHENEVER ($AA_IM[Y]>30) AND ($AA_IM[Y]<40)
DO $AA_OVR[S1]=80
Selection of a position window
ID=67 DO $A_OUT[1]=$A_IN[2] XOR $AN_MARKER[1]
Evaluate 2 boolean signals
ID=89 DO $A_OUT[4]=$A_IN[1] OR ($AA_IM[Y]>10)
Output of the result of a comparison

Table of Contents

Other manuals for Siemens SINUMERIK 840D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 840D and is the answer not in the manual?

Siemens SINUMERIK 840D Specifications

General IconGeneral
SeriesSINUMERIK 840D
AxesUp to 31
ChannelsUp to 10
Operating SystemWindows-based
Power Supply24 V DC
Control Unit TypeCNC
InterfaceEthernet, PROFIBUS
DisplayTFT color display
InterpolationSpline
PLCIntegrated PLC
Data StorageCompactFlash, USB

Related product manuals