26: S
CRIPT
26-26
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
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];
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...