S
MART
AXIS P
RO
/L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
13-23
13: S
CRIPTS
4. Arithmetic Operators
Example 4.1
Addition
Script
Operation Description
The values of D0100 and D0200 are added together and the result is stored in D0300.
Example 4.2
Subtraction
Script
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
Operation Description
The values of D0100 and D0200 are multiplied together and the result is stored in D0300.
Example 4.4
Division
Script
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
Operation Description
The value of D0100 is divided by the value of D0200 and the remainder is stored in D0300.
[D0300] = [D0100] + [D0200];
[D0300] = [D0100] - [D0200];
[D0300] = [D0100]
*
[D0200];
[D0300] = [D0100] / [D0200];
[D0300] = [D0100] % [D0200];
Содержание FT1A-B12RA
Страница 1: ...FT9Y B1378 5 ...
Страница 2: ......
Страница 208: ...7 DEVICE ADDRESSES 7 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Страница 226: ...8 INSTRUCTIONS FUNCTION BLOCKS REFERENCE 8 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Страница 340: ...13 SCRIPTS 13 36 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Страница 384: ...APPENDIX A 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 European Font ISO 8859 1 Cyrillic Font ANSI 1251 ...
Страница 385: ...SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 A 19 APPENDIX Japanese Font JIS X0201 ...
Страница 386: ...APPENDIX A 20 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...