Vai al contenuto

Write Variable Command

This command lets you write a PLC variable published in the variables DB or defined as VAR_GLOBAL in 1131 environment.The data is set on a FORM (popup window).The variable to be set will be mouse click sensitive and underlined. Click the underlined value to open a popup window where you can set the new value.The command is inserted in the … section of the HTML code.
<% aspSetValue (char *label, int comma,"aspFormSetVar.asp"); %>
where:– label: is the name of the variable to be read– comma: is the position of the command to be inserted in the displayed data, in case of integers. The value -1 means you should leave the format intact and display the data as saved.– the third parameter is constant and represents the form of writing, but can be replaced with a custom form.
Example:<% aspSetValue("ncycle",1,"aspFormSetVar.asp"); %>