DTR mask value

73project

Member
Join Date
Nov 2008
Location
Salt Lake City
Posts
11
I currently trying to figure out what a petiular DTR instuction is doing in a RSlogix 5000 program. The instruction is using a tag value and then applying a mask. The question that I have is that the mask value in displayed as a negative one! If anyone out there has any insight into what a negative one mask accomplishes, please enlighten me!
 
The mask should be viewed in binary or hex representation for better readability

The DTR instruction is a weird one in that it is an input instruction that also writes to the reference value.

It is used to generate a true condition once each time the reference value does not match the source value.

It uses the mask to determine which bits to compare and which ones to ignore. The 1's are bits to be compared, and the 0's are bits to be ignored.

So each time the DTR is scanned, it will compare the source to the reference using the mask, and if there is a difference, it will allow the flow of logic to the next instruction, and write the source to the reference, also using the mask so as not to disturb the bits you want to ignore.

Paul
 
Thanks for the response, but my mask value(not the reference) is displayed as a -1. If I hover the mouse over the mask value, it displays "value:1"?? I didn't know if this "-1" manipulates the mask in some other way.
 

Similar Topics

Hi All, I'd like to know can we use DTR instruction to get a week pulse ? Could anyone please help me to understand that one ? I've managed to...
Replies
4
Views
180
The DTR requires a DINT This is a PLC5 conversion to Controllogix without altering the HMI So the N files must be Ints not Dints Here I have moved...
Replies
5
Views
2,654
Hi, What I wonder that 43f28000 meaning because I know that 1e5 = 485 decimal value but I say nothing about 43f28000. for example how can I...
Replies
2
Views
2,248
Hi, How can i activate DTR pin in channel 1 of an Allen Bradley Micrologix 1500 using Ladder Logic???? Thanks in advance, lectularius
Replies
1
Views
1,755
If anyone can give me an example of using this instruction I would be happy. I have tried and failed. Lets say I want to track a preset value on...
Replies
6
Views
5,274
Back
Top Bottom