Toshiba PROSEC T1 User Manual page 168

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

Advertisement

7. Instructions
FUN 032
Expression
Input -[ A+1 × A D- B+1 × B ® C+1 × C ]- Output
Function
When the input is ON, the double-word data of B+1 × B is subtracted from A+1 × A , and the result is
stored in C+1 × C . The data range is -2147483648 to 2147483647.
If the result is greater than 2147483647, the upper limit value 2147483647 is stored in C+1 × C , and the
output is turned ON. If the result is smaller than -2147483648, the lower limit value
-2147483648 is stored in C+1 × C , and the output is turned ON.
Execution condition
Input
OFF
No execution
ON
Execution (normal)
Execution (overflow or underflow occurred)
Operand
Name
A Minuend
B Subtrahend
C Difference
Example
When R005 is ON, the double-word data of RW25×RW24 is subtracted from the double-word data
of D0101×D0100, and the result is stored in D0103×D0102.
If the data of D0101×D0100 is 1580000 and the data of RW25×RW24 is 80000, the result 1500000
is stored in D0103×D0102, and R010 is turned OFF. (No overflow/underflow)
D0101×D0100
RW25×RW24
166
T1/T1S User's Manual
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Double-word subtraction
D-
Operation
Device
X
Y
R
S
T.
C. XW YW RW SW T
1580000
-
80000
Output
OFF
OFF
ON
Register
C
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
D0103×D0102
Constant Index
D
I
J
K
Ö
Ö
Ö
Ö
Ö
1500000
R010 is OFF
6F3B0250

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prosec t1s

Table of Contents