Ctud - Omron NY532-5400 Reference Manual

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

Advertisement

CTUD

The CTUD instruction creates an up-down counter that operates according to an up-counter input and a
down-counter input. The preset value and counter value must have an INT data type.
Instruction
CTUD
Up-down Counter
Variables
Name
Meaning
CU
Up-counter
input
CD
Down-
counter
input
Reset*
Reset
signal
Load*
Load signal
PV
Preset
value
QU
Up-counter
output
QD
Down-
counter
output
CV
Counter
value
* On Sysmac Studio version 1.03, you can use "R" instead of "Reset" and "LD" instead of "Load" to more clearly show the cor-
respondence between the variables and the parameter names in ST expressions. For example, you can use the following
notation: CTUD_instance(CU:=A, CD:=B, R:=abc, LD:=def, PV:=INT#3, QU=>ghi, QD=>jkl, CV=>mno);.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FB
I/O
Description
Up counter input
Down counter input
TRUE: Reset CV to 0.
Input
TRUE: CV set to PV.
The final counter value
when operating as an up
counter
The initial counter value
when operating as a down
counter
TRUE: up-counter output
ON
FALSE: up-counter output
OFF
TRUE: down-counter output
Output
ON
FALSE: down-counter out-
put OFF
Counter present value
2 Instruction Descriptions
Graphic expression
CTUD_instance
CTUD
CU
QU
CD
QD
Reset
CV
Load
PV
Valid range
Depends on data type.
0 to 32767
Depends on data type.
0 to 32767
ST expression
CTUD_instance (CU, CD,
Reset, Load, PV, QU, QD,
CV);
Unit
Default
FALSE
---
0
---
---
2-155
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents