ST

Store

The content of the accumulator is transferred to the operand defined in the operand field.

Valid operands for this operator must be of one of the following data types: (ANY)

NOTE

Operator only available in IL programming language.

Example

POU header

In the POU header, all input and output variables are declared that are used for programming this function.

IL body

The values of var_1, var_2 and var_3 are exchanged. var_1, var_2 and var_3 can be of any valid data type. However, all three operands must be of the same data type.

LD

var_1

(* Load var_1 in accu *)

ST

var_3

(* Store accu in var_3 *)

LD

var_2

(* Load var_2 in accu *)

ST

var_1

(* Store accu in var_1 *)

LD

var_3

(* Load var_3 in accu *)

ST

var_2

(* Store accu in var_2 *)

Modified on: 2019-01-25Feedback on this pagePanasonic hotline