Toshiba PROSEC T1-16S User Manual page 220

Programmable controller basic hardware and function
Hide thumbs Also See for PROSEC T1-16S:
Table of Contents

Advertisement

7. Instructions
FUN 155
CLDS
Expression
Input
[ A CLDS B ]
Function
When the input is ON, this instruction subtracts the date and time stored in 6 registers starting with
A from the current date and time, and stores the result in 6 registers starting with B.
If an invalid data is contained in the registers, the operation is not executed and the output is
turned ON.
Execution condition
Input
OFF
No operation
ON
Execution (data is valid))
No execution (data is not valid)
Operand
Name
X
A Subtrahend
B Result
Example
When R020 is ON, the date and time data recorded in D0050 to D0055 are subtracted from
the current date and time of clock/calendar, and the result is stored in D0100 to D0105.
In normal operation, the output is OFF (R0035 is OFF). If D0050 to D0055 contains invalid
data, the operation is not executed and the output is turned ON (R0035 comes ON).
Current date & time
H0098
H0001
H0015
H0017
H0000
H0000
Note
Future date and time cannot be used as subtrahend A.
In the calculation result, it means that 1 year is 365 days and 1 month is 30 days.
218
T1-16S User's Manual
Calendar operation
Output
Operation
Device
Y
R
S
T.
C. XW YW RW SW T
F
D0050
D0051
minus
D0052
D0053
D0054
D0055
Output
OFF
OFF
ON
Register
C
0
H0097
H0010
H0010
H0015
H0030
H0000
Constant Index
D
I
J
K
F
0
D0100
H0000
(Year)
D0101
H0003
(Month)
D0102
H0007
(Day)
D0103
H0001
(Hour)
D0104
H0030
(Minute)
D0105
H0000
(Second)
6F3B0253

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents