How to Use Actions List

N-Button Pro/Lite supports Actions List. It allows you to add several actions to a list. The actions list can be executed easily by clicking a Customized Button.

Here will show you how to use Actions List.

The example task : turn on 4 relay channels one by one with 10 seconds interval, and then turn all off after 20 seconds.

Be sure you have your network or serial port device connected with your computer, and also have N-Button software installed. Here, I have Robot Electronics ETH484 relay board connected.

1. After launching N-Button Pro/Lite Manager, add the device to Device Manager.

N-Button Pro - ETH484

2. Add a Relay Button widget to toggle all relay channels. Click the Relay Button, all 4 relay channels should be turned ON and OFF. This is to test whether the relay board works well with N-Button software.

N-Button Pro - Toggle - ETH484

3. Re-open N-Button Manager panel by right-click the Relay Button or N-Button icon on Windows status bar.

N-Button Pro Manager   N-Button Pro Icon

4.  Click Actions List button to add My List. Add Relay Action and Wait action shown as below one by one.

N-Button Pro - Actions List

Action Setting for Relay 1 ON.

N-Button Pro - Actions List - Relay Action

Action Setting for Wait 10 seconds.

N-Button Pro - Actions List - Wait Action

5. Add a Customized Button My Control. Select Actions List My List for My Control button Click Action.

N-Button Pro - Actions List - Customized Button

6. After all above settings, click the My Control button on the desktop. The relays will be turned on one by one after 10 seconds, and then all off after 20 seconds.

N-Button Pro - Actions List - Customized Button Widget

This is a very simple example for how to use Actions List. You can have a lots of  Actions list according to your applications. All Action Types supported in N-Button can be added to the list.

N-Button Pro - Actions List - Action Type

Posted in N-Button | Tagged , , , | Comments Off on How to Use Actions List

Send Message with N-Button Compound Condition

N-Button Pro or Lite version supports sending message to you cell phone from your email account. You can also set up automation control rule to send message under some circumstances. Here will show you an example, send message only when both input channel 1 and 2 of push notification board are trigged together.

Be sure you have the push notification board connected with your computer by serial port/USB or Ethernet. 

Run N-Button Pro/Lite software.

1.  Add the push notification board to N-Button Device Manager.

N-Button - Device Manager

2.  Add Scan Channel widgets for both input channel 1 and 2.

N-Button - Scan Channel

3.  You can add two Label widgets for above Scan Channels to mark as 1 and 2

N-Button - Label

4. Trigger input channel 1 and 2. The Scan Channels on your desktop will change to green from red. It indicates the push notification board works well with N-Button software.

N-Button - Scan Channel and Label widgets

5.  Add a Customized Button widget to send message to your cell phone.

N-Button - Email Action Setting

6. Click the Customized Button on your desktop, you should get message on your cell phone. Otherwise, check your email account security setting to make sure you can get the message.

N-Button - Test Email Action

7.  Add two Simple Conditions and one Compound Condition.

  • The Simple Condition A and B indicate the status of input channel 1 and 2.
  • Compound Condition C includes Simple Condition A and B.
  • Compound Condition will be Meet Only when both Simple Condition A and B are Meet.

N-Button - Conditions Manager

8. Add two Automation – Push Notification Contact Closure Rules for input channel 1 and channel 2 separately. 

  • Set Condition Action When Status changes form Open to Close, set Condition A or B to Meet.
  • Set Condition Action When Status changes form Close to Open, set Condition A or B to Not Meet.
  • Set Condition Action When Status is Close, set Condition A or B to Meet.
  • Set Condition Action When Status is Open, set Condition A or B to Not Meet.

N-Button - Automation - Push Notificaiton Rule

9.  Add a Automation – Condition Rule.

  • Select Compound Condition C
  • Set Email Action When Condition Changes from Not Meet to Meet
  • All settings for Send Email should be same as the previous Customized Button

N-Button - Automation - Condition Rule

9. You have finished all settings! Trigger or change the input channel 1 and 2 together, you will receive the message automatically on you cell phone.

Posted in N-Button | Tagged , , , , , , | Comments Off on Send Message with N-Button Compound Condition

Test Pelco D Protocol with Comm Operator

Comm Operator is a professional test or debug application for serial port and network communication. We use it to test lots of serial port and network communication protocols. Here will show you how to use Comm Operator to test Pelco D protocol.

Pelco D protocol is a popular control protocol for Pan/ Tilt/ Zoom camera or Pan/Tilt head. The format for a control command consists of 7 Hexadecimal bytes.

Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
Sync
Address
Command1 Command2
Data1 Data2 Checksum
  • Sync: always 0xFF
  • Address: camera address
  • Checksum: sum of bytes 2 to bytes 6

Here are Pelco D standard commands and some extended commands for address 1 (0x01).

Pelco-D-Command List Standard Commands and Extended Commands

It’s very easy to test the above Pelco D command list with Comm Operator software. You don’t need to calculate the checksum for each command. The Checksum will be added and sent out automatically in Comm Operator.

1. Be sure you have Pelco D PTZ Camera or Pan/Tilt head connected with your computer by RS232 serial port or USB.

2. Download, install and launch Comm Operator software.

3. Click the icon to show Open Connection panel, select Com Port and Baud Rate, keep other options default.

Comm Operator - Open Connection for Pelco D protocol

The connection status will be shown on the bottom of status bar.

Comm Operator - Connection Status

4.  Click menu Tools – Options to show Options panel. Select Checksum tab page, and select checksum method  Z1+Z2+Z3+…+Zn.

Comm Operator - Options - Checksum

5.  It’s ready to send Pelco D commands.

  • Select HEX for data format
  • Check Check Sum option
  • Input the command in Quick Send –Standard panel
  • Click Send button to send the command out

Comm Operator - Send Data with Check Sum

 

You will see the checksum is added to the end of send data automatically. If you check the option Add to List, you will see the command is also added to the Send Data List. You can modify the Name for it by Edit it.

6. Follow the step 5, you can have Pelco D command list in several minutes.

Comm Operator - Send Data List

7. For some extended commands, like Set Pan/Tilt/Zoom absolute position, you can use Comm Operator built-in Calculator to get the hexadecimal data for MSB and LSB.

For example:   Set 90 degree for Pan position

According to the instruction of Pelco D protocol manual, Pan position is given in hundredths of a degree and has a range from 0 to 35999 (decimal). The value to set pan 90 degrees should be 9000.

  • Click the icon to open Calculator panel
  • Input 9000, click Update
  • Output Hex 0x2328 for Decimal 9000 
    • 23 is MSB in hexadecimal
    • 28 is LSB in hexadecimal

Comm Operator - Calculator - Decimal to Hexadecimal

8. If you send Query Tilt Position and receive the return value, you can also use the Calculator to get the decimal data for the tilt position. Here shows the return MSB and LSB 0x1080. It indicates the Tilt position is  42.24 degrees.

 Comm Operator - Calculator - Hexadecimal to Decimal

Posted in Comm Operator | Tagged , , , , , , , , , , , , | Comments Off on Test Pelco D Protocol with Comm Operator

Control MAD Bowler Pan & Tilt Head with PTZ Controller

PTZ Controller software can be used to control not Pan Tilt Zoom camera only, but also Pan & Tilt heads. The control commands are sent out through RS232 serial port/USB of your computer to the connected devices.

Here will show you how to use PTZ Controller software to control  Metham Aviation Design (MAD) Bowler Range of Pan & Tilt Head (RS 485 version). PTZ Controller allows you to control Pan, Tilt and setting Preset, especially setting absolute position for Preset.

MAD Bowler Pan & Tilt Head

1. Be sure you have the latest PTZ Controller software installed or Download Here.

2. Read the user manual or operating instruction of MAD Bowler Pan & Tilt head carefully. You will get the connection information for connector binder (7-way).                                

            • Pin         Function
            • 1             Not used
            • 2             Data A
            • 3             Data B
            • 4             Not used
            • 5             Not used
            • 6             0v DC Power
            • 7             +v DC Power (12v or 24v, please see product)

3. Connect the Pan & Tilt head to your computer with 7-way binder and RS485/RS232 converter, you may also need RS232/USB converter to connect to your USB port. Make sure the cable and converters work well.

 

Connect 7-way binder and RS485/RS232   

image

4. Launch PTZ Controller software on your computer.

5. Click menu Setting – Camera Manager… or click Settings button on right lower corner to open Camera Manager panel.

PTZ Controller -Settings

6.  Click New button to open Camera Setting panel. Input the Name and select the Communication information for MAD Pan & Tilt Head.

  • Address: 1
  • Protocol: Pelco D
  • Com Port: your COM Port number, which is connected with the head
  • Baud Rate : 2400

PTZ Controller -Communication Settings

7. Click OK on both Camera Setting and Camera Manager panels. You will see the Pan & Tilt head is added. Now, you can control it by clicking Pan, Tilt buttons or sliders, or just click the black control area to move the position of the Pan & Tilt head. You can also control it with joystick, if you have one connected.

PTZ Controller -Control Pan Tilt

8. After moving the Pan & Tilt head, you can save or set the position to the Preset. Click one Preset, and then click Set button, or right-click the Preset item to show pop-up menu to click Set.  After changing position, select the Preset item you have set, click Go To will recall that position.

Note:

        • You can set position to Preset 1-50, which is stored in the Pan & Tilt head.
        • Preset 0 is factory set as a Home position. (Tilt platform will be horizontal, Pan axis will be in its center position.)

PTZ Controller -Set Preset

9. If you want set absolute position for Preset, double-click the device MAD Pan & Tilt Head to show Camera Setting. Check Set Absolute Position for Preset, click OK back to main panel. You can set absolute position for preset now.

PTZ Controller -Set Absolute Position for Preset

10. Select one Preset number, click Set button, Set Preset panel will be shown. The values shown on it indicate the current absolute position of Pan and Tilt. You can input the absolute position values you want for this Preset, and click OK to finish setting. Click Go To button, you will see the head moving to the absolute position.

Note:

        • When Set Preset panel shows up, it shows the current absolute position.
        • You can set absolute position to Preset 0-127, which is stored in your computer PTZ Controller software.
        • MAD Pan & Tilt Head  has limit stops for Pan and Tilt
            • Pan: 355 degrees
            • Tilt: +45 degrees (up) and  -90 degrees (down)
        • When you input value for absolute position
            • Pan: 0-355
            • Tilt: 360-315 (up) and 0-90 (down)

PTZ Controller -Get Absolute Position

Here is a demo video for setting absolute position for MAD Pan & Tilt Head with PTZ Controller software.

Posted in PTZ Controller | Tagged , , , , , , , , , , , | Comments Off on Control MAD Bowler Pan & Tilt Head with PTZ Controller

Set Absolute Position Preset for Pelco D with PTZ Controller

PTZ Controller v3.7 allows you to set absolute position for Pelco D protocol PTZ camera or Pan & Tilt head.

When you open Camera Setting panel to add camera, you will see an option Set Absolute Position for Preset. (It works with Pelco D protocol ONLY for now)

PTZ Controller - Camera Setting

The option is unchecked in default.  After it is checked, you will find Set Preset working in a different way.

PTZ Controller - Set Presets

Normally, steps for using Preset:

  1. Move PTZ Camera Pan, Tilt and Zoom to one position.
  2. Select one Preset number (it can be renamed).
  3. Click Set button to save the position (it will be saved in PTZ camera).
  4. Repeat steps 1-3 to save different positions into different Preset numbers.
  5. When you want the PTZ Camera move to a saved position, select the Preset number. Click Go To button to recall it.

Note: Different PTZ Cameras support different preset numbers, such as:

    • Sony EVI series PTZ cameras support 6 presets.
    • Canon VC PTZ cameras support 9 presets.
    • Most Pelco PTZ cameras support at least 32 presets.

Here are the steps to set absolute position for Preset with PTZ Controller.

  1. Be sure you have checked the option Set Absolute Position for Preset on Camera Setting panel.
  2. Select one Preset number ( it can be renamed).
  3. Click Set button. Set Preset panel will be shown like below. PTZ Controller - Set Absolute Position for Preset
    Note:
    Every time when Set Preset panel shows up, the values of Pan, Tilt, and Zoom indicate the current absolute position of PTZ camera or Pan & Tilt head.
  4. Input your required absolute position of PTZ camera or Pan & Tilt head , click OK to finish setting/saving ( it is saved in your computer PTZ Controller software).
  5. Click Go To button. The PTZ camera or Pan & Tilt head will move to that absolute position.
  6. Repeat  steps 2-5 to set different absolute positions to different Preset numbers.
  7. When you want the PTZ Camera move to the saved absolute position, select the Preset number, click Go To button to recall it.

You can set up to 128(0-127) presets for absolute position with PTZ Controller.

Posted in PTZ Controller | Tagged , , , , , | Comments Off on Set Absolute Position Preset for Pelco D with PTZ Controller

Control 1-channel ProXR Relay Board with Relay Timer R1X

Relay Timer R1X software allows you to control 1-channel ProXR relay board manually and automatically according to timing schedule setting.

Here will show you how to control 1-channel ProXR relay board of National Control Devices with Relay Timer R1X software.

1. Plug-in power for 1-channel ProXR relay board, and connect it to your computer through Serial Port, USB or Ethernet interface.

1-channel ProXR Relay Board

2. Download, install and run Relay Timer R1X.

3. Click Configure button to open Configuration panel.

  • Select Manufacturer – National Control Devices
  • Select Device Type – ProXR
  • Select connection interface
    • Serial Port/USB for RS-232 and USB interface, select the right Port Name and Baud Rate 115200 for ProXR relay board
    • Network  for Ethernet interface, input IP address and Port 2101 for ProXR relay board

Relay Timer R1X - Configuration

4. Click OK button on Configuration panel. You will see the connection information about the relay board and a flashing arrow shown on the status bar. That means the ProXR relay board has been connected with Relay Timer R1X software.

Relay Timer R1X - Connection status

5. It’s ready to control the relay board manually with Relay Timer R1X.

  • Click Manual button down to step into manual control mode
  • Click  On/Off slider to control relay manually

Relay Timer R1X - Control Relay Manually

6. Click Setting button to set up timing schedule for auto control.

Relay Timer R1X - Timing Shcedule Setting

Relay Timer R1X - Shcedule Setting

7. Click Auto button to make sure the relay channel step into auto control mode. The relay channel will be turned on/off automatically according to above schedule setting.

Relay Timer R1X - Switch to Auto Control Mode

8. You can also click Override button to select option for switching to auto mode automatically.

Relay Timer R1X - Override Manual

Here is the quick start guide video for how to control 1-channel ProXR relay board with Relay Timer R1X.

See Also:

Control 2-channel ProXR Relay Board with Relay Timer R2X

Control 2-Channel ProXR Relay Board with Quick Timer R2X

What’s the difference between Relay Timer series and Quick Timer series

Posted in Relay Timer Series | Tagged , , , , | Comments Off on Control 1-channel ProXR Relay Board with Relay Timer R1X

Control 2-channel ProXR Relay Board with Relay Timer R2X

Relay Timer R2X software allows you to control 2-channel ProXR relay board manually and automatically according to timing schedule setting.

Here will show you how to control 2-channel ProXR relay board of National Control Devices with Relay Timer R2X software.

1. Plug-in power for 2-channel ProXR relay board, and connect it to your computer through Serial Port, USB or Ethernet interface.

2-channel ProXR Relay Board

2. Download, install and run Relay Timer R2X.

