Siemens SINUMERIK 808D Function Manual page 261

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

Advertisement

Tag identifier
CONTROL Continued
CONTROL Continued
Function Manual
01/2017
Meaning
Changing the control after creation
A control tag changes the properties of an existing control after it has been created. The tag
must be specified with the name of the control to be changed and the new properties. It can
be executed only within a form tag. The following properties can be changed:
xpos
ypos
width
height
color_bk
color_fg
access level
fieldtype
itemdata
min
max
default
The reference variable cannot be modified. If a property is to be changed by triggering by a
softkey event, the send message tag must transfer this request into the form context. The
message tag is used to acquire the message.
Note:
When the script file in an earlier software version is used, check display completeness for a
control due to the changed behavior of the control.
Example:
<menu name = "main">
<open_form name = "attrib_form" />
<softkey POSITION="3">
<caption>Set%nro</caption>
<send_message>1, 0</send_message>
</softkey>
<softkey POSITION="4">
<caption>Set%nrw</caption>
<send_message>2, 0</send_message>
</softkey>
</menu>
<form name="attrib_form">
<init>
<control name="c_p0" xpos="60" ypos="70" width="272" />
</init>
<message>
<switch>
<condition>$message_par1</condition>
<case value="1">
<control name="c_p0" fieldtype="static" />
</case>
<case value="2">
<control name="c_p0" fieldtype="edit" />
</case>
</switch>
</message>
</form>
261

Advertisement

Table of Contents
loading

Table of Contents