7 Applied Instructions
7.15 Real Time Clock Control
581
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
Cautions
1) When handling array data or 32-bit data in structured program, you cannot specify 16-bit device directly
unlike the simple project.
When handling array data or 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.
2) FX
2N, FX2NC PLCs are supporting the instruction at V3.00 or later.
3) Number of devices occupied
The device specified by occupies two devices (16-bit operation) or three devices (32-bit operation).
4) Be careful not to overlap with the devices used in machine control.
S1: FX
3U, FX3UC PLCs only are applicable, index (V, Z) decoration is disabled.
S2: FX
3U, FX3UC, FX3G PLCs only are applicable.
S3: FX
3U, FX3UC PLCs only are applicable.
Program example
When the cumulative total of ON time duration of X000 exceeds 300 hours, Y005 is turned ON.
In D201, the present time of less than one hour is stored in one-second unit.
: Time setting for turning ON
Specified in one-hour unit.
: Present value of one-hour unit
+1 : Present value of less than one hour (one-second unit)
: Specification of alarm output
To be turned ON when the present value of the device specified by exceeds the
specified time of the device specified by . (In this example, to be turned ON when
reaching 300 hours + 1 second.)
VAR_TIME is a global label,
and D200 is defined.
[Structured ladder]
[ST]
VAR_TIME:=HOUR(X000,K300);
Y005:=HOUR(X000,K300);
HOUR
EN ENO
d1
d2
s
Y005
K300 VAR_TIME