Jump to content


ledbelly2142

Member Since 02 Aug 2011
Offline Last Active Feb 06 2013 01:13 PM

Topics I've Started

Problematic Modbustcp Device

08 January 2013 - 10:53 AM

I have a ModbusTCP device that appears to stop responding at 6:13am every day... but its not consistent. I have the device set up to run from a script to get channel data every 300 seconds. This device is a gateway and I have several sequences running separately to gather channel data.

Can my multiple sequences cause a problem?

When monitoring the comms channel for this device, the last line that appears is a good Rx line, then nothing.

The general symptom error in the command line is a ModbusTCP port locks and timeouts.

The device will accept multiple simultaneous connections.

I have increased the time for this device to 1 sec in an attempt to reduce timeouts.

To fix this, I restart DF. I can set the system to restart every day... but that is not an option I would like to rely on.

What else can I check?

Calculating Equipment Runtim

24 October 2012 - 02:40 PM

I am monitoring equipment through relays with an on=1 or off=0 value, I would like to use the channel array to determine how long (in seconds) the equipment (or relay) has been on.

I am not sure where to start.

Maybe a combination of GetTime and SeqAdd?

There is an example of counting the uptime of a digital channel using Var. on page 95.


Thanks

Using A Sequence To Write To A Modbus Registery

24 October 2012 - 07:29 AM

I would like to use a sequence to write a value to a Modbus register. Using a component to write to a Modbus registry is straight forward, however, I would like to use an alarm that starts a sequence that changes registry values on a Modbus device.

I have tried a couple of variations of the following:

device.MyDevice.334 = 0

Watching my comm Monitor, I am not writing anything, so I have the syntax wrong. I have tried using different values for the channel number, e.g. 40334, etc..

What is the correct syntax in a sequence to write to a Modbus device registry?

Thanks

Modbus Register And Bit Value

22 October 2012 - 03:20 PM

I have a modbus registry value that is the status of 5 relays in bit representation... the bit values indicate the on/off stat of the relays in order (e.g. 1, 2, 3, 4 ,5).

The variable value component reads the binary notation and converts it into a number, which I think is normal. So when some of the relays are on, I get a value of "9".

How can I display the registry value in bit representation, and how can I make it useable for logging relay run time?

I would like to log relay 1 runtime, relay 2 runtime, etc...

Thanks

Channel History And Persist: What Happens When Values (Settings) Are Changed?

15 October 2012 - 08:20 AM

If I change the values on a channel "history" (stored in RAM) and or "Persist" (stored on your hard drive in the DAQFactory install folder), will I lose the history from that point backward?

I changed the Persist value  in a channel from 100,000 to 1,000,000... and I lost the data going back in history from the point in time when I changed the value.

How can I change these values without losing history?

Thanks