Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
349
FX3G/FX3U/FX3UC Series Programmable Controllers
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
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
2) FX3G PLCs
When the HSCS instruction is used in FX
3G PLCs, the total frequency of each counter is affected.
Refer to the counting operation described below, and select according to the contents of control whether to use
the HSCS instruction or a general-purpose comparison instruction.
a) Case to select the HSCS instruction
- When the output should be given if the counting result becomes equivalent to the comparison value
without regard to the scan time of the PLC
b) Cases to select a general-purpose comparison instruction
- When counting is regarded as important, but the effect of the scan time can be ignored in operations
according to the counting result
- When an instruction is used 6 times or more
2. Device specification range
Only high speed counters (C235 to C255) can be specified as .
3. Only 32-bit operation instructions are available.
Because instructions for high speed counters are dedicated to 32 bits, make sure to input "DHSCS (FNC 53)".
4. Priority order in operation among HSCS (FNC 53), HSCR (FNC 54), and HSZ (FNC 55)
instructions for a same high speed counter
For details, refer to "6. Priority order in operations among HSCS (FNC 53), HSCR (FNC 54), and HSZ (FNC
55) instructions for the same high speed counter" in Subsection 13.4.1.
5. Reset operation by an external terminal
For details, refer to "5. Reset operation by an external terminal" in Subsection 13.4.1.
6. For other cautions on using HSCS instruction, refer to the description later.
For details, refer to the next page.
Program example
With regard to the current value of a counter, different outputs (Y) are arbitrary set to ON by two values.
FNC229
LDD<=
K100 C251 SET Y010
Y010 K8
FNC 50
REF
S
M8000
C255
K2,147,483,647
FNC 53
DHSCS
K100 C255 Y010
C255 = K100
Y010 = ON
Set the maximum counting value of
high speed counter.
FNC 53
DHSCS
K150 C255 Y011
C255 = K150
Y011 = ON
RUN monitor
Comparison
value
Comparison
source
Output
destination
S
1
D
S
2
S
1
D
S
2
C255
Y010
Y011
0
99
100
101
149
150
151