Tsub (Time Subtraction) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

TSUB (Time Subtraction)

TSUB
Mode
Valid Devices
Device
Mode
S1 (Source 1)
S2 (Source 2)
D1 (Destination 1)
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
***
***
*****
Function
Selection of S1 data range
Date/time data to subtract from
Time data to subtract
Destination to store results
FC6A S
MICROS
ERIES
MART
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).
I
Q
L
P
M
ADDER
ROGRAMMING
ANUAL
24: C
LOCK
M
R
T
C
D
P
X
X
X
FC9Y-B1726
I
NSTRUCTIONS
Constant
Repeat
0, 1
24-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents