Professional Documents
Culture Documents
- Configuration Interface
- Creating Pictures
- Making Dynamic
- Library
- Process Pictures
- Static Part
- Dynamic Part
- Action Configuration
- Archiving Messages
- Acquiring Measurement
Values
- Reporting
- Passwords
Style palette
Alignment palette
Graphic objects from
the object palette
Shortcut Menu
Standard Objects
Smart Objects
Windows Objects
Windows Objects
- aligning
- selecting
- changing of attributes
- background grid
Shortcut Menu
-deleting
- changing
- shifting
- duplicating
- rotate
- mirror
- arrange
As of V5+SP2
Left Right
Top Bottom
Line Style
Line Width
Line Ends
Fill
Pattern
Activate Runtime
Alternative 2
Shortcut
menu
Switch on PC
2)
1)
2)
1)
Shortcut menu
Shortcut menu
The Wizard generates a C-script in the background that can be used for further applications.
green
Shortcut menu
Setpoint rpm
Source Text
Executing (The compiled and fully connected program can then be executed.)
// WINCC:TAGNAME_SECTION_START
// syntax: #define TagNameInAction "DMTagName"
// next TagID : 1
#define TAG_ I_ Setpoint1 Setpoint1 "
// WINCC:TAGNAME_SECTION_END
// WINCC:PICNAME_SECTION_START
// syntax: #define PicNameInAction "PictureName"
// next PicID : 1
// WINCC:PICNAME_SECTION_END
.
.
SetTagDWord(TAG_ I_ Setpoint1 ,100);
green or
yellow
lightning bolt
4.Set
1 1
PA13A 0 1 T_Value1
1.Get 0 1
BOOL T_Value1;
1.Get T_Value1=GetTagBit("PA13A");
T_Value1=! T_Value1;
2.Set
SetTagBit("I_Value2",T_Value1);
I_tag memory from WinCC
2.Set
I_Value2 1 3.Get
3.Get BOOL T_Value1;
T_Value1=GetTagBit("I_Value2");
4.Set SetTagBit("PA13A",T_Value1);
S IE M E N S
S IC O M P
IP C R I 2 0
zzz.pdl
CS
yyy.pdl
RT Event
Trigger
OPEN
SetTagxxx(Soll_Temp2,T_Soll);
<90>
Application
GraphicsRT Write tag
once Data manager with image
Soll_Temp2 90
.
.
. 1x
S IE M E N S
S IC O M P
IP C R I 2 0
zzz.pdl
CS
yyy.pdl
RT Event
Trigger
OPEN
SetTagxxxWait(Soll_Temp2,T_Soll);
<90>
Application
GraphicsRT Write tag Data manager
once
Soll_Temp2 90
.
.
1x
Acknowledgement
S IE M E N S
S IC O M P
IP C R I 2 0
zzz.pdl
CS
yyy.pdl
RT Properties
OPEN Default tr. e.g. 2 sec
<81> I1=GetTagxxx(Ist_Temp1); 2sec
return();
Application
GraphicsRT
Announce Data manager with image
all tags
* 1 sec
Ist_Temp1
.
.
.
81
S IE M E N S
S IC O M P
IP C R I 2 0
zzz.pdl
CS
yyy.pdl
RT Properties
OPEN Tag trigger 2 sec
<81> I1=GetTagxxx(Ist_Temp1); ><Ist_Temp1
return();
Application
GraphicsRT
Announce Data manager with image
all tags 2 sec
Ist_Temp1
.
.
.
81
S IE M E N S
S IC O M P
IP C R I 2 0
zzz.pdl
CS
yyy.pdl
RT Event
Trigger
OPEN
<81> I1=GetTagxxx(Ist_Temp1);
Application
GraphicsRT
Announce Data manager with image
all tags
1 sec
Ist_Temp1
.
.
.
81
S IE M E N S
S IC O M P
IP C R I 2 0
zzz.pdl
CS
yyy.pdl
RT Event
Trigger
OPEN
<81> I1=GetTagxxxWait(Ist_Temp1);
Application
GraphicsRT
Read tag Data manager
once
Ist_Temp1=MW14
1x
Return value 81
Type of Update
-tag trigger (use the same cycle for all tags)
-select a uniform update of a picture
-avoid using Change
Functions
-SetTagMultiWait for several tags is better than many SetTagxxx
-GetTagxxx ( tag is cyclically introduced to the data manager) ,SetTagxxx
Uhr stellen
Set Clock
ProgramExecute("C:\\WINNT\\System32\\Control.exe timedate.cpl");
Note: The directory where Control.exe is located depends on the installation of the
WindowsNT Operating System.
A)
B)
F9
F3
Setpoint
kg 20
Type I
Actual value
kg 128
Type O
Dr
Speed
rpm 500
Type I/O
Runtime
Drag&Drop
Closed Open
+0 Type I/O
C-action
Toggle function with mouse-click
with acknowledgement Direct Connection
Dynamic Wizard
C-action
Diapa 13B,pdl
PA 13B
Diapa14A.pdl
PA 14A
Switching operation,
Configuration with Dynamic Wizard:
-Standard Dynamics
-Setting/Resetting a bit
Color change,
Configuration with Dynamic Dialog:
-Data type Bit
int value,zvalue;
0000 0000 value value=GetTagWord("conveyor");
& 0000 0001 zvalue=value&0x0001;
if 0000 0000 zvalue==0 if (zvalue==0){
value=value|0x0001;
0000 0000 value }
I 0000 0001 else{
value=value&0xfffe;
0000 0001 value, conveyor }
SetTagWord("conveyor", (short int)value;
conveyor 1 on
int value,zvalue;
value=GetTagWord("conveyor");
zvalue=value&0x0002;
if (zvalue==0){
value=value|0x0002;
}
else{
value=value&0xfffd;
} 0x0004 0x0008
SetTagWord("conveyor",(short int)value);
0xfffb 0xfff7
Enable missing!
Value = 0 (gray)
green or
Value = 100 (green) yellow
Value = 150 (yellow)
Enable
Configuration
-Events/ Button/ Mouse/
Mouse-click/ C-Action:
BOOL ok;
ok = GetTagBit("Enable");
ok = !ok;
SetTagBit("Enable",(WORD)ok);
Exercise:
Configuring:
-Properties/Static Text/ Object Name: Info text
/ Layer: 2
/ Font/ Text: display overview picture
/ Font/ X Alignment: centered
/ Font/ Y Alignment: centered
/ Miscellaneous / Display: No
Pos.
X
2.
3. Shortcut menu
Result
Enable
The tag namevariable must be created as an internal tag of the Text tag 8-bit character set data type.
-Tag Prefix
(>=V5.0)
-Indirect Addressing
(regardless of the version)
Template with
type objects
Tags (instances)
generated from
structure tag Application
picture
Data records
in the
SIMATIC PLC
Structure
Type
Editor
M M M
Motor_4
Tags for
Instance Formation
x:280
Additionally
create as internal
tag
2
3
SetTagPrefix(); SetTagPrefix();
SetPictureName(); SetPictureName();
Note: SetTagPrefix(); The Tag Prefix attribute can be made dynamic with the name TagPrefix.
SetPictureName(); The Picture Name attribute can be made dynamic with the name PictureName.
2
3
SetTagPrefix(lpszPictureName,"Bildfenster6",Motor_1.");
SetPictureName(lpszPictureName,"Bildfenster6",Motor_Box.pdl");
SetTagPrefix(lpszPictureName,"Bildfenster6",Motor_2.");
SetPictureName(lpszPictureName,"Bildfenster6",Motor_Box.pdl");
SetPictureName(lpszPictureName,PictureWindow1","sbb_ind_Adr_grafik.PDL");
SetVisible(lpszPictureName,PictureWindow1",1);
SetTagMultiWait("%s%s%s",
"I_Setpoint",Drive1.Setpoint",
"I_Actual",Drive1.Actual",
"I_Manual",Drive1.Manual");
Drive2.Setpoint Object_n
Drive2.Actual
...
Antrieb 1
4) CallAntrieb
graphic1 picture
Drive 1 Drive 2
xyz.PDL
5) Instance Wizard 5)
Performance Profile
Instance Type 2: one module that can be displayed and that can be called
using one button (per tag)
Instance Type 3: several modules that can be displayed and that each can be
called using one button (tag)
Shortcut menu:
Open
Group
Mouse
double-click
Create a
window for
a group or
user
Setpoint
Shortcut menu:
Properties