7.11.4 RESET_VAR
Function
Supports data reset (zeroing) of STRING, UDT and array data types
LD graphics
Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| RES_VAR | VAR_IN_OUT | ANY_TYPE | Variable name that needs to be reset |
| Function name | Return value | BOOL | Returns the instruction status, TRUE means the instruction is executed correctly, FALSE means the instruction execution error |
Example
-
LD sample pictures are shown below:

-
ST example is shown in the following code
r:=RESET_VAR(RES_VAR:=ss);