Toshiba PROSEC T1 User Manual page 169

Programmable controller
Hide thumbs Also See for PROSEC T1:
Table of Contents

Advertisement

FUN 035
Expression
Input -[ A +C B ® C ]- Output
Function
When the input is ON, the data of A , B and the carry flag (CF = S050) are added, and the result is
stored in C . If carry is occurred in the operation, the carry flag is set to ON. If the result is greater than
32767 or smaller than -32768, the output is turned ON.
This instruction is used to perform unsigned addition or double-length addition.
Execution condition
Input
OFF
No execution
ON
Execution
Operand
Name
A Augend
B Addend
C Sum
Example
When R013 is ON, the data of double-length registers D0101×D0100 and RW21×RW20 are
added, and the result is stored in D0201×D0200. The RSTC is a instruction to reset the carry flag
before starting the calculation.
If the data of D0101×D0100 is 12345678 and RW21×RW20 is 54322, the result 12400000 is stored
in D0201×D0200.
D0101×D0100 12345678
RW21×RW20
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
+C
Addition with carry
Operation
Normal
No carry
Carry occurred
Overflow /
No carry
underflow
Carry occurred
Device
X
Y
R
S
T.
C. XW YW RW SW T
54322
Output
OFF
OFF
OFF
ON
ON
Register
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
+
D0201×D0200
Basic Hardware and Function
7. Instructions
CF
-
Reset
Set
Reset
Set
Constant Index
C
D
I
J
K
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
12400000
6F3B0250
Ö
Ö
Ö
Ö
Ö
167

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prosec t1s

Table of Contents