3. Click Configure button to open Configuration panel.

  • Select Manufacturer – National Control Devices
  • Select Device Type – ProXR
  • Select connection interface
    • Serial Port/USB for RS-232 and USB interface, select the right Port Name and Baud Rate 115200 for ProXR relay board
    • Network  for Ethernet interface, input IP address and Port 2101 for ProXR relay board

Relay Timer R2X - Configuration

4. Click OK button on Configuration panel. You will see the connection information about the relay board is shown on the left side of status bar. In middle of the status bar, there is a flashing arrow. That means the ProXR relay board has been connected with Relay Timer R2X software.

Relay Timer R2X - Connection status

5. It’s ready to control the relay board manually with Relay Timer R2X.

  • Click All On/All Off button to control 2 channels together
  • Or click  On/Off slider for each channel to control separately (Be sure Manual button pressed down first)

Relay Timer R2X - Control Relay Manually

6. Click Setting button for each channel to set up timing schedule for auto control.

Relay Timer R2X - Timing Shcedule Setting

7. Click All Auto button or Auto button for each channel to make sure all channels step into auto control mode. The relay channels will be turned on/off automatically according to above schedule setting.

Relay Timer R2X - Switch to Auto Control Mode

8. You can also click Override button to select option for switching to auto mode automatically.

Relay Timer R2X - Override Manual

Here is the quick start guide video for how to control 2-channel ProXR relay board with Relay Timer R2X.

See Also:

Control 2-Channel ProXR Relay Board with Quick Timer R2X

What’s the difference between Relay Timer series and Quick Timer series

Posted in Relay Timer Series | Tagged , , , | Comments Off on Control 2-channel ProXR Relay Board with Relay Timer R2X

Control 4-channel ProXR Relay Board with Relay Timer R4X

Relay Timer R4X software allows you to control 4-channel ProXR relay board manually and automatically according to timing schedule setting.

Here will show you how to control 4-channel ProXR relay board of National Control Devices with Relay Timer R4X software.

1. Plug-in power for 4-channel ProXR relay board, and connect it to your computer through Serial Port, USB or Ethernet interface.

4-channel ProXR Relay Board

2. Download, install and run Relay Timer R4X.

3. Click Configure button to open Configuration panel.

  • Select Manufacturer – National Control Devices
  • Select Device Type – ProXR
  • Select connection interface
    • Serial Port/USB for RS-232 and USB interface, select the right Port Name and Baud Rate 115200 for ProXR relay board
    • Network  for Ethernet interface, input IP address and Port 2101 for ProXR relay board

4. Click OK button on Configuration panel. You will see the connection information about the relay board is shown on the left side of status bar. In middle of the status bar, there is a flashing arrow. That means the ProXR relay board has been connected with Relay Timer R4X software.

Relay Timer R4X - Connection status

5. It’s ready to control the relay board manually with Relay Timer R4X.

  • Click All On/All Off button to control 4 channels together
  • Or click  On/Off slider for each channel to control separately (Be sure Manual button pressed down first)

Relay Timer R4X - Control Relay Manually

6. Click Setting button for each channel to set up timing schedule for auto control.

Relay Timer R4X - Timing Shcedule Setting

7. Click All Auto button or Auto button for each channel to make sure all channels step into auto control mode. The relay channels will be turned on/off automatically according to above schedule setting.

Relay Timer R4X - Switch to Auto Control Mode

8. You can also click Override button to select option for switching to auto mode automatically.

Relay Timer R4X - Override Manual

Here is the quick start guide video for how to control 4-channel ProXR relay board with Relay Timer R4X.

See Also:

Control 4-Channel ProXR Relay Board with Quick Timer R4X

What’s the difference between Relay Timer series and Quick Timer series

Posted in Relay Timer Series | Tagged , , , , , | Comments Off on Control 4-channel ProXR Relay Board with Relay Timer R4X

Control 16-channel ProXR Relay Board with Relay Timer R16X

Relay Timer R16X software allows you to control 16-channel ProXR relay board manually and automatically according to timing schedule setting.

Here will show you how to control 16-channel ProXR relay board of National Control Devices with Relay Timer R16X software.

