Rtcset On, Rtcset Off - Hitachi NT2021XA Instruction Manual

Easy-sequence programming software
Table of Contents

Advertisement

rtcset on, rtcset off

- Format
rtcset on
<variable>
rtcset off
<variable>
- Explanation
This instruction is a function in the WJ200 Series.
The clock data of six bytes sent from WOP is stored in six bytes that make
"year", "month", "date", "day of the week", "hour" and "minute".
In the rtcset on instruction, the clock data is regularly updated after the clock data is substituted.
In the rtcset off instruction, the update of the clock data by rtcset on instruction is stopped after the clock data is substituted.
The data stored in "rtcset on / off U (00)" are as follows.
Example) Monday, April 19, 2010 11:15
U (00) = 1004h = 4100
U (01) = 1901h = 6401
U (02) = 1115h = 4373
Moreover, it is as follows when a variable is set to UL (00).
UL (00) = 10041901h = 268704001
UL (01) = 11150000h = 286588928
Note :
It is necessary to connect WOP with the inverter to acquire the clock data. When WOP is not connected, all
clock data is set to 0.
- Sample program : Program to make the inverter operate the motor for forward rotation for 1 hour
(Code area [Code Window])
Label
Mnemonic
entry
rtcset
U(04)=
ifs
then
U(04)=
end if
rtcset
FW=
LOOP
if
rtcset
FW=
end
(Data area [Data Window])
U(00) = &H0100
U(01) = &H2400
Instruction to start / stop the update of clock data
Format
(The last 2 digits at the year: 00h to 99h / Month: 01h to 12h)
(Date: 01h to 31h / Day of the week: Sun.(00h) to Sat.(06h))
(Hour: 00h to 23h / Minute: 00h to 59h)
The last 2 digits at the year / Month / Date / Day of the week
hour / Minute / 0000h
parameter1
parameter2
parameter3
off
U(02)
U(04)
+
U(00)
U(04)
>=
U(01)
U(04)
-
U(01)
on
U(05)
1
U(07)
<>
U(04)
off
U(05)
0
The clock data is substituted for six bytes that make
<variable>
a head. Moreover, the clock data is
regularly updated.
The clock data is substituted for six bytes that make
<variable>
a head. Moreover, the update of the
clock data is stopped.
<variable>
parameter4
parameter5
then
LOOP
1 hour
24:00
2-33
Chapter 2 Syntax
Description
a head. Clock data is 1 byte for each in
: Clock data is stored in U (02) to U (04).
: Add to the present time for 1 hour.
: When it will be data more than in 24:00,
it pulls for 24 hours.
: Clock data is stored in U (05) to U (07).
: Start forward rotation of the motor.
: Stop the update of the clock data.
: Decelerate and stop the motor.

Advertisement

Table of Contents
loading

Table of Contents