Delta Electronics VFD037CH23A-21 — функции PLC: Чтение данных календаря и управление временем [549/638]

Превью страниц Страница 549 / 638
Delta Electronics VFD185CH23A-21 Руководство по эксплуатации онлайн [549/638] 460299
Chapter 16 PLC Function CH2000 Series
16-96
API
166
TRD
P
Read calendar data
Bit Devices Word Devices
X
Y
M
K H KnX KnY KnM T C D
D
Operands:
Please refer to the specifications of each model for the
range of operands.
16-bit command (5 STEPS)
TSUB
TSUBP
32-bit command
Flag signal:
Explanation
S
1
: Time Minuend S
2
: Time Addend D: Addition Result
D: The device stores the current time of calendar (occupies 7 continuous devices)
A perpetual calendar clock is built in the EH/SA series PLC and this clock provide
year (A.D.), week, month, date, hours, minutes and seconds total 7 data devices
stored in D1063~D1069. The function of TRD command is for program designer to
read the current time of perpetual calendar directly and store the reading data in
the 7 data registers specified by D.
D1063 reads only the last two digits of a year.
Example
When X0=On, read the current time of perpetual calendar to the specified
register D0~D6.
The content of D1064: 1 is indicated Monday, 2 is indicated Tuesday,…, 7 is
indicated Sunday.
X0
TRD D0
special D Item
content
normal D Item
D1063 Year 00~99
D0 Year
D1064 week 1~7
D1 week
D1065 month 1~12
D2 month
D1066 day 1~31
D3 day
D1067 hour 0~23
D4 hour
D1068 minute 0~59
D5 minute
D1069
second
0~59
D6 second

Содержание

1610

Изучите функции PLC для чтения данных календаря, включая год, месяц, день и время. Узнайте, как использовать команды для управления временем в системах автоматизации.