Mitsubishi Electronics FX3G User Manual

Page of 964
355
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.4 FNC 53 – HSCS / High-Speed Counter Set
11
FN
C30
-FN
C3
9
R
ota
tion and 
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
 
Proc
essing
14
FM
C60-FN
C69
H
andy 
In
struction
15
FN
C70-FN
C79
E
xternal
 F
X
 I/O
 
De
vice
16
FNC
80-FNC
89
External
 FX 
Dev
ice
17
FNC1
00-
FNC10
9
Dat
Transfer 2
18
FNC1
10-
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
 
Operation 2
20
FNC1
50-
FNC159
Pos
itioning 
Control
6. Priority order in operations among HSCS (FNC 53), HSCR (FNC 54), and HSZ (FNC 55) 
instructions for the same high-speed counter
1) FX
3U
/FX
3UC
 PLCs
When the same comparison value is used for the same high-speed counter in the HSCS, HSCR and HSZ
instructions, reset (self-reset) of the comparison target high-speed counter for the HSCR instruction is executed
with the highest priority (as shown in the table below).
In this case, the comparison results do not change in HSCS, HSCR, and HSZ instructions whose comparison
value is programmed to be the same as the comparison value for self-reset by HSCR instruction.
To change the comparison results, set the comparison value to "K0".
2) FX
3S
/FX
3G
/FX
3GC
 PLCs
In FX
3S
/FX
3G
/FX
3GC
 PLCs, the HSCS, HSCR and HSZ instructions are executed in the order of programming.
Operation of FX
3S
/FX
3G
/FX
3GC
/
FX
1S
/FX
1N
/FX
1NC
/FX
2N
/FX
2NC
 PLCs [reference]
*3. Due to the response delay at the output, the output
may not operate within the short time before the
counter's present value is reset to "0".
7. Timing at which the instruction is executed
The comparison instruction for high-speed counter is executed at the END instruction for the scan in which the
comparison instruction is driven.
When the comparison value is changed, the changed comparison instruction also becomes effective at the END
instruction for the scan in which the comparison instruction is driven.
Program 
sequence
Processing sequence
FX
3U
/FX
3UC
FX
3S
/
FX
3G
/FX
3GC
/
FX
2N
/FX
2NC
FX
1N
/FX
1NC
/
FX
1S
DHSCS (1)
DHSCR (6)
(self-reset)
DHSCS (1)
DHSCS (1)
DHSCS (2)
DHSZ (4)
DHSCS (2)
DHSCS (2)
DHSCR (3)
DHSCS (1)
DHSCR (3)
DHSCR (3)
DHSZ (4)
DHSCS (2)
DHSZ (4)
(Not supported)
DHSCR (5)
DHSCR (3)
DHSCR (5)
DHSCR (5)
DHSCR (6)
(self-reset)
DHSCR (5)
DHSCR (6)
(self-reset)
DHSCR (6)
(self-reset)
M8000
C235
K10000
(1)
(2)
(3)
FNC 53
DHSCS
K500
C235
Y000
K500
C235
Y001
K500
C235
Y002
FNC 53
DHSCS
FNC 54
DHSCR
M8000
(4)
FNC 55
DHSZ
K250
K500
C235
K250
K500
C235
FNC 11
DZCPP
Y003
Y003
M8000
(5)
FNC 54
DHSCR
K500
C235
K500
C235
FNC 54
DHSCR
Y006
C235
(6)
Self-reset program
500
250
0
Present value
Y003
Y004
Y005
Y000 to Y002 and Y006 do not change.
*1
ON
ON
OFF
OFF
It does not change.
*2
Operation of FX
3U
/FX
3UC
 PLCs
*1.
To change the comparison results by the instructions (1)
to (3) and (5), change the comparison value "K500" in the
instructions (1) to (3) and (5) to "K0".
*2.
To set Y005 to ON in the HSZ instruction (4), set a value
smaller than the comparison value "K500". However, due
to the response delay at the output, the output may not
operate within the short time before the counter's present
value is reset to "0".
500
250
0
Present value
Y003
Y004
Y005
ON
ON
ON
Present value:1
Y000,Y001
Y002
ON
OFF
*3
Present value:1