• No results found

Application & Quick-Start Guide

N/A
N/A
Protected

Academic year: 2021

Share "Application & Quick-Start Guide"

Copied!
15
0
0

Loading.... (view fulltext now)

Full text

(1)

Application & Quick-Start Guide

Model: CRMWIC

Web Intelligent Controller

Application & Quick-Start Guide

(2)

Application & Quick-Start Guide

This document will illustrate various ways to connect and use a CRM-WIC as well as programming examples.

When connecting CRM-WIC, the installer has several interface options. These include but are not limited to:

Connecting a computer to a CRM-WIC

Connecting Xantech CSPLCD Touch Panels to a CRM-WIC

Programming examples are included and will cover the following topics:

Logging into the CRM-WIC – Quick Setup Guide

For devices that you have to query in order to get a response – Ex. Power Status

Displaying Status on CSPLCD Touch Panel

For Devices that do not need to be Queried – Ex. Volume Feedback Response

Displaying Dynamic Volume Level on CSPLCD Touch Panel

Passing RS-232 data from Port1 of the CRM-WIC to Port2 of the CRM-WIC

When connecting a computer to a CRM-WIC:

• Connect the CRM-WIC to a network or stand alone computer using a standard Ethernet cable connected to the LAN port of the CRM-WIC.

• The green LED on the LAN port indicates that a network has been detected.

• The yellow LED on the LAN port indicates that data is being transmitted through the port.

(3)

Application & Quick-Start Guide

When connecting a Xantech CSPLCD Touch Panel to a CRM-WIC (Typical Application):

• Connect a Xantech SPLCD Touch Panel using a standard Ethernet cable to a Xantech RS422232 converter up to 4000 feet away (Note: using the converter is optional)

• Connect the serial output from the RS422232 converter to one of the available serial ports on the CRM-WIC using a nine pin serial null modem cable.

Or

• Connect the Serial Output of the CSPLCD Touch Panel directly to the Serial Input of the CRMWIC over CAT5 via RS422

(4)

Application & Quick-Start Guide

Once the connection is made between the computer and the SPLCD Touch Panel, devices connected to the serial port can now be monitored with feedback and controlled using a SPLCD Touch Panel as illustrated below:

(5)

Application & Quick-Start Guide

Quick Start

This section describes how to power up your CRM-WIC and access the configuration options over an IP Network or using a CAT5 Network Crossover Cable.

STEP 1: Powering Up

1. Connect the Power Supply to the 2.1mm Jack on the CRMWIC labeled POWER 2. Plug the Power Supply into a 110vAC Outlet

3. CRMWIC should begin to boot. After about 10 Seconds the Blue Status LED should begin to blink slowly.

STEP 2: Determine CRM-WIC Connection

The CRMWIC should boot to it’s default Network IP Address (10.10.10.10). You will now need to decide how you would like to connect to your CRM-WIC to configure it:

Connection Type Why use this connection type?

Connection Diagram

Connect the CRM-WIC to a LAN Network and configure it using a PC

on the Network.

This is the typical set up for general CRM-WIC use. Of course you will

need a LAN network.

Connect the CRM-WIC directly to a PC using a

crossover Ethernet cable.

You do not have a LAN network, and you need to access all Admin Web

Pages for configuration.

(6)

Application & Quick-Start Guide

In either of the above cases you will need to set you PC’s IP address to the following parameters:

IP Address 10.10.10.11 Subnet Mask 255.255.255.0

Gateway 10.10.10.1

To change the settings of your PC to the above settings using Windows XP you will need to do the following:

1. Click on the START button on the task bar

2. Select SETTINGS > NETWORK CONNECTIONS > Local Area Connection

3. The Local Area Connection Properties window should now open. Select the Internet Protocol (TCP/IP) item in the window so it is highlighted and click on the Properties button.

4. Change the Internet Protocol Property to “Use the following IP Address” and enter the following:

IP Address 10.10.10.11 Subnet Mask 255.255.255.0

Gateway 10.10.10.1 5. Click on OK in the Internet Protocol Properties window

6. Click on CLOSE in the Local Area Connection Properties window.

You should now be able to connect to the CRMWIC by opening your Browser and pointing it to http://10.10.10.10/setup . If you have any difficulties connecting, please try a RESET to return to the Default Settings with DHCP disabled.