1. Plug-in power for 16-channel ProXR relay board, and connect it to your computer through Serial Port, USB or Ethernet interface.

16-channel ProXR Relay Board

2. Download, install and run Relay Timer R16X.

3. Click Configure button to open Configuration panel.

  • Select Manufacturer – National Control Devices
  • Select Device Type – ProXR
  • Select connection interface
    • Serial Port/USB for RS-232 and USB interface, select the right Port Name and Baud Rate 115200 for ProXR relay board
    • Network  for Ethernet interface, input IP address and Port 2101 for ProXR relay board

Relay Timer R16X - Configuration

4. Click OK button on Configuration panel. You will see the connection information about the relay board is shown on the left side of status bar. In middle of the status bar, there is a flashing arrow. That means the ProXR relay board has been connected with Relay Timer R16X software.

Relay Timer R16X - Connection status

5. It’s ready to control the relay board manually with Relay Timer R16X.

  • Click All On/All Off button to control 16 channels together
  • Or click  On/Off slider for each channel to control separately (Be sure Manual button pressed down first)

Relay Timer R16X - Control Manually

6. Click Setting button for each channel to set up timing schedule for auto control.

Relay Timer R16X - Timing Shcedule Setting

7. Click All Auto button or Auto button for each channel to make sure all channels step into auto control mode. The relay channels will be turned on/off automatically according to above schedule setting.

Relay Timer R16X - Switch to Auto Control Mode

8. You can also click Override button to select option for switching to auto mode automatically.

Relay Timer R16X - Override Manual

Here is the quick start guide video for how to control 16-channel ProXR relay board with Relay Timer R16X.

See Also:

Control 16-Channel ProXR Relay Board with Quick Timer R16X

What’s the difference between Relay Timer series and Quick Timer series

Posted in Relay Timer Series | Tagged , , , , | Comments Off on Control 16-channel ProXR Relay Board with Relay Timer R16X

Control 2-Channel ProXR Relay Board with Quick Timer R2X

Quick Timer R2X software is designed to set timer to control 2-channel relay boards automatically.

Here will show you how to control 2-channel ProXR relay board of National Control Devices with Quick Timer R2X.

1. Plug-in power for 2-channel ProXR relay board, and connect it to your computer through USB interface or Ethernet interface.

2. Download, install and run Quick Timer R2X software.

Quick Timer R2X

3. Click Configure button to open Configuration panel.

  • Select Manufacturer – National Control Devices
  • Select Device Type – ProXR
  • Select connection interface
    •  Serial Port/USB for RS-232 and USB interface, select the right Port Name and Baud Rate 115200 for ProXR relay board
    • Network  for Ethernet interface, input IP address and Port 2101 for ProXR relay board

Quick Timer R2X - Configuration

4. Click OK button on Configuration panel. You will see the connection information about the relay board is shown on the left side of status bar. In middle of the status bar, there is a flashing arrow. It indicates the ProXR relay board has been connected with Quick Timer R2X software.

Quick Timer R2X - Connection Status

5. It’s ready to control the relay board manually with Quick Timer R2X.

  • Click Turn All On/Turn All Off button to control all 2 channels together.
  • Or click  On/Off switcher for each channel to control separately.

Quick Timer R2X - Control manully

6. Click Setting button for each channel to set up Duration and Action for auto control.

Quick Timer R2X - Setting for auto control

7. Press Start All button to step into auto control mode for all 2 channels, or press Start button for each channel to control the relay separately.

Quick Timer R2X - Start auto control

Here is an example video. It shows how to set timer to control 2-channel ProXR relay board with Quick Timer R2X.

See also:

Control 4-Channel ProXR Relay Board with Quick Timer R4X

Control 8-channel ProXR Relay Board with Quick Timer R8X

Control 16-Channel ProXR Relay Board with Quick Timer R16X

Posted in Quick Timer Series | Tagged , , , , | Comments Off on Control 2-Channel ProXR Relay Board with Quick Timer R2X