micrologix null value?

ryrzu

Member
Join Date
Feb 2013
Location
Gdańsk
Posts
24
Hello,
Is it possible to put null or delete value in data table in micrologix?
Micrologix is using modbus to get data and store it in integer (N) data file. Then data is read by rslinx. If modbus communication fail data in file remain unchanged so in rslinx (and further in my application) i get old data which i simply don't want to have because its hard to spot when there was communication lose and when data was simply static. I prefere to have empty fields - it will not populate my database with false data and allow to notice communication error faster.
 
Is zero ever a valid data value for your process ?

If not, you can just use the .ER bit of the Modbus message instruction to populate the target data fields with zeroes. Use the MOV or FLL instructions.
 
Thank you for replies.
Unfortunately "0" can be valid. Moreover those are readings from meters (WAGES) and no data is better than bad data in further reports.
 
You could fill the data fields with "nonsense" data, -32768, for instance. Or, you could read the "data is valid" flag, and simply NOT read the data if it isn't valid.

The thing about Logix5/Logix500 data-tables, and Logix5000 tag databases, is that none of them have the functionality of a "proper" database, where a data-location can be "empty" or "uninitialised". They all have to contain valid data for the data-type, since every bit is used.
 
Last edited:

Similar Topics

Hey all, first time poster here. I am wondering if anyone has tried using a Keyence SR-X300 barcode scanner to a Micrologix 1400. Keyence sent...
Replies
0
Views
34
I have been working on this for a while now and I can't seem to get it. I was finally able to view the 1500 on the PanelView under the serial...
Replies
1
Views
85
I'm using a SLC typed write from the ControlLogix5572 to the MicroLogix 1400, with path: 2, (MicroLogix IP). The ControlLogix equipment has a...
Replies
0
Views
97
"Hello! Good day! Excuse me, I have a question regarding the 1761-NET-ENI. RSLinx has already detected it but it's not connecting to the PLC...
Replies
4
Views
134
Hi, I cannot find the DLCA1764.EXE utilty software for data retrieving. Can someone share the link to download this software. Thanks!
Replies
4
Views
124
Back
Top Bottom