Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 The following is an example of the conditional expression.

Example

Description

(Tag_A != 1) && (Tab_B == 10)

If the value of Tag_A is not 1 and the value of Tag_B is 10, the result is 1. In other cases, it returns 0.

Sin(Tag_A) == 1

If the sine of Tag_A is 1, the result is 1. In other cases, it returns 0.

Tag_A < 100

If Tag_A is smaller than 100, the result is 1. In other cases, it returns 0.

(Tag_A + Tag_B) < (Tag_A + Tag_C)

If the sum of Tag_A and Tag_B is smaller than the sum of Tag_A and Tag_C, then the result is 1. In other cases, it returns 0.

...

The following is an example of a command expression.

Example

Description

Tag_A = 100;

PageOpen(“NewPage”);

Sets the value of Tag_A to 100 and opens the page named “NewPage”.

Tag_B = Tab_B + 1

Increases the value of Tag_B by 1.

Tag_A = 100;

Tag_B = 1;

RunScript MyLoop();

MakeCsv(“LogModel”,1);

Sets the value of Tag_A to 100 and Tag_B to 1, then executes the script named MyLoop(). Once the script is executed, the data logging model named “LogModel” will be saved in the SD memory as CSV.

...