Siemens SINUMERIK 828D Function Manual page 1103

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Examples for displaying addresses in the program editor:
I0.0
#Input1
INPUT1
Both addressing types – absolute and symbolic – are coupled to the particular view:
Menu "View" > "Symbolic addressing (Ctrl +Y)"
This setting should always be set using the menu "View > "Symbol table (Ctrl +T)".
Recommendation: Decide on one of the two addressing types and then keep this.
Global and local range of validity
Symbolic addresses that were assigned in the symbol table are globally valid. Symbolic addresses that were
assigned in a local variable table are locally valid.
Local variables
Local variables are assigned in the local variable table of the particular POU and are limited to the validity range
of the POU in which they were set-up. Each program organizational unit has its own local variable table.
Example:
You define a variable with the name INPUT1 in the local variable table of a subprogram with the SBR1 name.
If you refer to INPUT1 from SBR1, then the program editor identifies INPUT1 as a local variable from SBR1.
However, if you refer to INPUT1 at another location in the program (e.g. in MAIN or in a second program), the
program editor does not recognize INPUT1 as a local variable and treats INPUT1 as a non-defined global
symbol.
Note
Assigning names to local and global symbols
If you use the same name for an address at the local and at the global level, then the local
use has priority. This means that if the program editor defines a definition for the name in the
local variable table of a certain program block, then this definition is used. If a definition is not
found, then the program editor checks the symbol table.
Example:
You define the global symbol "PumpOn" You also define "PumpOn" as local variable in
SBR2, however, not in SBR1.
If the program is compiled, the local definition for "PumpOn" in SBR2 is used. The global
definition is used for "PumpOn" in SBR1.
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
An absolute address specifies the memory type and address
number.
The # character is located in front of a local symbol.
Global symbol
Red question marks designate an address that has still not been
defined (you must specify the address before you can compile
the program).
P4: PLC for SINUMERIK 828D
14.3 Programming
1103

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents