You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Address Syntax

The new Syntax has the following motivation

  • Be more familiar with the TIA Syntax well known by S7 programmers
  • Add Type Information to support all available TIA types
  • "Type inference" to be not too verbose

Syntax

%{data-area-code}.D{bit-length-code}{byte-offset}(.{bit-offset})?

The parts are:

  • data-area-code:
  • bit-length-code:
  • byte-offset
  • bit-offset

Type identifier Postfix

Generally the TIA Syntax is used:

BOOL, INT, UINT, REAL

Furthermore the follwoing modifiers to the base types are used:

S = Short

D = Double

L = Long

Examples are:

SINT
USINT
DINT
LREAL
LINT
ULINT

Examples for valid addresses

%DB3.DX4.1
%DB3.DX4.1:BOOL
%DB3.DB4:INT
%DB3.DB4:UINT
%DB3.DW4:REAL




  • No labels