Toshiba PROSEC T1 User Manual page 238

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

Advertisement

7. Instructions
FUN 155
CLDS
Expression
Input -[ A CLDS B ]- Output
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
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.
236
T1/T1S User's Manual
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Calendar operation
Operation
Device
X
Y
R
S
T.
C. XW YW RW SW T
D0050
D0051
minus
D0052
D0053
D0054
D0055
Output
OFF
OFF
ON
Register
C
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
F
0
H0097
H0010
H0010
H0015
H0030
H0000
T1S only
Constant Index
D
I
J
K
Ö
Ö
Ö
Ö
F
0
D0100
H0000
D0101
H0003
D0102
H0007
D0103
H0001
D0104
H0030
D0105
H0000
6F3B0250
(Year)
(Month)
(Day)
(Hour)
(Minute)
(Second)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prosec t1s

Table of Contents