EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 570

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.15 Real Time Clock Control
568
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Function and operation explanation
1. 16-bit operation (HTOS/HTOSP)
The time data (hour, minute, second) of the device specified by is converted into the second unit, and
the result is stored in the device specified by .
For example, when 4 hours, 29 minutes, 31 seconds is specified, the operation is as follows.
2. 32-bit operation (DHTOS/DHTOSP)
The time data (hour, minute, second) of the device specified by is converted into the second unit, and
the result is stored in the device specified by
For example, when 35 hours, 10 minutes, 58 seconds is specified, the operation is as follows.
Cautions
1) When handling 32-bit data in structured program, you cannot designate 16-bit device directly unlike the
simple project.
When handling 32-bit data, please use the label.
However, the 32-bit counter is a 32-bit long device, and 32-bit data can be specified directly.
When specifying the device, use the global label.
HTOS
EN
s
ENO
d
Head device for storing the time data (hour,
minute, second) before conversion
Command
input
Device for storing the time data (hour,
minute, second) after conversion
hour
minute
second
+1
+2
second
(0 to 9)
(0 to 59)
(0 to 59)
s
s
s
d
4
29
31
16171+1
+2
s
s
s
d
DHTOS
EN
s
ENO
d
Label
Command
input
Head device for storing the time data (hour,
minute, second) before conversion
The device for storing the time data
(seconds) after conversion is defined.
hour
minute
second
+1
+2
second
(0 to 32767)
(0 to 59)
(0 to 59)
+1
d d
s
s
s
35
10
58
+1
+2
126658
+1
s
s
d d
s

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals