EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 573

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
571
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Function and operation explanation
1. 16-bit operation
The second unit data of the device specified by is converted into "hour, minute, second" unit, and the
result is stored in the device specified by .
For example, when 29011 seconds is specified, the operation is as follows.
2. 32-bit operation
The second unit data of the device specified by is converted into "hour, minute, second" unit, and the
result is stored in the device specified by .
For example, when 45325 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.
Error
In the following case, it is an operation error, and the error flag (M8067) is turned ON, and the error code is
stored in D8067.
1) When the data of the device specified by is out of the range. (Error code: K6706)
STOH
EN
s
ENO
d
Command
input
Device for storing the time data in
second unit before conversion
Device for storing the time data in "hour, minute, second"
unit after conversion
hour
minute
second
+1
+2
(0 to 9)
(0 to 59)
(0 to 59)
second (0 to 32767)
s
d
d
d
d
8
3
31
+1
+2
29011
s
d
d
DSTOH
EN
s
ENO
d
Label
Command
input
Device for storing the time data in "hour, minute, second"
unit after conversion
(The device for storing
the time data in second
unit before conversion
is defined.)
hour
minute
second
+1
+2
(0 to 32767)
(0 to 59)
(0 to 59)
second (0 to 117964799)
+1
s
d
d
d
s
12
35
25
+1
+2
45325
+1
d
d
d
ss

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals