Download it

Transcript
FX3U Series Programmable Controllers
User’s Manual - Hardware Edition
11.7 Timing of Updating of Current Value and Comparison of Current Value
Timing of Updating of Current Value and Comparison of Current Value
11.7.1 Timing of updating of current value
Classification
13
Timing of updating of current value
Software counter
When count is input
Wiring for
Various Uses
Hardware counter
OUT instruction of counter
HCMOV instruction
11.7.2 Comparison of current value
14
1. Use of comparison instruction (CMP), band comparison instruction (ZCP) or contact
comparison instruction
To compare the value with the high-speed counter's changing value and to change the output contact
(Y), use Comparison instruction for high-speed counters (HSCS/HSCR/HSZ/HSCT instruction).
2. Use of Comparison instruction for high-speed counters (HSCS/HSCR/HSZ/HSCT instruction)
Applied instruction
Limitation on number of times of use of instruction
Up to 32 times including the number of times of use of
HSCT instruction
HSZ*1
HSCT*1
Only once
When HSZ or HSCT instruction is used, the maximum response frequencies and overall frequency of
all software counters becomes limited.
→ For the maximum response frequencies and overall frequency of software counters,
refer to Section 11.9.
18
Other Extension
Units and
Options
*1.
17
Extension
Power Supply
Unit
HSCS
HSCR
16
Input/Output
Extension
Blocks
Comparison instructions for high-speed counters (HSCS, HSCR, HSZ and HSCT instructions) perform
comparison and output the comparison results when the relevant high-speed counting operation. These
instructions have limitations on the number of times of use as shown in the following table.
When the output relay (Y) has been designated for comparison results, the ON/OFF status of the output is
affected directly until END instruction output is refreshed.
When the PLC is a relay output type, a mechanical delay in operation (approx. 10ms) is caused. Therefore,
use a transistor output type PLC.
15
IInput/Output
Powered
Extension Units
When the comparison results are necessary for counting operation, the value can be compared with time*1 in
the main program by using HCMOV instruction just before a comparison command (CMP command/ZCP
command) or a contact comparison instruction.
Test Run,
Maintenance,
Troubleshooting
To compare and output the current value of a high-speed counter, the following two methods are available.
*1.
12
Output Wiring
When a pulse is input to a high-speed counter input terminal, the counter increments or decrements. The
current value of the device is updated at the timing shown in the following table.
Therefore, when the hardware counter directly handles the current value of the high-speed counter for MOV
instruction or CMP instruction or an applied instruction (such as a contact comparison instruction), it uses the
current value updated at the timing shown in the following table. As a result, the counter operation is affected
by the scan time.
11
High-Speed
Counters
11.7
11 Use of High-speed Counters (C235 to C255)
19
Display Module
20
Terminal Block
191