Difference between revisions of "2600"

From Sensoray Technical Wiki
Jump to: navigation, search
(Automatic reset: clarification - IOMs are also reset)
(Automatic reset)
Line 22: Line 22:
 
  SetWatchdogInterval(0, 35);  // 35 = 3.5 seconds
 
  SetWatchdogInterval(0, 35);  // 35 = 3.5 seconds
  
To completely disable the watchdog (so it cannot reset the 2601), set the interval to zero:
+
To completely disable the watchdog (so it cannot reset the 2601), set the interval to zero as shown below. Note that if the 2601 is reset for any reason (e.g., via command or power cycling), the interval will revert to ten seconds and must be disabled again.
  
 
  SetWatchdogInterval(0, 0);  // 0 = disable watchdog
 
  SetWatchdogInterval(0, 0);  // 0 = disable watchdog

Revision as of 12:54, 19 May 2017

Sensoray's 2600 series is a low-cost, modular Ethernet-based measurement and control system designed for applications such as machine control, industrial process control, building automation and remote data acquisition.

Contents

Automatic reset

My 2601 resets every 10 seconds (approximately) — is this normal?

This is normal behavior when no Ethernet clients are communicating with the 2601.

The 2601 employs a communication watchdog timer to measure the time since it last communicated with a client. By default, the watchdog will reset the 2601 if no communication has occurred within the last ten seconds, which in turn will reset all IOMs (slave modules) connected to the 2601. This behavior ensures that all I/O will be turned off in the event the client shuts down abnormally.

The watchdog interval defaults to ten seconds upon 2601 power-up or reset. If a different interval is needed, use a function like this to reprogram it:

u32 SetWatchdogInterval(u32 hbd, u8 tmax)
{
  void *x = S26_SchedOpen(hbd, 1);
  S26_Sched2601_SetWatchdog(x, tmax);  // timeout in 0.1s units
  return S26_SchedExecute(x, 1000, 0);
}

For example, this will set the watchdog interval to 3.5 seconds:

SetWatchdogInterval(0, 35);   // 35 = 3.5 seconds

To completely disable the watchdog (so it cannot reset the 2601), set the interval to zero as shown below. Note that if the 2601 is reset for any reason (e.g., via command or power cycling), the interval will revert to ten seconds and must be disabled again.

SetWatchdogInterval(0, 0);   // 0 = disable watchdog

Configuring the IP address

Null-modem cable

When configuring the 2601's IP address, a null-modem cable must always be used to connect the configuration computer to the 2601. If your computer has a built-in RS-232 serial port, connect one end of the null-modem cable to the computer and the other end to 2601 COM4.

If your computer doesn't have a serial port then you can use a USB-to-serial adapter. To do this, connect one end of the null-modem cable to the adapter's serial connector and the other end to 2601 COM4.

Windows XP tweaks

Speed up link detection

I have a direct connection between my computer and the 2600 via an Ethernet crossover cable. I see the 2600's link LED turn on shortly after it resets, but when it does, there is a long delay before my computer indicates a valid connection. Is there a way to speed this up?

Open the Network Connections dialog and right-click on the 2600's network connection. Click on the Configure button, then select the Advanced tab. Select the "Link Speed & Duplex" property, then go to the Value pulldown and select "100Mbps/Half Duplex."

Eliminate annoying balloon tips

When my application is not running, irritating balloon tips keep popping up to report the 2600's cyclic disconnected/reconnected network connection. How can I prevent this from happening?

Run regedit.exe and create (if it doesn't already exist) or edit (if it already exists) the following key:

HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced

Set the key as follows:

EnableBalloonTips  REG_DWORD  0

Restart or logoff/logon to apply the changes.

Eliminate "red x" status notification

When my application is not running, I sometimes see an irritating "red x" network status icon in the notification area. How can I prevent this?

I unchecked the "Show icon in notification area when connected" box in the connection properties dialog, but this hides the icon only when the connection is active. The RedX icon keeps appearing briefly, then disappearing.

I checked the "Hide inactive icons" in the Taskbar properties and set the network connection icon to "Always hide" in the Customize Notifications dialog, but it doesn't seem to stick.

This solution will completely eliminate the connection status icon.

Run regedit.exe and delete this key:

HKEY_CLASSES_ROOT\CLSID\{7007ACCF-3202-11D1-AAD2-00805FC1270E}

Restart or logoff/logon to apply the change.

See also

Personal tools
Namespaces

Variants
Actions
Toolbox