EasyManua.ls Logo

Mitsubishi Electric MELSEC FX3U - Page 619

Mitsubishi Electric MELSEC FX3U
1000 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...
617
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.2 FNC184 – RND / Random Number Generation
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-FNC274
Ex-Device
Inverter Comms
Program example
In the program example shown below, a random number is stored to D100 every time X010 turns ON.
When the PLC mode switches from STOP to RUN, the time data converted into seconds and added by the
value “(Year + Month) × Day” is written to D8311 and D8310.
Data in hour, minute and second
Data in second
X010
FNC184
RNDP
D100
END
M8002
FNC166
TRD
D0
FNC164
DHTOS
D14D3
FNC 20
ADD
D10D1D0
FNC 20
DADD
D8310D12D14
The clock data is read.
The data in second is added by the value “(Year +
Month)
×
Day”, and written to D8311 and D8310.
FNC 23
MUL
D12D2D10

Table of Contents

Related product manuals