Whenever you update the configuration of your PTQ module or the processor, you must import the changed configuration from the module, and then build (compile) the project before downloading it to the processor.
Note: The following steps show you how to build the project in Unity Pro XL. This is not intended to provide detailed information on using Unity Pro XL, or debugging your programs. Refer to the documentation for your processor and for Unity Pro XL for specialized information.
To build (compile) the project:
1 Review the elements of the project in the Project Browser.
2 When you are satisfied that you are ready to download the project, open the Build menu, and then choose Rebuild all Project. This action builds
(compiles) the project into a form that the processor can use to execute the instructions in the project file. This task may take several minutes, depending on the complexity of the project and the resources available on your PC.
3 As the project is built, Unity Pro XL reports its process in a Progress dialog box, with details appearing in a pane at the bottom of the window. The following illustration shows the build process under way.
After the build process is completed successfully, the next step is to download the compiled project to the processor.
PTQ-MCM ♦ Quantum / Unity Platform Configuring the Processor with UnityPro XL Modbus Communication Module
Page 42 of 139 ProSoft Technology, Inc.
April 29, 2008 4.4 Connect Your PC to the Processor
The next step is to connect to the processor so that you can download the project file. The processor uses this project file to communicate over the backplane to modules identified in the project file.
Note: If you have never connected from the PC to your processor before, you must verify that the necessary port drivers are installed and available to UnityPro XL.
To verify address and driver settings in UnityPro XL:
1 Open the PLC menu, and choose Standard Mode. This action turns off the PLC Simulator, and allows you to communicate directly with the Quantum or Unity hardware.
2 Open the PLC menu, and choose Set address... This action opens the Set address dialog box. Open the Media dropdown list and choose the
connection type to use (TCPIP or USB).
Configuring the Processor with UnityPro XL PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 43 of 139
April 29, 2008
3 If the Media dropdown list does not contain the connection method you wish to use, click the Communication Parameters button in the PLC area of the dialog box. This action opens the PLC Communication Parameters dialog box.
4 Click the Driver Settings button to open the SCHNEIDER Drivers management Properties dialog box.
5 Click the Install/update button to specify the location of the Setup.exe file containing the drivers to use. You will need your UnityPro XL installation disks for this step.
6 Click the Browse button to locate the Setup.exe file to execute, and then execute the setup program. After the installation, restart your PC if you are prompted to do so. Refer to your Schneider Electric documentation for more information on installing drivers for UnityPro XL.
PTQ-MCM ♦ Quantum / Unity Platform Configuring the Processor with UnityPro XL Modbus Communication Module
Page 44 of 139 ProSoft Technology, Inc.
April 29, 2008
4.4.1 Connecting to the Processor with TCPIP
The next step is to download (copy) the project file to the processor. The following steps demonstrate how to use an Ethernet cable connected from the Processor to your PC through an Ethernet hub or switch. Other connection methods may also be available, depending on the hardware configuration of your processor, and the communication drivers installed in UnityPro XL.
1 If you have not already done so, connect your PC and the processor to an Ethernet hub.
2 Open the PLC menu, and then choose Set address.
Important: Notice that the Set address dialog box is divided into two areas. Enter the address and media type in the PLC area of the dialog box, not the Simulator area.
3 Enter the IP address in the address field. In the Media dropdown list, choose TCPIP.
4 Click the Test Connection button to verify that your settings are correct.
The next step is to download the Project to the Processor.
4.5 Download the Project to the Processor
1 Open the PLC menu and then choose Connect. This action opens a
connection between the Unity Pro XL software and the processor, using the address and media type settings you configured in the previous step.
2 On the PLC menu, choose Transfer Project to PLC. This action opens the Transfer Project to PLC dialog box. If you would like the PLC to go to "Run"
mode immediately after the transfer is complete, select (check) the PLC Run after Transfer check box.
Configuring the Processor with UnityPro XL PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 45 of 139
April 29, 2008
3 Click the Transfer button to download the project to the processor. As the project is transferred, Unity Pro XL reports its process in a Progress dialog box, with details appearing in a pane at the bottom of the window.
When the transfer is complete, place the processor in Run mode.
PTQ-MCM ♦ Quantum / Unity Platform Configuring the Processor with UnityPro XL Modbus Communication Module
Page 46 of 139 ProSoft Technology, Inc.
April 29, 2008
Setting Up the ProTalk Module PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 47 of 139
April 29, 2008
5 Setting Up the ProTalk Module
In This Chapter
Install the ProTalk Module in the Quantum Rack ... 47
Connect the PC to the ProTalk Configuration/Debug Port ... 53
After you complete the following procedures, the ProTalk module will actively be transferring data bi-directionally with the processor.
5.1 Install the ProTalk Module in the Quantum Rack
5.1.1 Verify Jumper Settings
ProTalk modules are configured for RS-232 serial communications by default. To use RS-422 or RS-485, you must change the jumpers.
The jumpers are located on the back of the module as shown in the following illustration:
Do not move this jumper unless instructed to do so by
ProSoft Technical Support
PTQ-MCM ♦ Quantum / Unity Platform Setting Up the ProTalk Module Modbus Communication Module
Page 48 of 139 ProSoft Technology, Inc.
April 29, 2008
5.1.2 Inserting the 1454-9F connector
Insert the 1454-9F connector as shown. Wiring locations are shown in the table:
5.1.3 Install the ProTalk Module in the Quantum Rack
1 Place the Module in the Quantum Rack. The ProTalk module must be placed in the same rack as the processor.
2 Tilt the module at a 45° angle and align the pegs at the top of the module with slots on the backplane.
Setting Up the ProTalk Module PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 49 of 139
April 29, 2008
3 Push the module into place until it seats firmly in the backplane.
CaUTION: The PTQ module is hot-swappable, meaning that you can install and remove it while the rack is powered up. You should not assume that this is the case for all types of modules unless the user manual for the product explicitly states that the module is hot-swappable. Failure to observe this precaution could result in damage to the module and any equipment connected to it.
5.1.4 Cable Connections
The application ports on the PTQ-MCM module support RS-232, RS-422, and RS-485 interfaces. Please inspect the module to ensure that the jumpers are set correctly to correspond with the type of interface you are using.
Note: When using RS-232 with radio modem applications, some radios or modems require hardware handshaking (control and monitoring of modem signal lines). Enable this in the configuration of the module by setting the UseCTS parameter to 1.
RS-232 Configuration/Debug Port
This port is physically a DB-9 connection. This port permits a PC based terminal emulation program to view configuration and status data in the module and to control the module. The cable for communications on this port is shown in the following diagram:
The Ethernet port on this module (if present) is inactive.
PTQ-MCM ♦ Quantum / Unity Platform Setting Up the ProTalk Module Modbus Communication Module
Page 50 of 139 ProSoft Technology, Inc.
April 29, 2008 RS-232
When the RS-232 interface is selected, the use of hardware handshaking (control and monitoring of modem signal lines) is user definable. If no hardware handshaking will be used, the cable to connect to the port is as shown below:
RS-232: Modem Connection
This type of connection is required between the module and a modem or other communication device.
The "Use CTS Line" parameter for the port configuration should be set to 'Y' for most modem applications.
Setting Up the ProTalk Module PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 51 of 139
April 29, 2008
RS-232: Null Modem Connection (Hardware Handshaking)
This type of connection is used when the device connected to the module requires hardware handshaking (control and monitoring of modem signal lines).
RS-232: Null Modem Connection (No Hardware Handshaking)
This type of connection can be used to connect the module to a computer or field device communication port.
Note: If the port is configured with the "Use CTS Line" set to 'Y', then a jumper is required between the RTS and the CTS line on the module connection.
PTQ-MCM ♦ Quantum / Unity Platform Setting Up the ProTalk Module Modbus Communication Module
Page 52 of 139 ProSoft Technology, Inc.
April 29, 2008 RS-485
The RS-485 interface requires a single two or three wire cable. The Common connection is optional and dependent on the RS-485 network. The cable required for this interface is shown below:
Note: Terminating resistors are generally not required on the RS-485 network, unless you are experiencing communication problems that can be attributed to signal echoes or reflections. In this case, install a 120 ohm terminating resistor on the RS-485 line.
RS-422
RS-485 and RS-422 Tip
If communication in the RS-422/RS-485 mode does not work at first, despite all attempts, try switching termination polarities. Some manufacturers interpret +/- and A/B polarities differently.
Setting Up the ProTalk Module PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 53 of 139
April 29, 2008
5.2 Connect the PC to the ProTalk Configuration/Debug Port Make sure you have exited the Quantum programming software before performing these steps. This action will avoid serial port conflict.
Using the supplied Null Modem cable, connect your PC or Laptop to the Configuration/Debug port on the ProTalk module as shown
To connect to the module's Configuration/Debug serial port:
1 Start PCB program with the application file to be tested. Right click over the module icon.
PTQ-MCM ♦ Quantum / Unity Platform Setting Up the ProTalk Module Modbus Communication Module
Page 54 of 139 ProSoft Technology, Inc.
April 29, 2008 2 On the shortcut menu, choose Diagnostics.
3 This action opens the Diagnostics dialog box. Press "?" to display the Main Menu.
Important: The illustrations of configuration/debug menus in this section are intended as a general guide, and may not exactly match the configuration/debug menus in your own module.
Setting Up the ProTalk Module PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 55 of 139
April 29, 2008
If there is no response from the module, follow these steps:
1 Verify that the null modem cable is connected properly between your computer's serial port and the module. A regular serial cable will not work.
2 On computers with more than one serial port, verify that your communication program is connected to the same port that is connected to the module.
3 If you are still not able to establish a connection, contact ProSoft Technology for assistance.
PTQ-MCM ♦ Quantum / Unity Platform Setting Up the ProTalk Module Modbus Communication Module
Page 56 of 139 ProSoft Technology, Inc.
April 29, 2008
Modifying the Configuration File PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 57 of 139
April 29, 2008
6 Modifying the Configuration File
In This Chapter
ProSoft Configuration Builder ... 57
Edit the Configuration File ... 62
Download the Project to the Module... 76
Verification and Troubleshooting ... 77
6.1 ProSoft Configuration Builder
ProSoft Configuration Builder (PCB) provides a quick and easy way to manage module configuration files customized to meet your application needs. PCB is not only a powerful solution for new configuration files, but also allows you to import information from previously installed (known working) configurations to new projects.
PTQ-MCM ♦ Quantum / Unity Platform Modifying the Configuration File Modbus Communication Module
Page 58 of 139 ProSoft Technology, Inc.
April 29, 2008
6.1.1 Set Up the Project
To begin, start ProSoft Configuration Builder. If you have used other Windows configuration tools before, you will find the screen layout familiar. ProSoft Configuration Builder's window consists of a tree view on the left, an information pane and a configuration pane on the right side of the window. When you first start ProSoft Configuration Builder, the tree view consists of folders for Default Project and Default Location, with a Default Module in the Default Location folder. The following illustration shows the ProSoft Configuration Builder window with a new project.
Modifying the Configuration File PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 59 of 139
April 29, 2008
Your first task is to add the PTQ-MCM module to the project.
1 Use the mouse to select "Default Module" in the tree view, and then click the right mouse button to open a shortcut menu.
2 On the shortcut menu, choose "Choose Module Type". This action opens the Choose Module Type dialog box.
3 In the Product Line Filter area of the dialog box, select PTQ. In the Select Module Type dropdown list, select PTQ-MCM, and then click OK to save your settings and return to the ProSoft Configuration Builder window.
The next task is to set the module parameters.
Adding a Project
To add a project to an existing project file:
1 Select the Default Project icon.
2 Choose Project from the Project menu, then choose Add Project. A new project folder appears.
PTQ-MCM ♦ Quantum / Unity Platform Modifying the Configuration File Modbus Communication Module
Page 60 of 139 ProSoft Technology, Inc.
April 29, 2008 Adding a Module
To add a module to your project:
1 Double-click the Default Module icon to open the Choose Module Type dialog box.
2 On the Choose Module Type dialog box, select the module type.
or
1 Open the Project menu and choose Location.
2 On the Location menu, choose Add Module.
To add a module to a different location:
1 Right-click the Location folder and choose Add Module. A new module icon appears.
or
1 Select the Location icon.
2 From the Project menu, select Location, then select Add Module.
6.1.2 Set Module Parameters
Notice that the contents of the information pane and the configuration pane changed when you added the PTQ-MCM module to the project.
Modifying the Configuration File PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 61 of 139
April 29, 2008
At this time, you may wish to rename the "Default Project" and "Default Location"
folders in the tree view.
To rename an object:
1 Select the object, and then click the right mouse button to open a shortcut menu. From the shortcut menu, choose Rename.
2 Type the name to assign to the object.
3 Click away from the object to save the new name.
Module Entries
To configure module parameters
1 Click on the plus sign next to the icon to expand module information.
2 Double-click the icon to open the Edit dialog box.
3 To edit a parameter, select the parameter in the left pane and make your changes in the right pane.
4 Click OK to save your changes.
Comment Entries
To add comments to your configuration file:
1 Click the plus sign to the left of the icon to expand the Module Comments.
2 Double-click the icon. The Edit - Module Comment dialog appears.
3 Enter your comment and click OK to save your changes.
PTQ-MCM ♦ Quantum / Unity Platform Modifying the Configuration File Modbus Communication Module
Page 62 of 139 ProSoft Technology, Inc.
April 29, 2008 Printing a Configuration File
To print a configuration file:
1 Select the Module icon, and then click the right mouse button to open a shortcut menu.
2 On the shortcut menu, choose View Configuration. This action opens the View Configuration window.
3 On the View Configuration window, open the File menu, and choose Print.
This action opens the Print dialog box.
4 On the Print dialog box, choose the printer to use from the dropdown list, select printing options, and then click OK.
6.2 Edit the Configuration File
Note: It is important that you plan your configuration before modifying the configuration files. The remainder of this step provides the information to make the appropriate modifications to the configuration files.
Important: This module supports a maximum configuration file size of 128 kilobytes (131072 bytes). If the configuration file is larger than this size, the module will not accept the download. You can reduce the size of the configuration file by opening the file in a text editor and removing comment lines (lines preceded with the # character).
The PTQMCM.CFG file has the following main sections:
[Module]
[Backplane Configuration]
[MCM Port 1]
[MCM Port 1 Commands]
[MCM Port 2]
[MCM Port 2 Commands]
Important notes to consider when editing the sample configuration file:
Comments within the file are preceded by the pound (#) sign. Any text on a line that occurs after the # character will be ignored.
Do not use tabs or other non-printing characters instead of spaces to separate parameters (spacebar).
Parameter names must begin in the first column of a line, and may not be preceded with a space (spacebar) or other non-printing character.
Modifying the Configuration File PTQ-MCM ♦ Quantum / Unity Platform Modbus Communication Module
ProSoft Technology, Inc. Page 63 of 139
April 29, 2008
6.2.1 [Module]
# This section is used to define the configuration for the Module level
# data.
The Module Type parameter is used to assign a name to the module that can be viewed using the configuration/debug port. Use this parameter to identify the module and the configuration file. You can enter a name from 0 to 80 characters.
Module Name 0 to 80 characters
This parameter assigns a name to the module that can be viewed using the configuration/debug port. Use this parameter to identify the module and the configuration file.
6.2.2 [Backplane Configuration]
[Backplane Configuration]
#These values are required to define the data area to transfer between the module
#and the processor.
Read Register Start : 0 #Database start register to move to processor Read Register Count : 100 #Number of words moved from module to processor Write Register Start: 500 #Database start register where data placed from #processor
Write Register Count: 100 #Number of words moved from processor to module
#Used to define the area in the Processor for the module to interface with 3x Register Start: 1 #3x start register where data moved from module to
Error/Status Block Pointer : 3000 #Number of register to store error and #status
Read Register Start Range 0 to 3999
This parameter specifies the starting register in the module where the data transferred from the processor will be placed. Valid range for this parameter is 0 to 3999.
PTQ-MCM ♦ Quantum / Unity Platform Modifying the Configuration File Modbus Communication Module
Page 64 of 139 ProSoft Technology, Inc.
April 29, 2008 Read Register Count
Range 0 to 3999
This parameter specifies the number of registers to be transferred from the
This parameter specifies the number of registers to be transferred from the