Skip to main content

7.11.4 RESET_VAR

Function

Supports data reset (zeroing) of STRING, UDT and array data types

LD graphics

alt text

Parameter description

Interface variableDeclarationData typeDescription
RES_VARVAR_IN_OUTANY_TYPEVariable name that needs to be reset
Function nameReturn valueBOOLReturns the instruction status, TRUE means the instruction is executed correctly, FALSE means the instruction execution error

Example

  • LD sample pictures are shown below: alt text

  • ST example is shown in the following code

r:=RESET_VAR(RES_VAR:=ss);