Ctd_** - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions

CTD_**

The CTD_** instruction decrements the counter value when the counter input signal is received. The
preset value and counter value must be one of the following data types: DINT, LINT, UDINT, or ULINT.
Instruction
CTD_**
Down-counter
Group
Variables
Name
Meaning
CD
Counter
input
*1
Load signal
Load
PV
Preset
value
Q
Counter
output
CV
Counter
value
*1 On Sysmac Studio version 1.03, you can use "LD" instead of "Load" to more clearly show the correspondence between
the variables and the parameter names in ST expressions. For example, you can use the following nota-
tion:CTD_LINT_instance(CD:=A, LD:=abc, PV:=LINT#5, Q=>def, CV=>ghi);.
*2 Negative numbers are excluded.
Bit string
CD
OK
Load
OK
PV
Q
OK
CV
Function
A CTD_** instruction creates a down counter. The preset value and counter value must be one of the
following data types: DINT, LINT, UDINT, or ULINT. The name of the instruction is determined by the
data type of PV and CV. For example, if they are the CV data type, the instruction is CTD_LINT.
2-148
Name
FB/FUN
FB
I/O
Description
Counter input
TRUE: Set CV to PV.
Input
Counter preset value
TRUE: Counter output ON
FALSE: Counter output OFF
Output
Counter present value
OK OK
Must be the same data type as PV
Graphic expression
CTD_**_instance
CTD_**
CD
Q
Load
CV
PV
"**" must be DINT, LINT, UDINT,
or ULINT.
Valid range
Depends on data type.
Depends on data
*2
type.
Depends on data type.
Depends on data
*2
type.
Integers
OK OK
NY-series Instructions Reference Manual (W560)
ST expression
CTD_**_instance (CD,
Load, PV, Q, CV);
"**" must be DINT, LINT,
UDINT, or ULINT.
Unit
Default
FALSE
---
0
---
---
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents