Cntr/Cntrx - Omron SYSMAC CP Series Instruction & Reference Manual

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

Advertisement

CNTR/CNTRX

Instruction
REVERSIBLE COUNTER
BCD
Increment input
Symbol
Decrement input
Reset input
Applicable Program Areas
Area
Step program areas
Usage
OK
Operands
Operand
N
Counter Number
S
Set Value
N: Counter Number
The counter number must be between 0000 and 0255(decimal).
S: Set Value
CNTR (BCD):#0000 to #9999
CNTRX (Binary): &0 to &65535 (decimal) or #0000 to #FFFF (hex)
Operand Specifications
Word addresses
Area
CIO
WR
HR
N
---
---
---
S
OK
OK
OK
Flags
Name
Error Flag
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
CNTR
---
CNTRX
---
CNTR
CNTR(012)
N
N: Counter number
S
S: Set value
Description
AR
T
C
DM
---
---
---
OK
OK
OK
OK
Label
P_ER
• ON if in BCD mode and S does not contain BCD data.
• OFF in all other cases.
Function
code
012
548
Binary
Increment input
Decrement input
Reset input
Subroutines
OK
Data type
CNTR
CNTRX
COUNTER
COUNTER
WORD
UINT
Indirect DM addresses
Constants
@DM
*DM
---
---
---
OK
OK
OK
Operation
2 Instructions
Function
---
CNTRX
CNTRX(548)
N
N: Counter number
S: Set value
S
Interrupt tasks
OK
Size
1
1
CF
Pulse bits
TR bits
---
---
---
2-83
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents