20:
C
LOCK
I
NSTRUCTIONS
FC5A
M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y
‐
B1273
20
‐
9
HTOS
(HMS
to
Sec)
Applicable
CPU
Modules
Valid
Devices
For
the
valid
device
address
range,
see
pages
and
(
Basic
Vol.).
Source
device
S1
occupies
3
consecutive
data
registers
starting
with
the
designated
device.
Data
registers
D0
‐
D1997,
D2000
‐
D7997,
and
D10000
‐
D49997
can
be
designated
as
source
device
S1.
Destination
device
D1
occupies
2
consecutive
data
registers
to
store
double
‐
word
data,
starting
with
the
designated
device.
Data
regis
‐
ters
D0
‐
D1998,
D2000
‐
D7998,
and
D10000
‐
D49998
can
be
designated
as
destination
device
D1.
Hour
data
can
be
0
through
65535.
Minute
and
second
data
can
be
0
through
59.
When
any
of
the
hour,
minute,
or
second
data
is
out
of
the
valid
range,
a
user
program
execution
error
will
result,
turning
on
special
internal
relay
M8004
and
the
ERR
LED
on
the
CPU
module.
The
instruction
is
not
executed.
Since
the
HTOS
instruction
is
executed
in
each
scan
while
input
is
on,
a
pulse
input
from
a
SOTU
or
SOTD
instruction
should
be
used
as
required.
Examples:
HTOS
The
following
examples
demonstrate
the
HTOS
instruction
to
convert
time
data
in
hours,
minutes,
and
seconds
into
sec
‐
onds
and
store
the
results
to
two
consecutive
data
registers.
FC5A
‐
C10R2/C/D
FC5A
‐
C16R2/C/D
FC5A
‐
C24R2/C/D
FC5A
‐
D16RK1/RS1
FC5A
‐
D32K3/S3
FC5A
‐
D12K1E/S1E
X
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
Repeat
S1
(Source
1)
Time
data
in
hours,
minutes,
seconds
— — — — — —
X
—
—
D1
(Destination
1)
Destination
to
store
results
— — — — — —
X
—
—
Hours,
minutes,
seconds
Seconds
When
input
is
on,
time
data
in
hours,
minutes,
and
seconds
designated
by
source
device
S1
is
converted
into
seconds.
The
result
is
stored
to
destination
device
D1.
This
instruction
is
available
on
upgraded
CPU
modules
with
system
program
version
210
or
higher.
S1
*****
D1
*****
HTOS
I0
D1
D100
S1
D0
HTOS
Source
1
2
D0
(Hour)
10
D1 (Minute)
40
D2 (Second)
7840
D100
∙
D101
(Second)
Destination
1
Source
1
40
D0
(Hour)
30
D1 (Minute)
20
D2 (Second)
145820
D100
∙
D101
(Second)
Destination
1
Summary of Contents for MICROSmart FC5A Series
Page 1: ...FC5A SERIES FC9Y B1273 1 User s Manual Advanced Volume ...
Page 2: ......
Page 8: ...Preface 6 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 14: ...TABLE OF CONTENTS vi FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 52: ...4 DATA COMPARISON INSTRUCTIONS 4 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 72: ...5 Binary Arithmetic Instructions 5 20 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 88: ...7 SHIFT ROTATE INSTRUCTIONS 7 12 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 112: ...8 DATA CONVERSION INSTRUCTIONS 8 24 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 138: ...11 PROGRAM BRANCHING INSTRUCTIONS 11 14 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 178: ...13 PULSE INSTRUCTIONS 13 32 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 202: ...14 PID INSTRUCTION 14 24 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 206: ...15 DUAL TEACHING TIMER INSTRUCTIONS 15 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 214: ...16 INTELLIGENT MODULE ACCESS INSTRUCTIONS 16 8 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 248: ...21 COMPUTER LINK COMMUNICATION 21 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 272: ...23 MODBUS TCP COMMUNICATION 23 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 332: ...25 EXPANSION RS232C RS485 COMMUNICATION 25 16 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 341: ...NOTE FC5A MICROSMART USER S MANUAL FC9Y B1273 1 ...
Page 342: ...NOTE 2 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...