Programming
2.3 Variables
Expanding the user interface
2-28 Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Toggle-field-dependent displays
The toggle field is overlaid with alternating graphics: If the value of the flag byte is 1,
"image1.bmp" will appear. If it is 2, "image2.bmp" will appear.
DEF VAR1=(IDB/*1="\\image1.bmp",
2="\\image2.bmp"//,$85000/wr1//"MB[0]"//160,40,50,50)
The size and position of the image is defined under "Position of input/output field (left, top,
width, height)".
2.3.5 Detailed information about the default setting [3]
Overview
A variable can assume various states depending on whether a default value, or a system or
user variable, or both, has been assigned to the variable field (I/O field or toggle field). (Not
calculated: Toggling is not possible until a valid value is assigned to the variable).
Scope of the default settings
If... Then...
Field type Default setting System or user variable Reaction of field type
I/O field yes yes Write default value to system or user variable
No yes Use system or user variable as default value
Error yes Not calculated, system or user variable is not written
into/used.
yes No Default setting
No No Not calculated
Error No Not calculated
yes Error Not calculated
No Error Not calculated
Error Error Not calculated
Toggle yes yes Write default value to system or user variable
No yes Use system or user variable as default value
Error yes Not calculated,
system or user variable not written/used
yes No Default setting
No No Default = first toggle field element
Error No Not calculated
yes Error Not calculated
No Error Not calculated
Error Error Not calculated