Mitsubishi Electronics QCPU Welding System User Manual


  Open as PDF
of 1204
 
7-357
(DT=,DT<>,DT>,DT<=,DT<,DT>=)
1
2
3
4
6
6
7
8
7.15 Clock instructions
7.15.7 Date comparison (DT=,DT<>,DT>,DT<=,DT<,DT>=)
When either or corresponds to any of the following in comparing given or
current date data with given date data, the operation error (error code: 4101) or a
malfunction may occurs.
• The range of the devices to be used for the index modification is specified over
the range of the device specified by or .
• File registers are specified by or without a register set.
(2) This instruction sets BIN values for each item.
(3) This instruction sets the year of four digits selected from 1980 to 2079 with the BIN value
specified by or .
(4) This instruction sets the month selected from 1 to 12 (January to December) with the BIN
value specified by +1 or +1.
(5) This instruction sets the day selected from 1 to 31 (1st to 31st) for with the BIN value
specified by +2 or +2.
(6) This instruction specifies the following values at n so that the data to be compared can be
specified.
The bit configuration specified at n is as follows.
(a) Date data to be compared (from 0 to 2nd bit)
0: Does not compare specified date data (year/month/day).
1: Compares specified date data (year/month/day).
(b) Operation data to be compared (15th bit)
0: Compares the date data specified by with the date data specified by .
1: Compares the date data specified by with the current date data.
Ignores the date data specified by .
S1
S2
S1
S2
S1
S2
S1
S2
S1
S2
S1
S2
b15 b14 b3 b2 b1 b0
0/1 0 0/1 0/1 0/1
Day
Month
Year
This instruction specifies 0 at bits from 3rd to 14th.
The instruction will be non-conductive status without
specifying 0 regardless of the operation result.
If this instruction specifies 1 (on) at 15th bit, the
instruction compares S1 with the current date in
accordance with the bit condition specified at 0 to 2nd
bit.
S1
S2
S1
S2