Data Transitional (Dtr); Relay Ladder; Enter An Immediate Mask Value - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 13
Special Instructions (FBC, DDT, DTR, PID)

Data Transitional (DTR)

Description:
Arithmetic Status Flags:
508
The DTR instruction passes the Source value through a Mask and compares
the result with the Reference value.
Operands:

Relay Ladder

Operand
Source
Mask
Reference
The DTR instruction passes the Source value through a Mask and compares
the result with the Reference value. The DTR instruction also writes the
masked Source value into the Reference value for the next comparison. The
Source remains unchanged.
A '1' in the mask means the data bit is passed. A '0' in the mask means the data
bit is blocked.
When the masked Source differs from the Reference, the rung-condition-out
goes true for one scan. When the masked Source is the same as the Reference,
the rung-condition-out is false.

Enter an Immediate Mask Value

When you enter a mask, the programming software defaults to decimal values.
If you want to enter a mask using another format, precede the value with the
correct prefix.
Prefix
16#
8#
2#
Not affected
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
DINT
Immediate
Tag
DINT
Immediate
Tag
DINT
Tag
ATTENTION: Online programming with this instruction can be
dangerous. If the Reference value is different than the Source
value, the rung-condition-out goes true. Use caution if you insert
this instruction when the processor is in Run or Remote Run mode.
Description
Hexadecimal
For example; 16#0F0F
Octal
For example; 8#16
Binary
For example; 2#00110011
Description
Array to compare to the reference
Which bits to block or pass
Array to compare to the source

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents