FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
24-5
24: C
LOCK
I
NSTRUCTIONS
TSUB (Time Subtraction)
Valid Devices
For valid device address ranges, see "Device Addresses" on page 2-1.
When Mode 0 is selected, source devices S1 and S2 and destination device D1 occupy 3 consecutive data registers starting with the designated
device.
When Mode 1 is selected, source device S1 and destination device D1 occupy 7 consecutive data registers starting with the designated device.
Source device S2 occupies 3 consecutive data registers starting with the designated device.
Since the TSUB instruction is executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be used.
S1 – S2
→
D1, CY
When input is on, time data assigned by source device S2 is subtracted from date/
time data assigned by source device S1, depending on the selected mode. The result
is stored to destination device D1 and borrow (M8003).
S1
***
S2
***
D1
*****
TSUB
Mode
Device
Function
I
Q
M
R
T
C
D
P
Constant
Repeat
Mode
Selection of S1 data range
—
—
—
—
—
—
—
—
0, 1
—
S1 (Source 1)
Date/time data to subtract from
—
—
—
—
—
—
X
—
—
—
S2 (Source 2)
Time data to subtract
—
—
—
—
—
—
X
—
—
—
D1 (Destination 1)
Destination to store results
—
—
—
—
—
—
X
—
—
—
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 ...