Download as pdf or txt
Download as pdf or txt
You are on page 1of 132

APL 

1
___________________

2
___________________

3
___________________

PCS 7

APL

4
___________________

___________________
5
APL
___________________
6
APL

07/2010
A5E03272177-02

/
/

Siemens

Siemens
Siemens

Siemens AG
Industry Sector
Postfach 48 48
90026 NRNBERG

: A5E03272177
01/2012

Copyright Siemens AG
2010.

..................................................................................................................................................7

...........................................................................................................................................9

2.1

APL ......................................................................................................... 9

2.2

............................................................................................................................. 10

..................................................................................................................................13
3.1

............................................................................................................... 13

3.2

......................................................................................................................... 14

3.3

.................................................................................. 15

......................................................................................................................................17
4.1

.................................................................................................................. 17

4.2

.................................................................................................................. 18

4.3

...................................................................................... 20

4.4
4.4.1
4.4.2
4.4.3
4.4.4
4.4.5
4.4.6
4.4.7

....................................................................................................... 23
........................................................................................................... 23
............................................................................................................... 24
................................................................................................ 25
............................................................................................................................. 26
................................................................................................ 27
....................................................................................................... 28
............................................................................................................................. 30

APL ..............................................................................................................................33
5.1
5.1.1
5.1.2

....................................................................................................... 33
............................................................................................................................. 33
............................................................................................................................. 34

5.2
5.2.1
5.2.2
5.2.3
5.2.4
5.2.5
5.2.6

............................................................................................................................. 36
.................................................................................................................. 36
.................................................................................................................. 38
............................................................................................................... 39
.................................................................................................................. 40
.................................................................................................................. 41
.................................................................................................................. 42

APL
, 07/2010, A5E03272177-02

APL ............................................................................................................... 43
6.1

.....................................................................................................................................43

6.2
6.2.1
6.2.2
6.2.2.1
6.2.2.2
6.2.2.3
6.2.2.4
6.2.3
6.2.4
6.2.5
6.2.6
6.2.7
6.2.8
6.2.9
6.2.10
6.2.11
6.2.12
6.2.13
6.2.14

AS ..........................................................................................................................44
AS ............................................................................................................44
.....................................................................................................................................45
...................................................................................................................45
..............................................................................................45
(UDT) .............................................................................................46
...............................................................................................................48
.................................................................................................................................50
..............................................................................................................................53
...............................................................................................................53
.......................................................................................................................55
OS_Perm/OS1Perm....................................................................................................56
Feature .......................................................................................................................59
..........................................................................................................................59
SIMATIC BATCH ........................................................................................................62
.....................................................................................................................................62
....................................................................................................................65
...................................................................................................................68
..............................................................................................................................71

6.3
6.3.1
6.3.2
6.3.2.1
6.3.2.2
6.3.2.3
6.3.2.4
6.3.3
6.3.3.1
6.3.3.2
6.3.3.3

..........................................................................................................................73
............................................................................................................73
...................................................................................................................75
Configurations........................................................................................................75
System ...................................................................................................................76
Trends....................................................................................................................78
Links.......................................................................................................................80
...................................................................................................................82
..............................................................................................................................82
...................................................................................84
......................................................................................85

6.4
6.4.1
6.4.2
6.4.3
6.4.3.1
6.4.3.2
6.4.3.3
6.4.3.4
6.4.3.5
6.4.3.6

..............................................................................................................................86
............................................................................................................86
...............................................................................................................88
..............................................................................................................................89
@PG_MyAPLFP.pdl .............................................................................89
@PG_MyAPLFP_Overview.pdl ............................................................90
@PG_MyAPLFP_Standard.pdl .............................................................91
.......................................................................................................................92
........................................................................................................94
...............................................................................................................96

APL
, 07/2010, A5E03272177-02

6.4.4
6.4.4.1
6.4.4.2
6.4.4.3
6.4.5
6.4.5.1
6.4.5.2
6.4.5.3
6.4.6
6.4.6.1
6.4.6.2
6.4.6.3
6.4.6.4
6.4.6.5
6.4.7
6.4.8
6.4.8.1
6.4.8.2

........................................................................................................... 98
.................................................................................................................. 98
TypeID VersionID .......................................................................................................... 99
ShowSelectionBorder....................................................................................................... 100
............................................................................................................. 100
csoIOAnaSP.................................................................................................. 100
csoIOAnaSP ........................................................................... 104
.................................................................................................................................. 108
......................................................................................................... 111
APL_OP_BUTTON..................................................................................... 111
.............................................................................................................................. 115
.................................................................................................. 119
.................................................................................................................... 122
OS_Perm ...................................................................................................... 124
.............................................................................................. 126
......................................................................................................... 127
ToolTipText ............................................................................. 127
....................................................................................................................... 129

APL
, 07/2010, A5E03272177-02

APL
, 07/2010, A5E03272177-02

Advanced Process Library(APL) PCS 7


APL

APL APL

APL

APL APL APL

APL

APL APL
APL
APL PCS 7

SCL

APL
, 07/2010, A5E03272177-02

APL PCS 7 PCS 7 V7.1 SP2

PCS 7 V7.1 SP1 APL

APL @ PCS7ElementsAPL.pdl
PCS 7 V7.1 SP2

APL SIMATICPCS 7

APL

( 9)

( 13)

( 17)

APL ( 33)
APL

AS ( 44)
( 73)
( 86)

APL
, 07/2010, A5E03272177-02

2.1

APL

APL
APL PCS 7

APL

APL

APL
APL
APL

APL

APL APL

APL APL APL

APL
APL

APL APL APL

APL
, 07/2010, A5E03272177-02


2.2

2.2

APL

APL

APL

( 17)

"@PCS7ElementsAPL.PDL"

"@ PCS7TypicalsAPL.pdl"

"@TemplatesAPL.pdl"

APL
APL

APL
@PCS7ElementsAPL.pdl

10

APL
, 07/2010, A5E03272177-02


2.2

$3/

$3/

$3/

$3/


$3/

$3/

$3/

$3/

#3&6(OHPHQWV$3/3'/


#3&6(OHPHQWV$3/SGO

$3/

APL
, 07/2010, A5E03272177-02

11


2.2

APL
APL

12

APL
, 07/2010, A5E03272177-02


3.1

@TemplatesAPL.PDL

GraCS

@TemplatesAPL.PDL

APL

( 73)

APL
, 07/2010, A5E03272177-02

13


3.2

3.2

101 115

115 151

1
2
3

( 73)

14

APL
, 07/2010, A5E03272177-02


3.3

3.3

APL
, 07/2010, A5E03272177-02

15


3.3

16

APL
, 07/2010, A5E03272177-02

4.1

@PCS7ElementsAPL.PDL PCS 7 OS
GraCS

@PCS7ElementsAPL.PDL

WinCC

APL APL

( 23)

APL
, 07/2010, A5E03272177-02

17


4.2

4.2

Advanced Process Library

440

// 10

WinCC AlarmControlWinCC TrendControl

