Ct16- (16-Bit Counter) - Panasonic FP7 Series Additional Functions Manual

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

Basic Instructions

2.3 CT16- (16-bit Counter)

 Instruction format
X100
Count
X101
Reset
C100
 Operation unit (i)
There is no operation unit.
 List of operands
Operand
Description
n
Counter number (Settalbe range: 0 to 1023 *For the default memory configuration)
S
Counter setting value (Settable range: U0 to U65535)
 Available devices (●: Available)
Operand
WX WY WR WL WS SD
n
S
Only 16-bit deivces, 32-bit devices, and integer constants can be modified. (Real number constants and character
*1:
constants cannot be specified.)
 Outline of operation
This instruction is different from CT instruction. The range settable by the setting value [S] is
U0 to U65535.
 All counters are subtraction preset counters.
 When the reset input is switched from ON to OFF, the value of the setting value area CS is
preset in the elapsed value area CE.
 When the reset input is on, the elapsed value is reset (cleared to zero). When the count
input changes from the off state to the on state, the setting value is subtracted. When the
elapsed value becomes U0, it is output to the counter contact.
 When the count input and reset input turn on simultaneously, the reset input has priority.
 When the rise of the count input and the fall of the reset input are detected at the same time,
the count input is ignored and only the preset is executed.
 It is also possible to describe OT instruction right after the counter instruction.
For details of this instruction, refer to the description of CT instruction in FP7 CPU Unit
Programming Manual.
2-6
n
16-bit device
DT
LD
UM
CT16-
100
U10
S
Y131
32-bit device
TS
TE
WI WO
IX
K
CS
CE
Real
Integer
String
number
U
H
SF
DF
" "
Index
modifier
*1

Advertisement

Table of Contents
loading

Table of Contents