Timing Of Updating Of Current Value And Comparison Of Current Value; Timing Of Updating Of Current Value; Comparison Of Current Value - Mitsubishi FX3U-?*MR/ES User Manual

Fx3u series programmable controllers
Table of Contents

Advertisement

FX
Series Programmable Controllers
3U
User's Manual - Hardware Edition
11.7

Timing of Updating of Current Value and Comparison of Current Value

11.7.1 Timing of updating of current value

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.
Classification
Hardware counter
Software counter

11.7.2 Comparison of current value

To compare and output the current value of a high-speed counter, the following two methods are available.
1. Use of comparison instruction (CMP), band comparison instruction (ZCP) or contact
comparison instruction
When the comparison results are necessary for counting operation, the value can be compared with time
the main program by using HCMOV instruction just before a comparison command (CMP command/ZCP
command) or a contact comparison instruction.
*1.
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)
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 simultaneously driven instructions as shown in the following
table. The HSCT instruction can only be used once in any program.
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.
Applied instruction
HSCS
HSCR
*1
HSZ
*1
HSCT
*1.
When HSZ or HSCT instruction is used, the maximum response frequencies and overall frequency of
all software counters becomes limited.
216
Timing of updating of current value
OUT instruction of counter
HCMOV instruction
When count is input
Limitation in number of instructions driven at same time
32 instructions including HSCT instruction
Only 1 (This instruction can only be used once.)
→ For the maximum response frequencies and overall frequency of software counters,
11 Use of High-speed Counters (C235 to C255)
11.7 Timing of Updating of Current Value and Comparison of Current Value
*1
in
refer to Section 11.9.

Advertisement

Table of Contents
loading

Table of Contents