Send value to hardware

Previous chapterNext chapter Show allShow all    Hide allHide all

This function is used to set a set value for a variable (setpoint, command, single information) during online operation.

The variable, the set value and the way how to set the value have to be given as transfer parameters. This function is configured via a dialog mask. Input with the numerical keypad is possible. Both comma and dot are accepted as decimal point.

Configurable options are:

Set value settings:

Set value / Change by

technical set value of filed variables which will be issued

Direct to hardware

Active: After activating the function the value is directly sent to the hardware not asking for a further confirmation.
Inactive: Before sending the value to the hardware the set value dialog is opened and the user can change the settings in the Runtime.

propose current value

Active: The value is read from the hardware and then is proposed as a default or directly sent to the hardware. Additionally the caption of the field Set value changes to Change by and the value entered there is added to the default (subtracted if negative value).
Inactive: The value defined under Set value is proposed as a default or directly sent to the hardware.

Use set value limits of the variable

Active: The set value limits are taken from the variable definition (Description/Set value).
Inactive: The set value limits can directly be defined in the function (Min and Max).

Wait for writing confirmation

Active: Executing the function is not finished, before a positive confirmation of the writing action is received or the fixly defined timeout of 30 seconds is over.
In scripts this can make sure, that the following function is not started, before this one is finished.
The confirmation can also be evaluated with the status bit WR-SUC.
Inactive: Do not wait for the writing confirmation.

Set value for numerical variables in the Runtime:

A.

Standard dialog box

The entry is made with the help of the zenon standard dialog box. If the keyboard picture SETVALUEKBD is available in the project, it is used automatically.

B.

Picture

prepared

C.

Extern program

a program developped by the user

info Info

A decimal value can be entered with a colon as well as with a point, the decimal point will automatically be changed to a point.

If binary variables are given (information, command), the dialog mask will change.

Configurable options are:

LOW (0)

Value of variables will be set to "LOW" (0)

HIGH (1)

Value of variables will be set to "HIGH" (1)

TOGGLE

Value of variable is switched to complementary status.

Direct to hardware

Active: After activating the function the value is directly sent to the hardware not asking for a further confirmation.
Inactive: Before sending the value to the hardware the set value dialog is opened and the user can change the settings in the Runtime.

propose current value

Active: The value is read from the hardware and then is proposed as a default or directly sent to the hardware.
Inactive: The value defined under Set value is proposed as a default or directly sent to the hardware.

Wait for writing confirmation

Active: Executing the function is not finished, before a positive confirmation of the writing action is received or the fixly defined timeout of 30 seconds is over.
In scripts this can make sure, that the following function is not started, before this one is finished.
The confirmation can also be evaluated with the status bit WR-SUC.
Inactive: Do not wait for the writing confirmation.

Send value for binary variables in the runtime:

Standard dialog box

The entry is made with the help of the zenon standard dialog box. If the keyboard picture SETBOOLKBD is available in the project, it is used automatically.

Picture

prepared

Extern program

a program developped by the user

After configuration, the function will be entered into the function list with the transfer parameters. If the set value is output directly to the hardware, the function administration will also contain a -> before the value.

The type of simultaneous logging of the set value input can be configured via project configuration CEL configuration....

info Info

In case of reload or Server-Standby Switch, the present responses or writing affirmations are distorted.