(7)

Application & Quick-Start Guide

Enabling / Disabling DHCP by Reset

If you have a DHCP server on your network, you may enable or disable the DHCP setting on the CRM-WIC by pressing and holding the reset button for about 30 seconds. Look for ONE (1) or TWO (2) flashes on the blue “Status” LED before ALL the LEDs flash once.

If the blue LED flashes ONCE before ALL the red LEDs flash once, DHCP is DISABLED, and the settings revert to the factory default settings. You should now be able to connect to the CRM-WIC using the procedure outlined above. This is the desired configuration – DHCP Disabled.

If the blue LED flashes TWICE before ALL the LEDs flash once, DHCP is ENABLED, and the Network settings are now configured to:

DHCP Enabled Yes IP Address Automatic Subnet Mask Automatic

Gateway Automatic

After all the LEDs flash once, wait for the blue LED to start blinking slowly. The CRM-WIC will then be ready to accept connections.

Setting up the CRMWIC – DHCP Disabled

Configuring the CRM-WIC is done by opening a web browser and typing in the IP address of the CRM-WIC. By default the address is http://10.10.10.10/Setup. The login for the CRM-WIC is left blank and the initial password is set as admin. After successfully connecting to the CRM-WIC you will now be at the default screen as shown below:

(8)

Application & Quick-Start Guide

Click on SETUP to configure the proper IP address, Date, Time as shown in the following screen:

