Toshiba PROSEC T1 User Manual page 164

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

Advertisement

7. Instructions
FUN 028
Expression
Input -[ A - B ® C ]- Output
Function
When the input is ON, the data of B is subtracted from the data of A , and the result is stored in C .
If the result is greater than 32767, the upper limit value 32767 is stored in C , and the output is turned
ON. If the result is smaller than -32768, the lower limit value -32768 is stored in 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 constant data 2500 is subtracted from the data of D0200, and the result is
stored in RW50.
If the data of D0200 is 15000, the result 12500 is stored in RW50, and R010 is turned OFF.
D0200
15000
Constant
2500
If the data of D0200 is -31000, the result is smaller than the limit value, therefore -32768 is stored
in RW50, and R010 is turned ON.
D0100
-31000
Constant
2500
162
T1/T1S User's Manual
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
-
Subtraction
Operation
Device
X
Y
R
S
T.
C. XW YW RW SW T
-
Underflow
-
Output
OFF
OFF
ON
Register
C
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
RW50
12500
RW50
-32768
6F3B0250
Constant Index
D
I
J
K
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
R010 is OFF
R010 is ON
Ö
Ö
Ö

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prosec t1s

Table of Contents