Commissioning Manual
6FC5397-4EP10-0BA8, 07/2018
335
The tag generates an NC block, whose syntax is defined by the value of the
tag.
Before generating the NC instruction, the parser calls the
CYCLE_CREATE_EVENT tag of the FORM. This tag can be used to calculate
the cycle parameters.
<CREATE_CYCLE/>
If a reference variable is specified, the instruction copies the generated call into
this variable.
<create_cycle refvar="name" />
•
If the tag is assigned a reference variable, the NC instruction is copied to this
variable.
<LET name="cyc_string" type="string"> Cycle100(0, 1000,
5)</LET>
<SOFTKEY_OK>
<caption>OK</caption>
<CREATE_CYCLE />
<close_form />
<navigation>main_menu</navigation>
</SOFTKEY_OK>
or
<SOFTKEY_OK>
<caption>OK</caption>
<CREATE_CYCLE refvar= "cyc_string" />
<close_form />
<navigation>main_menu</navigation>
</SOFTKEY_OK>
The system offers the option of defining control properties (attribute values) for the runtime. In order to use this function, the
desired property must be set in a local variable and the variable name must be transferred to the tag as an attribute value
preceded by the
.
If the tag expects a string as attribute value or value, the $$$ characters must be placed in front of the variable name.
<let name="my_ypos">100</let>
<let name="field_name" type="string"></let>
<control name = "edit1" xpos = "322" ypos = "$my_ypos" refvar="nck/Channel/Parameter/R[1]"
/>
<op>my_ypos = my_ypos +20 </op>