Changing the Host Name as shown above will allow you to enter the NAME as opposed to the IP address when accessing the event manager for configuration (i.e. enter http://crmwic/setup).

(9)

Application & Quick-Start Guide

Application Examples:

The following Examples all assume feedback to a CSPLCD Touch Panel as shown on page 5.

Connecting Xantech CSPLCD Touch Panels to a CRM-WIC

Example #1: Power Status

For devices that you have to query in order to get a response: You will need to create a timed event in order to query the device at a particular interval. In the below example an event will be created to query the power status for a device every 1 Minute.

Note: All RS232 commands specific to a Manufactures device must be obtained from the Manufacturer of the product being communicated to/from.

1. Open the Event Manager by clicking on the Event Manager icon

2. Create an Event in the Event Manager called Get Power Status by clicking on the “Add Event”

button

Name: Get_PowerStatus Type: Timer

Every : 1 Minute

(10)

Application & Quick-Start Guide

4. To capture the response, we must first create a Variable to save it to. Click on ADD VARIABLE Name: powerStatus (no spaces allowed)

Type: String

5. Create a 2nd ACTION under the event get_PowerStatus called “saveSTATUS. This ACTION will pass the resulting string to the Variable created powerStatus.

Note: In this example the RS232 response from this projector is ~PWRON%0D. The part of the string we are interested in is the ON portion. To extract this we must use an ‘expression’ to get rid of the unwanted portion of the string.

Name: savedSTATUS Type: Variable

Output To: powerStatus Expression Output Value: “\g” – “~PWR” – “%0D”

In this way you are taking the entire string of data (stored in \g) and removing the ~PWR part of the string represented by “~PWR” and the %0D part of the string represented by “%0D” leaving on the power status ON represented by “ON”.

Now that we got the information we need, the next step is to pass this information to the CSPLCD Touch Panel and have it displayed on the screen.

For this example we will create a TEXT Box on the CSPLCD Touch Panel and have the CRMWIC fill in the information (i.e. ON or OFF). We will be outputting a string from Port 1 on the CRMWIC that will be !1TV”ON”+

6. Since the CRMWIC uses a quotation (“) as an expression character, we will need to create a Variable with a (“) to pass to the CSPLCD as the Touch Panel also requires this in its’

expression. The reason for this will become clear in Step 7!!!!

a. Click ADD VARIABLE

(11)

Application & Quick-Start Guide

Name: quote Type: String Persist:

Default Value: “ Current Value: “

7. Create a 3rd ACTION to pass the information to the CSPLCD Touch Panel. Make sure the EVENT Get_PowerStatus is highlighted. An example of this appears below.

8. Click on ADD ACTION.

Name: passSTATUS Type: String

Output to: Port 1 Expression

Output Value: “!1TV” + quote + powerSTATUS

(12)

Application & Quick-Start Guide

Example #2: Displaying Power Status on the CSPLCD Panel

To display information on the CSPLCD Touch Panels, you must program the panel’s Data Dictionary feature using Universal Dragon Version 1.85 or higher. For a full explanation of Data Dictionary, please see www.xantechcommercial.com under the Download Software section.

1. Open the Touch Panel project being connected to the CRMWIC in Universal Dragon.

2. Right-click on a blank area and select Insert Objects – Text Box from the drop-down menu.

3. Move the ‘Text Box’ to the desired location on the screen and select the Properties Tab.

4. Select the Feedback Driver Tab in the properties window.

5. Under DEVICE select “Dictionary”

6. Enter the Identifier number for this feedback object (in this example, Identifier will be set to “1”) 7. Set FORMATTING to “Stored Value” This will allow the value stored in the Variable to be

passed directly into the Text Box you create.

This is one example of how to display Power Status on the CSPLCD using the CRMWIC Web Intelligent Controller. Other methods can be using a Graphic indicator to display on or off status.

Please visit the Xantech Commercial web site under SOFTWARE for more information on using the Data Dictionary feature.

Sagtikos School District

(13)

Application & Quick-Start Guide

Example #3: Getting and Storing Volume Level Information

For devices that that output status without the need to be queried: You will need to create an event to store the data. If, for example whenever the volume changes to 72 on device the string

“~VOL72%0D” is automatically sent out and only the volume level (72) is needed to be stored, the following steps are required:

1. Open the Event Manager by clicking on the Event Manager icon

2. Create an Event in the Event Manager called Get Volume by clicking on the “Add Event”

button

a. Name: get_VolumeLevel b. Type: Serial

c. Trigger: ~VOL*(In this example the device outputs the string “~VOL72%0D” whenever the volume changes)

3. Create a Variable to store the Volume Level called VolumeLevel by clicking on the “Add Variable” button

a. Name: VolumeLevel b. Type: Number

4. Add an Action to the get_VolumeLevel Event by clicking on the “Add Action” button a. Name: store_VolumeLevel

b. Type: Variable

c. Output To: VolumeLevel Expression (Volume Level is the variable created in the previous step)

d. Output Value: “\g” – “~VOL” – “%0D”

In this way you are taking the entire string of data (stored in \g) and removing the ~VOL part of the string represented by “~VOL” and the %0D part of the string represented by “%0D” leaving only the volume level.

It is now time to pass this value to the CSPLCD for display.

5. Create a 2nd ACTION to pass the information to the CSPLCD Touch Panel. Make sure the EVENT get_VolumeLevel is highlighted. An example of this appears below.

6. Click on ADD ACTION.

Name: passVolume Type: String

(14)

Application & Quick-Start Guide

Example #4: Displaying Dynamic Volume Level on the CSPLCD

Panel

1. Open the Touch Panel project being connected to the CRMWIC in Universal Dragon.

2. Right-click on a blank area and select Insert Objects – Horizontal Bar (or Vertical) from the drop-down menu.

3. Move the ‘Horizontal Bar’ to the desired location on the screen and select the Properties Tab.

4. Select the Feedback Driver Tab in the properties window.

5. Under DEVICE select “Dictionary”

6. Enter the Identifier number for this feedback object (in this example, Identifier will be set to “2”) 7. Enter the Minimum and Maximum values for the Vertical or Horizontal Bar (in this case the

minimum and maximum volume levels i.e. min=’0’ ; max=’100’

Sagtikos School District

(15)

Application & Quick-Start Guide

Example #5: Passing Serial Strings from Port 1 to Port 2 on the

CRMWIC

To pass RS-232 data from Port1 of the CRM-WIC to Port2 of the CRM-WIC follow the steps below:

1. Open the Event Manager by clicking on the Event Manager tab 2. Create an Event in the Event Manager called PassRS232

a. Name: PassRS232 b. Type: Serial

c. Origin: Port1 d. Trigger: \g

Note: I the strings to be passed have a terminating character, i.e. strings ending in a [CR]

(0x0Dh) or [LF] (0x0Ah) a more efficient method is to enter *[terminating character] i.e.

*%0D instead of “\g”

3. Create an Action for the PassRS232 Event a. Name: PassRS232

b. Type: Serial c. Output to: Port2 d. Output Value: \g

In this way all data that enters Serial Port 1 will pass out through Serial Port 2.

References

Related documents