Difference between revisions of "2600"
(→Automatic reset) |
(merged in 2601) |
||
Line 1: | Line 1: | ||
Sensoray's [http://www.sensoray.com/products/2600.htm 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. | Sensoray's [http://www.sensoray.com/products/2600.htm 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. | ||
− | ==Automatic reset== | + | ==2601== |
+ | |||
+ | Model 2601 is an Ethernet-based communication hub for the 2600 series of I/O modules. It supports up to 16 I/O modules and has 4 serial COM ports. | ||
+ | |||
+ | ===Setting 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. | ||
+ | |||
+ | ====Configuration program==== | ||
+ | |||
+ | A special utility program, cfg2600.exe, is used to set the 2601's IP address. This utility program requires a command line argument that specifies the COM port on your computer that will be connected to COM4 on the 2601 module (via serial crossover cable). | ||
+ | |||
+ | The program can be invoked in several ways. For example, suppose you will use the COM1 port on your computer. You could invoke the utility program this way: | ||
+ | |||
+ | * Create a Windows shortcut to cfg2600.exe | ||
+ | * Change the shortcut's target properties to specify the COM1 port (e.g., change "cfg2601.exe" to "cfg2601.exe 1") | ||
+ | * Now run the shortcut | ||
+ | |||
+ | Alternatively, you can run the exe directly from a shell: | ||
+ | |||
+ | * Open a shell window and change to the directory that contains the exe | ||
+ | * Type this command line and hit Enter: "cfg2601 1" | ||
+ | |||
+ | Or, you can do this: | ||
+ | |||
+ | * Click Start|Run | ||
+ | * Enter the exe path followed by "cfg2601 1", then click OK | ||
+ | |||
+ | ===Automatic reset=== | ||
:''My 2601 resets every 10 seconds (approximately) — is this normal?'' | :''My 2601 resets every 10 seconds (approximately) — is this normal?'' | ||
Line 26: | Line 58: | ||
SetWatchdogInterval(0, 0); // 0 = disable watchdog | SetWatchdogInterval(0, 0); // 0 = disable watchdog | ||
− | == | + | ===Windows XP tweaks=== |
− | = | + | ====Speed up link detection==== |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ===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?'' | ''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?'' | ||
Line 42: | Line 66: | ||
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." | 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=== | + | ====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?'' | ''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?'' | ||
Line 54: | Line 78: | ||
Restart or logoff/logon to apply the changes. | Restart or logoff/logon to apply the changes. | ||
− | ===Eliminate "red x" status notification=== | + | ====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?'' | ''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?'' | ||
Line 68: | Line 92: | ||
Restart or logoff/logon to apply the change. | Restart or logoff/logon to apply the change. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 13:46, 3 January 2018
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 |
2601
Model 2601 is an Ethernet-based communication hub for the 2600 series of I/O modules. It supports up to 16 I/O modules and has 4 serial COM ports.
Setting 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.
Configuration program
A special utility program, cfg2600.exe, is used to set the 2601's IP address. This utility program requires a command line argument that specifies the COM port on your computer that will be connected to COM4 on the 2601 module (via serial crossover cable).
The program can be invoked in several ways. For example, suppose you will use the COM1 port on your computer. You could invoke the utility program this way:
- Create a Windows shortcut to cfg2600.exe
- Change the shortcut's target properties to specify the COM1 port (e.g., change "cfg2601.exe" to "cfg2601.exe 1")
- Now run the shortcut
Alternatively, you can run the exe directly from a shell:
- Open a shell window and change to the directory that contains the exe
- Type this command line and hit Enter: "cfg2601 1"
Or, you can do this:
- Click Start|Run
- Enter the exe path followed by "cfg2601 1", then click OK
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
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.