EasyManuals Logo

Mitsubishi FX3U Series Programming Manual

Mitsubishi FX3U Series
944 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
Page #567 background imageLoading...
Page #567 background image
565
FX3G/FX3U/FX3GC/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.5 FNC164 – HTOS / Hour to Second Conversion
21
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC275
Ex-Device
Inverter Comms
2. 32-bit operation (DHTOS and DHTOSP)
The time data (hour, minute, and second) stored in , +1, and +2 is converted into data in units of
"second", and stored to +1, .
For example, when "35 hours 10 minutes 58 seconds" is specified, the operation is as follows:
Error
An operation error is caused in the following case; The error flag M8067 turns ON, and the error code is stored in
D8067.
When the data of , + 1 or + 2 is outside the allowable range (error code: K6706)
Program example
In the program shown below, the time data read from the built-in PLC real time clock is converted into data in units of
"second", and stored to D100 and D101 when X020 turns ON.
Operation
Clock data reading operation by TRD (FNC166) instruction
Conversion operation into "second" by DHTOS (FNC164) instruction
S
S
S
D
D
Command
input
FNC164
DHTOS
S
D
hour
minute
second
S
+1
+2
secondS
S
(0 to 32767)
(0 to 59)
(0 to 59)
D
D
+1
35
10
58
S
+1
+2
126658S
S
D
D
+1
S
S
S
X020
D100
FNC166
TRD
D10
END
FNC164
DHTOS
D13
2004
1
31
D11
D10
D12
Year
20
21
23
D14
D13
D15
6D16
Month
Day
Hour
Minute
Second
Real time
clock
Day of week
Time data
Clock data
20
21
23
73283
D101,D100D13
D14
D15

Table of Contents

Other manuals for Mitsubishi FX3U Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX3U Series and is the answer not in the manual?

Mitsubishi FX3U Series Specifications

General IconGeneral
ModelFX3U Series
Program Memory64k steps
Execution Speed0.065 μs/basic instruction
TypePLC (Programmable Logic Controller)
Power Supply100-240V AC
I/O PointsUp to 384
CommunicationUSB
ExpansionSupported via expansion modules
High-Speed CountersUp to 6 channels
Analog Input/OutputAvailable via expansion modules
Temperature Range0 to 55°C
Programming LanguageLadder Logic, Structured Text
Built-in FunctionsPID control
Humidity5 to 95% (non-condensing)

Related product manuals