Advanced Process Library


APL






18

APL
, 07/2010, A5E03272177-02


4.2

X 154

Y 10

WinCC

APL
, 07/2010, A5E03272177-02

19


4.3

4.3

APL 22 APL

20

APL
, 07/2010, A5E03272177-02


4.3



6WDWLF7H[W



6WDWLF7H[W

APL
, 07/2010, A5E03272177-02

21


4.3

( 36)
( 38)
( 39)
( 40)
( 41)
( 42)
( 23)

22

APL
, 07/2010, A5E03272177-02


4.4

4.4

4.4.1

APL

( 24)
( 26)
( 27)
( 28)
( 30)
( 20)
csoIOAnaSP ( 104)

APL
, 07/2010, A5E03272177-02

23


4.4

4.4.2

HTML

csoIOAnaSP

(0000FF)

csoIOAnaOut

(00B500)

csoIOAnaCR

(808080)

csoIOAnaDtAH

(FF0000)

csoIOAnaGainShed (808080)

PID

"@PCS7ElementsAPL.pdl"

csoIOAnaSP ( 100)

( 23)
( 18)
( 25)
csoIOAnaSP ( 104)

24

APL
, 07/2010, A5E03272177-02


4.4

4.4.3

Checkbox

HTML

APL_ANA_EMPTY

(808080)

APL_ANA_EMPTY2
APL_ANA_EMPTY3

"@PCS7ElementsAPL.pdl"

APL
, 07/2010, A5E03272177-02

25


4.4

> ShowSelectionBorder(Other > ShowSelectionBorder)


(On)

( 24)
ShowSelectionBorder ( 100)
csoIOAnaSP ( 100)

4.4.4

csoFpBtnInterlock

APL_LOCK_SYMBOL

APL_QUALITY_CODE2

APL_QUALITY_CODE3

26

APL
, 07/2010, A5E03272177-02


4.4

"@PCS7ElementsAPL.pdl"

1. @PCS7ElementsAPL.pdl
2.

284

258

234

( 23)
( 18)

4.4.5

APL
, 07/2010, A5E03272177-02

27


4.4

"@PCS7ElementsAPL.pdl"

/
1. @PCS7ElementsAPL.pdl
( 119)
2.

154

284

401

( 23)
( 18)
APL_OP_BUTTON ( 111)

4.4.6

adeHILim

28

APL
, 07/2010, A5E03272177-02


4.4

(Setpoint) (Read
back value)

2
5

"@PCS7ElementsAPL.pdl"

1. @PCS7ElementsAPL.pdl
2.

360

154

[ Y] + 24

360

[ Y]
+ 48

+ 75

3. > (Other > Value)

4. csoIOAnaSP ( 104)

APL
, 07/2010, A5E03272177-02

29


4.4

( 23)
( 24)
( 18)

4.4.7

APL_BAR_VERTIC_1

HTML

(00B500)

APL_BAR_VERTIC_2

(0000FF)

csoBarGradient

(707070)

APL_BAR_HORIZ_1

(D27A00)

APL_BAR_HORIZ_2

(00CECA)

csoStExtSP

(0000FF)

("E")

csoStTargetSP

(0000FF)

("R")

csoStExtMV

(D27A00)

("E")

csoStRamp

(D27A00)

("R")

30

APL
, 07/2010, A5E03272177-02


4.4

"@PCS7ElementsAPL.pdl"

APL
, 07/2010, A5E03272177-02

31


4.4

1. @PCS7ElementsAPL.pdl
2.

46
75
ER

X 61

X 154

Y
Y + 24

ER

3. ER > BarGraphName(User-defined >


BarGraphName)

4. ( 108)

( 23)
( 24)
( 28)
( 18)

32

APL
, 07/2010, A5E03272177-02

APL
5.1

5.1.1

(FontName)

Arial

(FontSize)

14

(FontBold)

(FontItalic)

(Orientation)

Y (AlignmentTop)

APL
, 07/2010, A5E03272177-02

33

APL
5.1

(Underline)

X (AlignmentLeft)

X (AlignmentLeft)

5.1.2

X (AlignmentLeft)

(Format)

0.######

APL

HTML

000000

FFFFFF

Enabled

808080

FF0000

(high/low)

00FF00

0000FF

FFFF00

(high/low)

D27A00

WinCC

34

APL
, 07/2010, A5E03272177-02

APL
5.1

APL
, 07/2010, A5E03272177-02

35

APL
5.2

5.2

5.2.1







  





X
X

10

144

128

X = ((128/2)+10) - (/2)

= (2 x ) + 2

36

APL
, 07/2010, A5E03272177-02

APL
5.2
X

116

154

234

22

258


X = 258
X = 234

284

358

401

( 20)

APL
, 07/2010, A5E03272177-02

37

APL
5.2

5.2.2

OS

 

   



 

X
X

10

10/210

37/237

154

154/371

176/394

307

113

( 20)

38

APL
, 07/2010, A5E03272177-02

APL
5.2

5.2.3







X
X

154

284

329

( 20)

APL
, 07/2010, A5E03272177-02

39

APL
5.2

5.2.4







X
X

10

63

154

( 20)

40

APL
, 07/2010, A5E03272177-02

APL
5.2

5.2.5













X
X

10

63

154

284

329

401

118

( 20)

APL
, 07/2010, A5E03272177-02

41

APL
5.2

5.2.6









  

X
X

10

63

154

284

118

329

358

401

( 20)

42

APL
, 07/2010, A5E03272177-02

APL
6.1

APL

AS
APL AS
APL

APL

APL

APL APL APL

APL
APL

APL APL APL

APL
, 07/2010, A5E03272177-02

43

APL
6.2 AS

6.2

AS

6.2.1

AS

44

( 45)

( 50)

( 53)

( 53)

( 55)

OS_Perm/OS1Perm ( 56)

Feature ( 59)

( 59)

APL SIMATIC BATCH

SIMATIC BATCH ( 62)

APL

( 62)

( 65)

( 68)

( 71)

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

6.2.2

6.2.2.1

APL

APL

PV_OutUnit
PV_Unit
EN
ENO
ANY

Signal Status
Feature
OS_Perm/OS1Perm

6.2.2.2

APL

Value BOOL

APL
, 07/2010, A5E03272177-02

45

APL
6.2 AS
SCL

//
PV:
STRUCT
Value
ST
END_STRUCT

: REAL := 0.0;
: BYTE := 16#80;

// Value
// Signal Status

//
PV.Value
PV.ST

6.2.2.3

:= X1 + X2;
:= 16#78;

(UDT)
(UDTs)

SCL

"Type AnaVal"

"Type DigVal"

// UDT51
TYPE AnaVal
STRUCT
Value
: Real := 0.0;
ST
: Byte := 16#80;
END_STRUCT
END_TYPE

// UDT61
TYPE DigVal
STRUCT
Value
: Bool := false;
ST
: Byte := 16#80;
END_STRUCT
END_TYPE

46

// Value
// Signal Status

// Value
// Signal Status

APL
, 07/2010, A5E03272177-02

APL
6.2 AS
SCL UDT

UDT
1 50 UDT APL

6-1

AnaVal = UDT 51 und DigVal = UDT 61

SCL

//
VAR_INPUT
PV
: AnaVal;
FbkOpen
: DigVal;

DigVal

APL
, 07/2010, A5E03272177-02

47

APL
6.2 AS
6.2.2.4

OS APL
S7_
xS7_x

SCL S7_x
S7_x

"S7_" x

S7_visible, S7_dynamik, S7_contact.

"S7_x"

Struct_4 PV_OpScale
S7_m_c := 'true';
PCS 7 OS
S7_xm_c := 'High,true;Low,true;';
PV_OpScale "High" "Low" PCS 7 OS

6-2

48

Struct_5

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

// Struct_4
//
PV
{S7_dynamic := 'true';
S7_visible
:= 'true';
S7_m_c
:= 'true';
S7_xm_c
:= 'Value,true;';
S7_xshortcut
:= 'Value,true;'}
: STRUCT
Value
: REAL := 0.0;
ST
: BYTE := 16#80;
END_STRUCT;
PV_OpScale {S7_m_c:='true';
S7_xm_c
S7_edit
S7_xedit
: STRUCT
High
Low
END_STRUCT ;

// Value
// Signal Status

:= 'High,true;Low,true;';
:= 'para';
:= 'High,para;Low,para;'}
: REAL := 100.0;
// High Value
: REAL := 0.0;
// Low Value
// PV - Bar Display Limits for OS

S7_xtrend:='Value,PV_OpScale.Low,PV_OpScale.High;

S7_xarchive:='Value,shortterm;';

S7_x

S7_xm_c

S7_m_c

S7_xshortcut
S7_xstring_0
S7_xstring_1
S7_xedit
S7_xqc
S7_xarchive

APL

S7_xtrend

APL
, 07/2010, A5E03272177-02

49

APL
6.2 AS

S7_contact
S7_visible
S7_dynamic

6.2.3

APL APL
AS OS

SCL AT AT

Status1 DWORD

VAR_OUTPUT
Status1 : DWORD;
Status1Bits AT Status1 : ARRAY[0..31] OF Bool;

"Status1Bits" Status1 Array of Bool

Status1Bits
Status1Bits[0]:= True;
24 TRUE

50

High WORD Low WORD

High Byte Low Byte

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

DB 0 7

DB 24 31

AT

':25'
%LW
%LW

%<7(

%LW
%LW

%<7(

%LW
%LW

%<7(

%LW
%LW

%<7(

%<7(

%<7(

%<7(

%<7(
:25'

:25'
%LW

%LW

$&&8
':25'



(UDT)

APL
, 07/2010, A5E03272177-02

51

APL
6.2 AS

//
TYPE SBit32inDWORD
STRUCT
// highest Byte in accu
X24 : BOOL;
X25 : BOOL;
X26 : BOOL;
X27 : BOOL;
X28 : BOOL;
X29 : BOOL;
X30 : BOOL;
X31 : BOOL;
// second highest Byte in accu
X16 : BOOL;
X17 : BOOL;
X18 : BOOL;
X19 : BOOL;
X20 : BOOL;
X21 : BOOL;
X22 : BOOL;
X23 : BOOL;
// third highest Byte in accu
X8 : BOOL;
X9 : BOOL;
X10 : BOOL;
X11 : BOOL;
X12 : BOOL;
X13 : BOOL;
X14 : BOOL;
X15 : BOOL;
// lowest Byte in accu
X0 : BOOL;
X1 : BOOL;
X2 : BOOL;
X3 : BOOL;
X4 : BOOL;
X5 : BOOL;
X6 : BOOL;
X7 : BOOL;
END_STRUCT
END_TYPE

52

BYTE0 in memory
// 0.0

// 0.7
BYTE1 in memory
// 1.0

// 1.7
BYTE2 in memory
// 2.0

// 2.7
BYTE0 in memory
// 3.0

// 3.7

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

0
//
VAR_OUTPUT
Status1
Status1Bits AT Status1
END_VAR
Begin
Status1Bits.X0

6.2.4

: DWORD;
: SBits32inDWORD;

:= True;

AS AUTHORAdvLib OS
OS

"xxx.#TextPermanent"

"xxx.#StatusPermanent"

6.2.5

FC 369 SelST16 APL

AS ST_Worst ST_Worst

// ST_Worst
ST_Worst
{S7_visible:'false';s7_m_c:='true'}
:BYTE := 16#80
; // Worst Signal Status

APL
, 07/2010, A5E03272177-02

53

APL
6.2 AS

SelST16

InST

16 BYTE b0 b15
16

Num

InST

SelPrio

(Integer)
APL

RetVal

InST Signal Status

//
TempInST: STRUCT
b0 : BYTE;
b1 : BYTE;
b2 : BYTE;
b3 : BYTE;
b4 : BYTE;
b5 : BYTE;
b6 : BYTE;
b7 : BYTE;
b8 : BYTE;
b9 : BYTE;
b10 : BYTE;
b11 : BYTE;
b12 : BYTE;
b13 : BYTE;
b14 : BYTE;
b15 : BYTE;
END_STRUCT;
ST_Worst BYTE;

//
TempInST.b0
TempInST.b1
TempInST.b2
ST_Worst :=

54

:= X1;
:= X2;
:= X3;
SelSt16(InST := TempInST, Num := 3, SelPrio := 0);

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

6.2.6

APL INTEGER

IEC 61158 APL

0S7_unit

//
PV_Unit {
S7_m_c:='true';
S7_unit:='l/sec'
} : INT; //Unit

APL
, 07/2010, A5E03272177-02

55

APL
6.2 AS

6.2.7

OS_Perm/OS1Perm
"OS_Perm" "OS1Perm"

"OS_Perm" APL "OS1Perm"

OS "OS_Perm" "OS1Perm"
"OS_Perm"
// OS_Perm: "OS_Perm"
OS_Perm
{S7_visible:='false'}
:STRUCT
Bit0: BOOL:=1;
Bit1: BOOL:=1;
"
"
"
Bit31: BOOL:=0;
END_STRUCT;
ArrOS_Perm AT OS_Perm :
ARRAY[0..3] of BYTE;

//1 = Operator can enable


accumulation
//1 = Operator can switch off
accumulation

// Not used
// Operator permissions

OS
"OS_PermOut" "OS_PermLog" OS

"OS_PermOut"
"OS_PermOut"

// "OS_PermOut"
OS_PermOut
{S7_visible:='false';S7_m_c:='true'}
:DWORD:=16#FFFFFFFF; //Parameterized Permissions
ArrOS_PermOut AT OS_PermOut : ARRAY[0..3] of BYTE;

56

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

"OS_PermLog"
"OS_PermLog"

"OS_PermLog"

// "OS_PermLog"
OS_PermLog
{S7_visible:='false';S7_m_c:='true'}
:DWORD:=16#FFFFFFFF; //Permissions with Process conditions
ArrOS_PermLog AT OS_PermLog : ARRAY[0..3] of BYTE;

AT

OS_Perm

ArrOS_Perm

ARRAYof BYTE OS_Perm

OS_PermOut ArrOS_PermOut ARRAYof BYTE OS_PermOut


OS_PermLog ArrOS_PermLog ARRAYof BYTE OS_PermLog
"OS_Perm"
// "OS_PermLog"

//********************************************************************
// Copy Data from Structure OS_Perm to
//
DWORD OS_PermOut by means of AT command
//********************************************************************
ArrOS_PermOut[3]:=ArrOS_Perm[0];
ArrOS_PermOut[2]:=ArrOS_Perm[1];
ArrOS_PermOut[1]:=ArrOS_Perm[2];
ArrOS_PermOut[0]:=ArrOS_Perm[3];

SCL AT
High Byte Low Byte
High WORD Low WORD
OS_PermLog

APL
, 07/2010, A5E03272177-02

57

APL
6.2 AS

"OS_PermLog"
"OS_Perm3"
// "OS_Perm3" OS_PermLog
// temporary Parameters for OS_PermLog
tmpDW_OS_Perm:DWORD;
arrtmpDW_OS_Perm AT tmpDW_OS_Perm: ARRAY[0..3] of BYTE;
sttmpDW_OS_Perm AT tmpDW_OS_Perm: STRUCT;
Bit0: BOOL;
Bit1: BOOL;
"
"
"
Bit31: BOOL;
END_STRUCT;

"OS_Perm42"
ATtmpDW_OS_Perm
OS_PermLog
// "OS_Perm42"
//********************************************************************
// OS_Perm and process releated permissions
//********************************************************************
sttmpDW_OS_Perm.Bit0:=OS_Perm.Bit0 AND NOT HiAlmAct;
//permission enable accumulation
sttmpDW_OS_Perm.Bit1:=OS_Perm.Bit1;
//no further process condition
"
"
"
sttmpDW_OS_Perm.Bit31:=OS_Perm.Bit31;
//no further process condition
ArrOS_PermLog[3]
ArrOS_PermLog[2]
ArrOS_PermLog[1]
ArrOS_PermLog[0]

58

:=
:=
:=
:=

arrtmpDW_OS_Perm[0];
arrtmpDW_OS_Perm[1];
arrtmpDW_OS_Perm[2];
arrtmpDW_OS_Perm[3];

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

6.2.8

Feature
Feature

// "Feature"
Feature S7_visible:='false';
S7_xedit:='Bit0,para;Bit1,para;Bit2,para;Bit3,para;'}
:STRUCT
Bit0: BOOL:=0; // common Featurebit not used in this
Bit1: BOOL:=0; // common Featurebit not used in this
Bit2: BOOL:=0; // common Featurebit not used in this
Bit3: BOOL:=0; // common Featurebit not used in this
Bit4: BOOL:=0; // common Featurebit not used in this
Bit5: BOOL:=0;
// 1 = Alarm Output activ with 0,
// individual block specific Feature Bit
"
"
Bit31: BOOL:=0; // Not used
END_STRUCT; // Status of various features

block
block
block
block
block

"Feature"

6.2.9

AnalogValue

AS Signal Status ( 16#FF)


OS

APL
, 07/2010, A5E03272177-02

59

APL
6.2 AS
Signal Status

Signal Status = 16#FF

Signal Status 16#FF APL

Signal Status 16#FF

AnalogValue

1 5

Signal Status 16#FF

//
VAR_INPUT
Userana1 {S7_visible
S7_m_c
S7_xm_c
S7_xqc
S7_xshortcut
: STRUCT
Value
ST
END_STRUCT;
UA1unit

{S7_visible
S7_m_c
S7_unit
:INT:=0;

:=
:=
:=
:=
:=

'false';
'true';
'Value,true;';
'Value,true;';
'Value,Auxiliary value1;'}

: REAL := 0.0;
: BYTE := 16#FF;

// Value
// Signal Status
// User Analog Input 1

:= 'false';
:= 'true';
:= ''}
// Unit of UserAna1

END_VAR
BEGIN
dwOutStatus1.X5:=NOT (UserAna1.ST=16#FF);

60

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

csoIOAnaSP (@PCS7ElementsAPL.pdl; Display analog Value; Setpoint)

AnalogValue .UserAna1#Value.

"Links" (attribute)

"LinkTag1" "BitIndex1"
"LinkTag1" (If changed)

(Color) "LineColor"

APL
, 07/2010, A5E03272177-02

61

APL
6.2 AS

6.2.10

SIMATIC BATCH
APL SIMATIC BATCH

//SIMATIC BATCH
BatchEn {S7_visible := 'false'}

//

:BOOL := false;
// ID

BatchID {S7_visible := 'false'; S7_m_c := 'true'}


:DWORD := 16#00;

//

BatchName {S7_visible := 'false'; S7_m_c := 'true'}


:STRING [32];

//

StepNo {S7_visible := 'false'; S7_m_c := 'true'}


:DWORD := 16#00;

//

Occupied {S7_visible := 'false'}


:BOOL := false;

6.2.11

APL

APL
APL

SimOn

62

FbkRun

FbkRunOut

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

//
VAR_INPUT
SimOn
{S7_visible := 'false';
S7_m_c := 'true'}
:BOOL := FALSE;
//Simulation On/Off
SimPV
{S7_visible := 'false';
S7_m_c:= 'true'}
:REAL :=0.0;
//Simulation Value
END_VAR
VAR_OUTPUT
PV_Out
{S7_xqc:='Value,true;';
S7_dynamic:='true';
S7_m_c:= 'true';
S7_xm_c:='Value,true;';
S7_xshortcut:='Value,PV;';
S7_xarchive:='Value,shortterm;';
S7_xtrend:='Value,PV_OpScale.Low,PV_OpScale.High;'}
:AnaVal; //Process Value (Analog Output)
END_VAR
// Code selection - Simulation
IF SimOn THEN
PV_Out.Value
:= SimPV;
PV_Out.ST
:= 16#60;
ELSE
PV_Out.Value := PV.Value;
SimPV
:= PV_Out.Value;
PV_Out.ST
:= PV.ST;
END_IF;
dwOutStatus1.X6:=SimOn;

APL
, 07/2010, A5E03272177-02

63

APL
6.2 AS

APL_OP_Button (@PCS7ElementsAPL.pdl; Open binary operation area; Normal)


APL_MULTI_TEXT2 (@PCS7ElementsAPL.pdl; Status display text; Text display)
( 119)

PV
csoIOAnaSP(@PCS7ElementsAPL.pdl;
csoIOAnaSP ( 104)

SimOn/LinkTag3
OS_PermLog

64

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

6.2.12

APL

OutOfService_1

OutOfService_1
VAR_INPUT
OnOp
{S7_m_c:='true'; S7_link:='false'; S7_visible:='false'}
:BOOL := FALSE;
// 1=On Mode: On Mode by Operator
OosOp
{S7_m_c:='true'; S7_link:='false'; S7_visible:='false'}
:BOOL:=FALSE;
// 1=Oos Mode: Oos Mode by Operator
OosLi
{S7_dynamic:='true'}
:DigVal;
// 1=Oos Mode: Oos Mode by Field Signal
OS_Perm {S7_visible:='false'}
:STRUCT
Bit0: BOOL :=1;
// 1 = Operator can switch to On
Bit1: BOOL :=1;
// 1 = Operator can switch to OOS
END_Struct;
END_VAR
VAR_OUTPUT
OosAct
{S7_dynamic:='true';
S7_m_c:='true';
S7_xm_c:='Value,true;'}
:DigVal;
// Out of service is active
OnAct
{S7_dynamic:='true'}
:STRUCT
Value : BOOL := true;
// Value
ST
: BYTE := 16#80; // Signal Status
END_STRUCT;
// On Mode is active
END_VAR
VAR
SxOosLi :BOOL := FALSE;
END_VAR
// CODE Selection
IF OnOp THEN
OosAct.Value := false;
OnOp := false;
ELSIF OosOp OR (OosLi.Value AND Feature.Bit1 AND NOT SxOosLi) THEN
OosAct.Value := true;
END_IF;

APL
, 07/2010, A5E03272177-02

65

APL
6.2 AS
OutOfService_1
OosOp := false;
SxOosLi := OosLi.Value;
OnAct.Value := NOT OosAct.Value;
IF OosAct.Value THEN // OutOfService conditions
OS_PermLog := (16#1 AND OS_PermOut);
ELSE
// Not in mode "Out of service"
END_IF

OnOp(On)

OosOp(Out of operation)

1. AS

APL


2.
@PG_MyAPLFP_Overview (Out of
operation)

OutOfService_1

(On)
@PG_MyAPLFP_Overview.pdl
( 90)

66

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

/("On" / "Out of operation")

APL_OP_BUTTON ( 111)

( 119)

(Out of operation)

"OosAct"

(Out of service)

3 3

APL
, 07/2010, A5E03272177-02

67

APL
6.2 AS

6.2.13

APL

"SelFp1" "SelFp2"

6-3

1 csoFpBtnUser1

2 csoFpBtnUser2

SelFp1_1

ANY

CFC BLK_Jump

SelFp1_2 BLK_Jump OS

OS
OS xxx.SelFp1#Jump

68

OS-tagname

APL
, 07/2010, A5E03272177-02

APL
6.2 AS
xxx.SelFp1#Jump

SelFp1
{BLK_Jump:='1';S7_visible:='false'}
:ANY;
//Select Faceplate1
SelFp2
{BLK_Jump:='1';S7_visible:='false'}
:ANY;
//Select Faceplate2

SelFp1_2

OS
S7_string S7_shortcut Anypointer

-> UserButtonText1UserButtonText2

CFC
1
BOOL
SelFp1_3
{BLK_Jump:='1';
S7_m_c:='true';
S7_string_1:='Jump to xxx'
}
: BOOL; //Select Faceplate 3

SelFp1_3

1. BOOL Anypointer
S7_string1

BOOL
BOOL
PCS7 V7.1 SP1
BOOL APL

APL
, 07/2010, A5E03272177-02

69

APL
6.2 AS
2
Anypointer
SelFp4
{BLK_Jump:='1';S7_visible:='false'} :ANY; //Select Faceplate 4
SelFp4Tx {S7_m_c:='true';
S7_string_1:='Jump to xxx'
}
: BOOL; //Select Faceplate 4 text

1. Anypointer SelFp3Tx

2. csoFpBtnUser1

6-4

SelFp1_5

3. BinText2

szCaption = GetPropChar(pszParent, "BlockiconCollection",


"UserButtonText1");

pszCaption = GetPropChar(lpszPictureName, lpszObjectName,


"BinLinkedText2");

70

APL
, 07/2010, A5E03272177-02

APL
6.2 AS

6.2.14

APL
AS "MS_RelOp" "MS_RelOp"
"MS_Release"

OutOfService_1
VAR_INPUT
MS_RelOp {S7_m_c := 'true'} :BOOL := FALSE;
END_VAR
VAR_OUTPUT
MS_Release :DigVal;
END_VAR
Begin
MS_Release.Value := MS_RelOp AND ManAct.Value;
IF NOT ManAct.Value THEN
MS_RelOp := false;
END_IF;
Status1Bits.x31 := MS_RelOp

"OS_Perm"
"MS_Release"

APL
, 07/2010, A5E03272177-02

71

APL
6.2 AS

APL_OP_Button (@PCS7ElementsAPL.pdl; Open binary operation area; Normal)


APL_MULTI_TEXT2 (@PCS7ElementsAPL.pdl; Status display text; Text display)
( 119)

PV
csoIOAnaSP (@PCS7ElementsAPL.pdl; Display analog Value; Setpoint)
csoIOAnaSP ( 104)

MS_RelOp/LinkTag3
OS_PermLog

6-5

72

MS_Release1

APL
, 07/2010, A5E03272177-02

APL
6.3

6.3

6.3.1

( 82)

( 84)
( 85)
APL

1. "@TemplatesAPL.PDL"
@PCS7TypicalsMyLib.pdl
2. "type" "Servername" AS
3. > (User object > Edit)

4. speaking

"PolylineIcon"
"HighLightBlockIcon"
5. (Edit)
6.

7. speaking

APL
, 07/2010, A5E03272177-02

73

APL
6.3
8.
9.

( 13)
( 14)

74

APL
, 07/2010, A5E03272177-02

APL
6.3

6.3.2

6.3.2.1

Configurations
Configurations

"Configurations"

FaceplatesDefaultPos "FaceplatesDefaultPos" = No
OperationLevel1 ...

"OperationLevel1 ... 3"

OperationLevel3

DirectOperationValue

DirectOperationValue DirectOperationValue
DirectOperationValue 5

AnalogValueFormat1

AnalogValueFormat1 4

AnalogValueFormat4
UserButtonText1

UserButtonText1..2

UserButtonText2

APL
, 07/2010, A5E03272177-02

75

APL
6.3
6.3.2.2

System
System

"System"

TagNameDisplay

"TagNameDisplayed"

ed

OS

Type

"Type" @TemplatesAPL.PDL V5
"MonAnL"
FB MyAPL_BL

Tagname

"Tagname" OS

Servername

"Servername" "PCS7
MyAPLFP Control"

TypeID

TypeID 1999 APL


PCS 7 (PCS 7 Programming
Instructions for Blocks)

76

APL
, 07/2010, A5E03272177-02

APL
6.3

"EventQuitMask" @EventQuit OS

"SignificantMask"

TypeID

"TypeID" APL

VersionID

2000 APL
"VersionID"

BlockIcon29.111301e+006
13/11/2009 01

ToolTipText

"ToolTipText" "ToolTipText"
ToolTipText
ToolTipText ToolTipText
( 127)

TagVisibleLink

APL
tagname
tagname 5
@TemplatesAPLShow/hide Tag
@local::@APLShowTag/

APL
, 07/2010, A5E03272177-02

77

APL
6.3
6.3.2.3

Trends
Trends

"Trends"

TrendPictureName

"TrendPictureName"

@pg_apl_trendMonAnL.pdl



@pg_apl_trend.pdl
12

78

APL
, 07/2010, A5E03272177-02

APL
6.3

TrendConfiguration1

TrendConfiguration1 12

...

TrendConfiguration12

.PV_Out#Value

_TrendCtrl1_

Reserved

"PV_Out"

PH
(HID)

HID

TrendColor1

TrendColor1 ... 12

...
TrendColor12

APL
, 07/2010, A5E03272177-02

79

APL
6.3
6.3.2.4

Links
Links

Links

SignalStatus

DisplayedUnit1

UnitNumericValue1

"DisplayedUnit1

UnitLinked1

"UnitNumericValue1" xx_Unit
"UnitNumericValue1"
UnitNumericValue1 = 0
S7_unit
UnitNumericValue1 > 0
DLL DLL

"UnitLinked1" WinCC OS xx_Unit#unit


OS S7_xunit

80

APL
, 07/2010, A5E03272177-02

APL
6.3

Status1

"Status1"
(In progress)

OosAct

(Out of operation) OosAct


="YES"

StatusPermanent

1.
2.
3. (Properties)
"@OosNotActive" (Out of
operation)

Visible

APL
, 07/2010, A5E03272177-02

81

APL
6.3

OosAct "@OosNotActive"

"@OosNotActive" "TRUE ".

"@OosNotActive" "FALSE".

6.3.3

6.3.3.1

APL
(Release Right)

1.
2. (Events)
3. (Objects)

HiAlm

82

APL
, 07/2010, A5E03272177-02

APL
6.3
4. Release right(Object Events)

5.

APL
, 07/2010, A5E03272177-02

83

APL
6.3
6.3.3.2

APL

APL_OpenFaceplate1

MFPIC

MFOBJ

#include "apdefap.h"
void OnRButtonUp (char*lpszPictureName,
char*lpszObjectName,
char*lpszPropertyName,
UINT nFlags,
int x,
int y)
{
#define MFPIC "@PG_MyAPLFP_Standard.pdl"
#define MFOBJ "@csolOAnaHiAlm"
APL_OpenFaceplate(lpszPictureName,lpszObjectName,1,MFPIC,MFOBJ);
//1: MF=OP Dialog
}

84

APL
, 07/2010, A5E03272177-02

APL
6.3
6.3.3.3

Status1 2

#include "apdefap.h"
void OnRButtonUp
(char*lpszPictureName,
char*lpszObjectName,
char*lpszPropertyName,
UINT nFlags,
int x, inty)
{
#define BIT(i,status) (((unsigned long)status & (1<<i))!=0)
#define MFPIC "@PG_PidConL_Standard.pdl"
#define MFOBJ "@csolOAnaPV"
unsigned long value = (unsigned long)GetPropDouble(lpszPictureName,
lpszObjectName,"Status1");
BOOLxSimuOn=BIT(2,value);
if (xSimuOn)
{
APL_OpenFaceplate(lpszPictureName,lpszObjectName,1,MFPIC,MFOBJ);
}
}


#define MFPIC "@PG_PidConL_Standard.pdl"

#define MFPIC "@PG_MyAPLFP_Standard.pdl"

APL
, 07/2010, A5E03272177-02

85

APL
6.4

6.4

6.4.1

APL PIDConL

APL
1. PIDConL

2.

86

MyView

APL
, 07/2010, A5E03272177-02

APL
6.4

@PG_MyAPLFP.PDL

@PG_MyAPLFP_Overview.PDL

@PG_MyAPLFP_ViewToolbar.PDL

@PG_ MyAPLFP_Standard.PDL

MyView @PG_MyAPLFP_MyView.PDL

@PG_apl_message.pdl

@PG_apl_trend.pdl

@PG_apl_batch.pdl

@PG_apl_memo.pdl

@PG_MyAPLFP_ViewToolbar.PDL

APL
, 07/2010, A5E03272177-02

87

APL
6.4

6.4.2

( 86)

@PG_MyAPLFP.PDL ( 89)

Firstview

ToolbarWindow

ObjCollectionBlockType



MyView

@PG_MyAPLFP_Overview.PDL ( 90)
AS
@PG_MyAPLFP_Overview.PDL ( 91)
@PG_MyAPLFP_Standard.pdl
@PG_MyAPLFP_ViewToolbar.PDL ( 92)

( 94)

( 96)

( 98)
TypeID VersionID ( 99)
SelectionBorder ( 100)

( 100)CsoIOAnaSP
CsoIOAnaSP ( 104)
( 111)APL_OP_BUTTON
( 119)
( 108)
( 115)
( 122)
( 124)

88

( 68)

APL
, 07/2010, A5E03272177-02

APL
6.4

6.4.3

6.4.3.1

@PG_MyAPLFP.pdl
@PG_MyAPLFP.PDL

1. @Faceplate "Firstview"
@PG_MyAPLFP_Standard.PDL
2. ToolbarWindow "PictureName"
@PG_MyAPLFP_ViewToolbar.PDL
3. ObjCollection "BlockType"
MyAPLFP

AS SIMATIC BATCH
AS SIMATIC BATCH @Faceplate

APL
, 07/2010, A5E03272177-02

89

APL
6.4
6.4.3.2

@PG_MyAPLFP_Overview.pdl
(@PG_PIDConL_Overview.pdl) AS
(*.PDL)

MSGLOCK

STATUS2; BIT0
ST_Worst
STATUS1; BIT0
STATUS1; BIT4

"ST_Worst"

90

APL
, 07/2010, A5E03272177-02

APL
6.4
6.4.3.3

@PG_MyAPLFP_Standard.pdl

"csoFpBtnUser1" SelFp1

"Level1"

"Level2"

"Level3"

"rect_selectionBorder"

"stUser"

APL
, 07/2010, A5E03272177-02

91

APL
6.4
6.4.3.4

@PG_MyAPLFP_ViewToolbar.PDL

STANDARD
NEXT
NEXT

"Name"=MyView
"@PG_MyAPLFP_MyView.PDL"

92

APL
, 07/2010, A5E03272177-02

APL
6.4

(ToolTip Text) MyView

(PictureStatus On) (PictureStatus Off)

NEXT

"@PG_MyAPLFP_ViewToolbar.PDL"

MyView

... (Next)

APL
, 07/2010, A5E03272177-02

93

APL
6.4

6.4.3.5

stUser@PG_MyAPLFP.pdl

AS OS_PermLogPermissionTag

LinkTag3

16#FFFFFFFF 4294967295
PermissionTagLinkTag3

stUser(bold)

OperationLevel
BinAuthorizationLevel1 .. x

94

APL
, 07/2010, A5E03272177-02

APL
6.4

1 =

2 =

3 =

AS

/PermissionTag

APL
, 07/2010, A5E03272177-02

95

APL
6.4
6.4.3.6

APL

"AnalogValueFormat1""AnalogValueFormat2" "AnalogValueFormat3"

96

APL
, 07/2010, A5E03272177-02

APL
6.4

APL
, 07/2010, A5E03272177-02

97

APL
6.4

6.4.4

APL

6.4.4.1

ValueFillStyle = 7
( 34)

98

APL
, 07/2010, A5E03272177-02

APL
6.4
6.4.4.2

TypeID VersionID

VersionIDTypeID

"VersionID"
"VersionID"

9.111301+006 13/11/2009

TypeID
TypeID APL

APL TypeID

TypeID
TypeID 2000

TypeID 1999 APL

APL
, 07/2010, A5E03272177-02

99

APL
6.4
6.4.4.3

ShowSelectionBorder
"ShowSelectionBorder"= Yes

APL
APL

"Position X" 154

0
"SelectionBorderX"
"SelectionBorderY"
"SelectionBorderWidth"
"SelectionBorderHeight"

APL

6.4.5

6.4.5.1

csoIOAnaSP

100

APL
, 07/2010, A5E03272177-02

APL
6.4

1. csoIOAnaSP(@PCS7ElementsAPL.pdl; Display analog Value;


Setpoint)
2.
( 96)
( 17)

APL
, 07/2010, A5E03272177-02

101

APL
6.4

> LineColor

> AnalogValue

> Unit

> IntegerUnitTag

PROFIBUS PROFINET
PA
APL

> LinkedUnit

= 0 S7_Unit

> LeftHandText

S7_shortcut

> AnaLinkedText

S7_shortcut

> UnitVisible

"AnalogValue"

"LineColor"

102

Unit

Unit

IntegerUnitTag

IntegerUnitTagPV_Unit

LinkedUnit

LinkedUnit OS PV_Unit#unit

APL
, 07/2010, A5E03272177-02

APL
6.4
IntegerUnitTag
IntegerUnitTag

IntegerUnitTag = 0S7_unit

IntegerUnitTag > 0
OS

SCL S7_xunit OS

OS

"UnitVisible"

"AnaLinkHiLim"

"AnaLinkLo"

"LimLinkOp"

"LinkTag3"
LinkTag3=0

S7_Shortcut AnaLinkedText
PV#Value#shortcut
OS

S7_Shortcut "LeftHandText"

S7_Shortcut

"AnaText" csoIOAnaSP
( 104)

( 25)

APL
, 07/2010, A5E03272177-02

103

APL
6.4
6.4.5.2

csoIOAnaSP

1. csoIOAnaSP (@PCS7ElementsAPL.pdl; Display analog Value;


Setpoint)
ShowSelectionBorder ( 100)
2.
( 96)
3. stUser

104

APL
, 07/2010, A5E03272177-02

APL
6.4

Links > AnalogValue

Links > Unit

Links > IntegerUnitTag

PROFIBUS PROFINET
PA
APL

Links > LinkedUnit

= 0 S7_Unit

Links > LeftHandText

S7_shortcut

Links > OpAreaPicture

Links > OkOption

Links > AnaLinkHiLim

Links > AnaLinkHiLim

Links > AnaText

Links > AnaLinkedText

S7_shortcut

Links > Format

Links > LinkTag3

AS

Links > BitIndex4 Bit

Links > UnitVisible

Links > OperationLevel

LinkedOp > LinkOp

"AnalogValue"

APL
, 07/2010, A5E03272177-02

105

APL
6.4

"LinkOp"

csoIOAnaSP ( 100)

"AnaLinkHiLim" "AnaLinkLoLim"

"AnaText"

"LinkTag3"

"OS_PermLog"
"BitIndex4" Bit0

"LinkTag3"
"LinkTag3" -1 +1
"BitIndex4" Bit0

"OperationLevel"

106

1 =

2 =

3 =

APL
, 07/2010, A5E03272177-02

APL
6.4

"OpAreaPicture"

@PG_APL_OA_Analog100 ->
@PG_APL_OA_Analog101 ->
@PG_APL_OA_AnalogWithLimits ->

"OkOption"
3

"LinkedOp" "LinkOp"

@PG_MyAPLFP_Standard.pdl ( 91)
( 23)
( 24)

APL
, 07/2010, A5E03272177-02

107

APL
6.4
6.4.5.3

APL

1. "APL_BAR_VERTIC_1"(@PCS7ElementsAPL.pdl; Bar graph


display)
2.

108

APL
, 07/2010, A5E03272177-02

APL
6.4

1. "APL_BAR_VERTIC_2"(@PCS7ElementsAPL.pdl; Bar graph


display)
2.

APL_BAR_VERTIC_1

/
/

1. "StatusTag"
2. "StatusTag"
APL_BAR_VERTIC_1(@PCS7ElementsAPL.pdl; Bar graph display)

1. APL_BAR_HORIZ_1 APL_BAR_HORIZ_2
(@PCS7ElementsAPL.pdl; Bar graph display)
2.

APL_BAR_VERTIC_1

APL
, 07/2010, A5E03272177-02

109

APL
6.4

(Value)

(Value)

(Colors)

(Colors)

RangeHI

RangeHIRangeLO

RangeLO

AlarmHigh
WarningHigh
ToleranceHigh
AlarmLow
Warninglow
ToleranceLow

StatusTag StatusTag

StatusTag
StatusBit_xxxx

StatusBit_0 0

AS Status2 7 1
(Alarm High)

( 30)

110

APL
, 07/2010, A5E03272177-02

APL
6.4

6.4.6

6.4.6.1

APL_OP_BUTTON

1. APL_OP_BUTTON (@PCS7ElementsAPL.pdl; Open binary


operation area; Schaltflche unter "Normal")
ShowSelectionBorder ( 100)
2. csoBtnAccEn
3. "stUser"
@PG_MyAPLFP_Standard.pdl
( 91)

APL
, 07/2010, A5E03272177-02

111

APL
6.4

Links/ OkOption

Links/ OpAreaPicture

Links/ Caption

Links/ BinCount

Links/ BinLink1

Links/

BinAuthorizationLevel1

112

APL
, 07/2010, A5E03272177-02

APL
6.4

Links/ BinText1

Links/ BinLinkedText1

S7_string 1

Links/ OpAreaHeading

Permission/ PermissionTag (OS_PERM)


Permission/

BinPermBitIndex1

APL_OP_BUTTON

OkOption
"OkOption"

OkOption = 1
1 BinLink1 BinLink5

OkOption = 2
01 BinLink1 BinLink2

1 BinLink1
0 BinLink2
BinLink3 5

OkOption = 4
APL_OP_BUTTON3
BinLink1
AnalogValue BinLink1

OkOption = 5
BinLink1

APL
, 07/2010, A5E03272177-02

113

APL
6.4
OpAreaPicture

"@pg_apl_oa_binary103.PDL"

"@pg_apl_oa_binary105.PDL"

"OpAreaHeading"

BinCount
BinLink1 BinLink5

BinAuthorizationLevel1 .. 5
"BinAuthorizationLevel1 .. 5"

BinText1 .. 5
"BinText1 .. 5"

114

APL
, 07/2010, A5E03272177-02

APL
6.4
BinLinkedText1 .. 5
OS "BinLinkedText1 .. 5" S7_String0/1

S7_string BinText1 .. 5

PermissionTag
"OS_PermLog"
"BinPermBitIndex1 .. 5" Bit0

6.4.6.2

1. APL_CHECKBOX (@PCS7ElementsAPL.pdl; Check box)

ShowSelectionBorder ( 100)
2. APL_CHECKBOX_Reset
3. @PG_MyAPLFP_Standard.pdl stUser

@PG_MyAPLFP_Standard.pdl
( 91)

APL
, 07/2010, A5E03272177-02

115

APL
6.4

6-6

CheckBox1

Links/ OkOption

1 2

Links/ OpAreaPicture

Links/ BinCount

Links/ BinLink1

Links/ BinAuthorizationLevel1

Links/ BinText1 Fester

Links/ BinLinkedText1

S7_string 1

Links/ OpAreaHeading

Links/ LinkTag

Links/ BitIndex1

LinkTag

Permission/ PermissionTag

(OS_PERM)

Permission/ BinPermBitIndex1

116

APL
, 07/2010, A5E03272177-02

APL
6.4

OKOption

"OKOption" APL "BinLink1" "BinLink2"


"OKOption"
"OKOption" =1
"BinLink1" "BinLink2"
1
"OKOption" =2
SP_RateOn CheckBox1
"BinLink1" "BinLink2"
BinLink1 1
BinLink0 0

BinAuthorizationLevel1

BinAuthorizationLevel1 ..2

BinAuthorizationLevel2

LinkTag

"LinkTag" 1

BitIndex1

LinkTag "BitIndex1"
Bit0

BinText1 BinText2

BinText1 .. 2"

BinLinkedText1

OS "BinLinkedText1 .. 2"

BinLinkedText2

S7_string0/1
"S7_string0/1" BinText1 .. 2"

APL
, 07/2010, A5E03272177-02

117

APL
6.4
PermissionTag
"PermissionTag"

"OS_PermLog"
"BinPermBitIndex1 .. 2" Bit0
BinPermIndex1 1
BinPermIndex2 0

"PermissionTag"
"PermissionTag" -1 +1
"BinPermBitIndex1 .. 2" Bit0

118

APL
, 07/2010, A5E03272177-02

APL
6.4
6.4.6.3

1. APL_MULTI_TEXT2 (@PCS7ElementsAPL.pdl; Status display


text; Manual)
2.

6-7

MultiText2_1

APL
, 07/2010, A5E03272177-02

119

APL
6.4

Links/ LinkTag

Links/ Caption

Links/ Text1 .. 6

Links/ LinkedText1..6

Links/ BitIndex1..6

Links/ UsedBits

BitIndex1

Links/ DefaultText

Colors/ State1BackColor

Text1

Colors/ State1FillColor

Text1

Colors/ State1FontColor

Text1

LinkTag

"LinkTag"

BitIndex1

"BitIndex1 ..6" Text1Text6

...BitIndex6

Bit0

LinkedText1...

string0/string1 "LinkedText1 ... 6"

LinkedText6

UsedBits

UsedBits" BitIndex1

APL_MULTI_TEXT6 APL_MULTI_TEXT

DefaultText

"DefaultText" 1
1 6

"DefaultText" = 4 "UsedBits" = 3
BitIndex1 .. 3 1 Text4

120

APL
, 07/2010, A5E03272177-02

APL
6.4
Colors

APL_MULTI_TEXT6

APL_MULTI_TEXT
APL_MULTI_TEXT6

ArrowDisplay "ArrowObjectName"

APL_MULTI_TEXT4

APL_MULTI_TEXT3

APL
, 07/2010, A5E03272177-02

121

APL
6.4

( 27)

6.4.6.4

1. APL_QUALITY_CODE<x>(@PCS7ElementsAPL.pdl; Symbol
status display)
2.

3. LinkTag1

122

APL
, 07/2010, A5E03272177-02

APL
6.4

APL_QUALITY_CODE1
LinkTag1 Signal Status

APL_QUALITY_CODE2
Signal Status Signal Status 16#60
B
LinkTag1 Signal Status

LinkTag2
BitIndex1

APL_QUALITY_CODE3
APL_QUALITY_CODE2 Signal Status 16#60

APL
, 07/2010, A5E03272177-02

123

APL
6.4
6.4.6.5

OS_Perm

-> AS

->

-> AS

1. _StatusDisplay_1

2.

6-8

124

OS_Perm5

APL
, 07/2010, A5E03272177-02

APL
6.4
3. OS_Perm5
Status1OS_PermLog
Status2OS_PermOut
4. OS_PermLogOS_PermOut
OS_Perm6

6-9

OS_Perm6

OS_Perm7
sdeEnOpAH4OS_Perm7
Status3

6-10

OS_Perm7

APL
, 07/2010, A5E03272177-02

125

APL
6.4

6.4.7

Visio 2007 APL EMF Visio VSD

VSD PCS 7 EMF+

EMF+
3D

126

Windows EMF+ EMF (*.emf)

VSD Visio 2007 EMF

APL
, 07/2010, A5E03272177-02

APL
6.4

6.4.8

6.4.8.1

ToolTipText
tagname APL ToolTipText
ToolTipTag
@PCS7TypicalsAPL.PDL (MonAnl - with Header) APL
"MonApl5"

1.
2.
3. Selected Properties "Systems/ToolTipText"
4. "IOTagname.OutputValue"
5. (Objects) ToolTipText2MonAnl5

6. (Properties) (Tooltip Text)


Selected PropertiesToolTipText

6-11

APL
, 07/2010, A5E03272177-02

ToolTipText2

127

APL
6.4
7. (OK)
8.
(Systems) ToolTipText.#comment
ToolTipText3

6-12

128

ToolTipText3

APL
, 07/2010, A5E03272177-02

APL
6.4
6.4.8.2

CFC

@Faceplate MULTI_INSTANCE TRUE


OS

/Controller.PV_IN. .PV_IN
APL

APL
APL

CFC

+
MultiInstanceFP_1

1. CFC
2.

MultiInstanceFP_1

MOT_

MOT_OH
MOT_SC

APL
, 07/2010, A5E03272177-02

129

APL
6.4

6-13

MultiInstanceFP_1

130

APL
, 07/2010, A5E03272177-02

APL
6.4

OH.days SC.Out MultiInstanceFP_2

6-14

MultiInstanceFP_2

APL
, 07/2010, A5E03272177-02

131

APL
6.4

132

APL
, 07/2010, A5E03272177-02

You might also like