IDEC FT1A Series User Manual page 327

Hide thumbs Also See for FT1A Series:
Table of Contents

Advertisement

4. Arithmetic Operators
Example 4.1
Addition
Script
[D0300] = [D0100] + [D0200];
Operation Description
The values of D0100 and D0200 are added together and the result is stored in D0300.
Example 4.2
Subtraction
Script
[D0300] = [D0100] - [D0200];
Operation Description
The value of D0200 is subtracted from the value of D0100 and the result is stored in D0300.
Example 4.3
Multiplication
Script
[D0300] = [D0100] * [D0200];
Operation Description
The values of D0100 and D0200 are multiplied together and the result is stored in D0300.
Example 4.4
Division
Script
[D0300] = [D0100] / [D0200];
Operation Description
The value of D0100 is divided by the value of D0200 and the result is stored in D0300.
Example 4.5
Modulo
Script
[D0300] = [D0100] % [D0200];
Operation Description
The value of D0100 is divided by the value of D0200 and the remainder is stored in D0300.
S
AXIS P
/L
U
'
MART
RO
ITE
SER
S
M
FT9Y-B1378
ANUAL
13: S
CRIPTS
13-23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents