EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 574

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
572
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Program example
This is a program for converting the second unit data stored in D0, D1 when the X020 is turned ON, into the
"hour, minute, second" unit, and storing the result in D100, D101, D102.
Operation
1) Conversion into the "hour, minute, second" unit by STOHP instruction (when 40000 seconds is specified
by D1, D0)
[ST]
D100:=DSTOH(X020,VAR_SECOND)
[Structured ladder]
DSTOH
EN
s
ENO
d
D100VAR_SECOND
X020
VAR_SECOND is a global label,
and D100 is defined.
11
6
40
40000D1,D0
D100
D101
D102

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals