Table of Contents Introduction..........................7 Supported Models ............................7 Installation Overview ...........................7 Software and Documentation ........................8 Hardware Installation ......................9 Product Name Change Notification ......................9 Installation Overview ...........................9 1-Port - Panel Mount (DB9) Installation....................10 PNIO-2201: 1-Port DIN Rail (Terminal Block) Installation..............12 PNIO-2101: 1-Port DIN Rail (DB9) Installation..................13 PNIO-2202 and PNIO-2402: 2-Port DIN Rail (Terminal Block) Installation........15 PNIO-2102 and PNIO-2302: 2-Port DIN Rail (DB9) Installation............17...
Page 4
Table of Contents Four Screw Terminals ..........................44 Serial Terminal (4) Connectors ........................ 44 Serial Terminal (4) Null-Modem Cables (RS-232) .................. 45 Serial Terminal (4) Null-Modem Cables (RS-422) .................. 45 Serial Terminal (4) Straight-Through Cables (RS-232/485)..............45 Serial Terminal (4) Loopback Signals...................... 46 Connecting Serial Devices ........................
Page 5
Table of Contents IO Data Handling......................... 83 Input Data Handling ...........................83 Handling Input Data in PLC........................85 Setting the IO Cycle Update Time ......................85 Output Data Handling ..........................86 Formatting an Output Packet ........................86 Transmitting an Output Packet....................... 86 Appending Delimiters..........................
Page 6
Table of Contents Managing the DeviceMaster ................... 127 Rebooting the DeviceMaster ........................127 Uploading Firmware to Multiple DeviceMasters................128 Configuring Multiple DeviceMasters Network Addresses...............129 Adding a New Device in PortVision DX....................129 Remote Using the IP Address ........................ 129 Local Using the IP Address or MAC Address..................130 Changing the Bootloader Timeout ......................131 Managing Bootloader..........................132 Checking the Bootloader Version......................
Introduction Supported Models This User Guide supports the DeviceMaster Industrial Gateway, which includes the following products: • DeviceMaster UP 1-port panel mount • DeviceMaster PNIO-2101and DeviceMaster PNIO-2201: 1-port DIN rail models • DeviceMaster UP all 2-port DIN rail models: DeviceMaster PNIO-2xx2 series Note: DeviceMaster UP 2-port models have been renamed.
PROFINET IO. PortVision DX is the application for Windows that you use to configure network settings and update the firmware. Use PortVision DX to manage Comtrol Ethernet-attached devices to: • Scan the network for attached devices •...
Hardware Installation Product Name Change Notification Comtrol has implemented a product name change for our DeviceMaster and DeviceMaster UP 2-port DIN rail models to align with our new 1-port and 4-port DIN rail model names. Note: The DeviceMaster UP 2-port DIN rail PROFINET IO models also have new part numbers.
Hardware Installation DeviceMaster or Ports Installation Procedure DeviceMaster UP Model DeviceMaster PNIO-2304 PNIO-2304: 4-Port DIN Rail (DB9) DB9 serial ports Installation on Page 19 DIN rail DeviceMaster UP D 4-Port Panel Mount Installation on Page B9 serial ports Panel mount 1-Port - Panel Mount (DB9) Installation Use the following procedure to install the DeviceMaster 1-Port (panel mount).
Page 11
Hardware Installation Observe proper ESD techniques when connecting and disconnecting the DeviceMaster. • Insert the earth ground wire into the earth ground screw terminal. Caution • Insert the DC positive wire into the Return Earth Gnd positive screw terminal and the DC 5-30VDC return wire into the return screw terminal.
Hardware Installation PNIO-2201: 1-Port DIN Rail (Terminal Block) Installation Use the following procedure to install PNIO-2201. See PNIO-2101: 1-Port DIN Rail (DB9) Installation on Page 13 if the DeviceMaster has DB9 serial connectors. 1. Attach the PNIO-2201 1-Port to the DIN rail adapter. 2.
Hardware Installation Do not connect RS-422/485 devices until the IP address is configured and an appropriate port interface type has been configured. The default port setting is RS-232. Caution 5. Go to Preparing the DeviceMaster for Configuration on Page 23 for default network settings and how to configure the DeviceMaster for use.
Page 14
Hardware Installation 4. Verify that the Status LED has completed the boot cycle and network connection for the PNIO-2101 is functioning properly using the following table. PNIO-2101 LED Descriptions The STATUS LED on the device is lit, indicating you have power and it has completed the boot cycle.
Hardware Installation PNIO-2202 and PNIO-2402: 2-Port DIN Rail (Terminal Block) Installation Use the following procedure to install DeviceMaster 2-port models (1E and 2E) with serial screw terminal connectors. See PNIO-2102 and PNIO-2302: 2-Port DIN Rail (DB9) Installation on Page 17 if the DeviceMaster has DB9 serial connectors.
Page 16
Hardware Installation 4. Verify that the Status LED has completed the boot cycle and network connection for the DeviceMaster is functioning properly using the following table. 2-Port with Serial Terminal Connectors LED Descriptions The STATUS LED on the device is lit, indicating you have power and it has completed the boot cycle.
Hardware Installation PNIO-2102 and PNIO-2302: 2-Port DIN Rail (DB9) Installation Use the following procedure to install DeviceMaster 2-port models (1E and 2E) with DB9 connectors. 1. Attach the DeviceMaster 2-Port to the DIN rail adapter. 2. Connect the power supply and apply power to the DeviceMaster using the power supply specifications on the product label and the following information.
Page 18
Hardware Installation 3. Use the appropriate method for network attachment of your DeviceMaster 2- port: • PNIO-2102: Connect the 10/100 port to the same Ethernet network segment as the host PC using a standard network cable. • PNIO-2302: Connect either 10/100 port to the same Ethernet network segment as the host PC using a standard network cable.
Hardware Installation PNIO-2304: 4-Port DIN Rail (DB9) Installation Use the following procedure to install PNIO-2304. 1. Attach the DeviceMaster to the DIN rail adapter. 2. Connect the power supply and apply power to the DeviceMaster using the power supply specifications on the product label and the following information.
Hardware Installation 4. Verify that the Status LED has completed the boot cycle and network connection for the DeviceMaster is functioning properly using the following table. PNIO-2304 LED Descriptions The STATUS LED on the device is lit, indicating you have power and it has completed the boot cycle.
Hardware Installation 3. Apply power to the DeviceMaster by connecting the AC power adapter to the DeviceMaster, the appropriate power cord for your location to the power adapter, and plugging the power cord into a power source. If you want to provide a power supply, see 4-Port Panel Mount Power Supply on Page 154.
Hardware Installation Replacing Hardware Use this procedure to replace hardware. 1. Remove the old unit and attach a new or spare DeviceMaster. 2. Connect the new DeviceMaster to the network hub or server NIC. 3. Apply power to the new DeviceMaster and verify that it passes the power on self-test.
Preparing the DeviceMaster for Configuration The DeviceMaster platform includes PortVision DX, which is the management application that you use to manage all Comtrol Ethernet-attached devices. This section contains these topics: • PortVision DX Overview • PortVision DX Requirements on Page 24 •...
Note: Refer to the download site for information about Windows operating systems and PortVision DX. PortVision DX requires that you connect the Comtrol Ethernet-attached product to the same network segment as the Windows host system if you want to be able to scan and locate it automatically during the configuration process.
Page 25
Preparing the DeviceMaster for Configuration 4. Click I accept the terms in the License Agreement and Next. 5. Click Next or optionally, browse to a different location and then click Next. 6. Click Next to configure the shortcuts. DeviceMaster PNIO | UP User Guide: 2000639 Rev. A Preparing the DeviceMaster for Configuration - 25...
Page 26
Preparing the DeviceMaster for Configuration 7. Click Install. 8. Depending on the operating system, you may need to click Yes to the Do you want to allow the following program to install software on this computer? query. 9. Click Launch PortVision DX and Finish in the last installation screen. 10.
Preparing the DeviceMaster for Configuration 11. Select the Comtrol Ethernet-attached products that you want to locate and then click Scan. You can save time if you only scan for DeviceMasters. Note: If the Comtrol Ethernet-attached product is not on the local segment and it has been programmed with an IP address, it will be necessary to manually add the Comtrol Ethernet-attached product to PortVision DX.
Page 28
Preparing the DeviceMaster for Configuration 4. Click Scan to locate the Comtrol Ethernet-attached products including the DeviceMaster on the network. Note: If you do not have any RocketLinx managed switches or IO-Link Masters, it saves scanning time if you do not scan for them.
Page 29
Preparing the DeviceMaster for Configuration 6. Optionally, rename the DeviceMaster in the Device Name field. Note: The MAC address Device Status fields are automatically populated and you cannot change those values. 7. Optionally, enter the serial number, which is on a label on the DeviceMaster. 8.
DeviceMaster. If you see SocketServer or NS-Link as the Software Version, you must load the appropriate firmware for your protocol. 3. Check the Comtrol FTP site to see if there is a later version available: http://downloads.comtrol.com/html/DM_UP_main.htm. 4. If applicable, download the latest version and go to...
1. Execute the .msi file that you downloaded for the firmware. 2. Start PortVision DX by double-clicking the PortVision DX desktop icon or click Start > Programs > Comtrol > PortVision DX > PortVision DX. 3. Right-click the device or devices for which you want to upload firmware and click the Advanced >...
Page 32
Preparing the DeviceMaster for Configuration 5. Click Yes to upload the firmware. 6. Click OK to the advisory message about waiting until the DeviceMaster is on- line and in the next minute the DeviceMaster unit or units should display ON- LINE in the Status field.
Preparing the DeviceMaster for Configuration Customizing PortVision DX You can customize how PortVision DX displays the devices. You can even create sessions tailored for specific audiences. You can also add shortcuts to other applications using Tools > Applications > Customize feature. The following illustrates how you can customize your view.
Use this procedure to initially download a document or documents. Documentation 1. If necessary, open PortVision DX > Start/Programs > Comtrol > PortVision DX > PortVision DX or use the desktop shortcut. 2. Click Help > Documentation. 3. Optionally, click the DOWNLOAD THE CURRENT...
Previously PortVision DX. Downloaded Note: Optionally, you can browse to the Program Files (x86) > Comtrol > PortVision Documents DX > Docs subdirectory and open the document. 1. If necessary, open PortVision DX > Start/Programs > Comtrol > PortVision DX >...
Page 36
Preparing the DeviceMaster for Configuration 36 - Preparing the DeviceMaster for Configuration DeviceMaster PNIO | UP User Guide: 2000639 Rev. A...
Connecting Serial Devices This section discusses connecting your serial devices to the DeviceMaster UP. It also provides you with information to build serial cables and loopback connectors to test the serial ports. • DB9 Connectors • RJ45 Connectors on Page 41 •...
Connecting Serial Devices DB9 Null-Modem Use the following figure if you need to build an RS-232 null-modem cable. A null- Cables (RS-232) modem cable is required for connecting DTE devices. DB25 RJ45 Signal Pins Pins Pins Pins Signal Note: You may want to purchase or build a straight-through cable and purchase a null-modem adapter.
Connecting Serial Devices DB9 Loopback Plugs Loopback connectors are DB9 female serial port plugs with pins wired together that are used in conjunction with application software to test serial ports. The DeviceMaster UP is shipped with a a single loopback plug (RS-232/422). Wire the following pins together to build additional plugs or replace a missing RS- 232 loopback plug: •...
Connecting Serial Devices RJ45 Null-Modem Use the following figure if you need to build an RS-422 null-modem RJ45 cable. A Cables (RS-422) null-modem cable is required for connecting DTE devices. RJ45 Signal Pins Signal TxD+ RxD+ TxD- RxD- RxD+ TxD+ RxD- TxD- Note: RS-422 pinouts are not standardized.
Connecting Serial Devices Connecting RJ45 You can use this information to connect serial devices to RJ45 connectors. Devices 1. Connect your serial devices to the appropriate serial port on the DeviceMaster UP using the appropriate cable. Note: Refer to the hardware manufacturer’s installation documentation if you need help with connector pinouts or cabling for the peripheral device.
Connecting Serial Devices Four Screw Terminals This subsection discusses the following topics for the DeviceMaster with 4 serial screw terminals. See Eight Screw Terminals on Page 47 if the DeviceMaster has eight serial terminals. • Serial Terminal (4) Connectors on Page 44 •...
Connecting Serial Devices Serial Terminal (4) An RS-232 null-modem cable is required for RS-232 Null-Modem Cable Null-Modem Cables connecting DTE devices. (RS-232) DB25 Serial Terminal (4) An RS-422 null-modem cable is required for RS-422 Null-Modem Cable Null-Modem Cables connecting DTE devices. (RS-422) Note: RS-422 pinouts are not standardized.
Connecting Serial Devices Serial Terminal (4) Use this drawing to wire a loopback, which is used Loopback Signals in conjunction with application software to test serial ports. Wire the terminals together to create a loopback. • TxD to RxD • RTS to CTS Connecting Serial Use the following information to connect the DeviceMaster with serial terminals.
Connecting Serial Devices Eight Screw Terminals This subsection discusses the following topics for the DeviceMaster with 8 serial screw terminals. • Screw Terminal (8) Connectors on Page 47 • Screw Terminal (8) Null-Modem Cables (RS-232) on Page 48 • Screw Terminal (8) Null-Modem Cables (RS-422) on Page 48 •...
Connecting Serial Devices Screw Terminal (8) Use the drawing below to wire a loopback, which is used in conjunction with Loopback Signals application software to test serial ports. Wire the terminals together to create a loopback. • TxD to RxD •...
Connecting Serial Devices Nine Screw Terminals This subsection discusses the following topics for the DeviceMaster with 9 serial screw terminals. • Screw Terminal Connectors (9) on Page 50 • Screw Terminal (9) Null-Modem RS-232 Cables on Page 50 • Screw Terminal (9) Null-Modem RS-422 Cables on Page 51 •...
Connecting Serial Devices Screw Terminal (9) An RS-422 null-modem cable is required for connecting DTE devices. Null-Modem RS-422 RS-422 Null-Modem Cable Cables DSR RI RxD CTS Sig Gnd RxD- RxD+ TxD- TxD+ DB25 Note: RS-422 pinouts are not standardized. Each peripheral manufacturer uses different pinouts.
Connecting Serial Devices Connecting Serial Use the following information to connect the DeviceMaster with serial terminals. Devices 1. Connect your serial devices to the appropriate serial port on the DeviceMaster using the appropriate cable. You can build your own cables or loopbacks using the appropriate discussions.
Configuring a Serial Port Use the following procedure to configure the serial ports. 1. Open the DeviceMaster web page using your browser. Note: The default IP address is 192.168.250.250. You can use PortVision DX to program your IP address, if necessary ( Preparing the DeviceMaster for Configuration, Page 23).
Page 54
Configuring a Serial Port 3. Click the port number that you want to configure and the corresponding port page displays. 4. Configure the serial port to match the serial device that you plan on attaching to that serial port and click Save when you are done. Refer to the following tables if you need information about the options on the Port Configuration page.
Page 55
Configuring a Serial Port Serial Port Configuration - Serial Device Options (Continued) Select a method for error checking. None - When the parity is set to none, there is no parity bit, • and DeviceMaster does not perform parity checking. Odd - Indicates that the sum of all the 1-bits in the byte plus •...
Page 56
Configuring a Serial Port Serial Port Configuration - Serial Device Options (Continued) • Truncate - Oversize packets are truncated and sent to IO controller as cyclic IO data. • SaveRec - Oversize packets are truncated and sent to IO Oversize Rx controller as cyclic IO data.
Page 57
Configuring a Serial Port Serial Port Configuration - Serial Packet (Continued) When enabled, the DeviceMaster detects an ETX (end of transmission) byte sequence that is configured as one byte or two bytes marking the end of the serial packet. The length indicates the number of ETX bytes, valid values for length are: none - Disables this function and the DeviceMaster uses •...
Page 58
Configuring a Serial Port Serial Port Configuration - Serial Packet (Continued) When you select this check box, the DeviceMaster strips STX/ ETX characters from received serial packets. Clear the check Tx Append box when you do not want the DeviceMaster to strip STX/ETX Delimiters from characters from received serial packets.
Page 59
Configuring a Serial Port Serial Port Configuration - Application TCP Connection This setting enables/disables the application TCP connection for a serial port. Enabling this function allows a TCP application to be connected to a serial device. If both the PLC and application are connected to the device, both can transmit to and receive data from the serial device.
Page 60
Configuring a Serial Port 60 - Configuring a Serial Port DeviceMaster PNIO | UP User Guide: 2000639 Rev. A...
Configuring an Ethernet Device Use the following procedure to configure Ethernet characteristics for the port. 1. Open the DeviceMaster web page using your browser. 2. Click Ethernet and the Ethernet Device Overview page displays. DeviceMaster PNIO | UP User Guide: 2000639 Rev. A Configuring an Ethernet Device - 61...
Page 62
Configuring an Ethernet Device 3. Click the device number that you want to configure and the corresponding page displays. 4. Configure the Ethernet settings to match the device that you plan on using and click Save when you are done. Refer to the following tables if you need information about the options.
Page 63
Configuring an Ethernet Device Ethernet Device Configuration - Ethernet Device A user definable string used to describe the serial interface. Valid characters include a-z, A-Z, 0-9, underscores, spaces and Device Name dashes. All other characters are discarded. Up to 80 character ASCII string.
Page 64
Configuring an Ethernet Device Ethernet Device Configuration - Ethernet Device (Continued) This setting specifies if and how the DeviceMaster disconnects from the device. Never - The DeviceMaster does not disconnect from the • device. Disconnect Mode Idle - The DeviceMaster disconnects when there has been •...
Page 65
Configuring an Ethernet Device Ethernet Device Configuration - Ethernet Packet When enabled, the DeviceMaster detects an STX (start of transmission) byte sequence which is configured as one byte or two bytes when it receives a Ethernet packet. The length indicates the number of STX bytes, valid values for length are: none - Disables this function and the DeviceMaster accepts •...
Page 66
Configuring an Ethernet Device Ethernet Device Configuration - Ethernet Packet (Continued) When enabled, the DeviceMaster appends an STX (start of transmission) byte sequence which is configured as one byte or two bytes to the beginning of the Ethernet packet before it is sent.
Page 67
Configuring an Ethernet Device Ethernet Device Configuration - Ethernet Packet (Continued) When enabled, the DeviceMaster appends an STX (start of transmission) byte sequence which is configured as one byte or two bytes to the beginning of the Ethernet packet before it is sent.
Page 68
Configuring an Ethernet Device Ethernet Device Configuration - Application TCP Connection This setting enables/disables the application TCP connection for an Ethernet device. Enabling this function allows a TCP application to be connected to an Ethernet device. If both the PLC and application are connected to the device, both can transmit to and receive data from the Ethernet device.
Use these steps to add the DeviceMaster. 1. From the Hardware catalog, under Other field devices | PROFINET IO | Gateway | Comtrol Corporation | Comtrol DeviceMaster, select the model corresponding to your device, and drag it into the Network view area.
Configuring the DeviceMaster in TIA Portal Description GSD Model DeviceMaster UP DB9M 2-Port 2E (PNIO-2302) DM PNIO 2P2E DeviceMaster UP 2-Port 2E (PNIO-2402) DeviceMaster UP 4-Port DM PNIO 4P2E DeviceMaster PNIO-2304 2. To connect the device to PLC, click the link on the device and select PLC_1.PROFINET interface_1 from the pop-up menu, as shown in this screen shot.
Configuring the DeviceMaster in TIA Portal Assigning an IP IP addresses can be assigned statically using one of the following methods: Address Statically • Embedded web interface (or PortVision DX) • Assign IP address function of TIA Portal on-line access Assigning IP Address You can use the following procedure to configure a static IP address using the web Statically Using the...
Configuring the DeviceMaster in TIA Portal Assigning IP Address You can also use the following procedure to configure a static IP address using TIA Statically Using TIA Portal. Portal 1. Double-click Project tree | Online access | Your Ethernet Adapter | Accessible device [192.168.250.250] | Online &...
Configuring the DeviceMaster in TIA Portal Configuring TIA Portal When using static IP address assignment either through the web interface or TIA Project Not to Set IP Portal on-line access, you will need to configure the TIA Portal project not to set IP Address address in project.
Configuring the DeviceMaster in TIA Portal 4. Click System | Reboot and the DeviceMaster will reboot in 10 seconds or you can click on the Reboot Now button to reboot immediately. Once rebooted, the gateway attempts to obtain an IP address from a DHCP server.
DeviceMaster for Configuration on Page 23. Comtrol recommends using static IP address assignment when possible. The web interface always works regardless of the presence of an IO controller or not. In addition, DCP IP assignment overwrites the static or DHCP IP assignment. For example: an IO controller is configured to set IP address in the project.
Configuring the DeviceMaster in TIA Portal 4. Click the Save button. A reboot is required for the new name to take effect. 5. Click System | Reboot to reboot the gateway. Assigning the Use the following procedure to configure the Device Name using TIA Portal. Device Name in TIA 1.
Configuring the DeviceMaster in TIA Portal Configuring Device After assigning a device name to the DeviceMaster, the same device name also Name in TIA Portal needs to be configured in the TIA Portal project. Project 1. In TIA Portal, double-click the DeviceMaster module to open the Device View. 2.
You may need to compile and download the project and if necessary, reboot the DeviceMaster. Open the Diagnostics | System Info web page on the Comtrol device. Verify under the PLC Interface section, that a PROFINET IO connection has been successfully established between the gateway and IO controller, the Active Application Relationships should be 1.
Configuring the DeviceMaster in TIA Portal • Verify that the gateway has a valid device name. See Device Name Assignment on Page 75 for assigning device name. • Make sure there are no other devices on the same network using the same IP address or device name.
Page 80
Configuring the DeviceMaster in TIA Portal supported Ethernet devices equals the number of Ethernet ports. For example, a PNIO-2101 supports one Ethernet device; a PNIO-2304 supports two Ethernet devices. Slot N+1 is for Ethernet device 1. Slot N+2 is for Ethernet device 2 when applicable. The following table summarizes the available slots and corresponding IO modules for different DeviceMaster gateways.
Configuring the DeviceMaster in TIA Portal Each submodule can be inserted to one of the two available sub-slots of an IO module. Sub-slot 1 is reserved for an input submodule; Sub-slot 2 is for an output submodule. The following table illustrates the available submodules and their allowed sub-slots.
Page 82
Configuring the DeviceMaster in TIA Portal Handling Oversize Packets on Page 95 for more information regarding oversize packets handling and the method to retrieve an entire oversize packet without losing data. This table shows the data format of an output submodule. Output Submodule Byte Offset Description...
IO Data Handling This section describes how the DeviceMaster handles IO data. Input Data Handling When the DeviceMaster receives input data from a serial port, it first converts the low level serial signals into bytes of raw serial data. Then serial packets are created from the raw data based on delimiters and/or receiving timer.
Page 84
IO Data Handling Packets from different serial ports and Ethernet devices are combined and sent to IO controller in one PROFINET IO frame. For example, a PNIO-2304 or DeviceMaster UP 4-port panel mount has 6 220-byte input submodules configured for 4 serial ports and 2 Ethernet devices. There are multiple packets waiting in the receiving queue on all 6 ports/devices.
IO Data Handling Handling Input Data Input data received by an IO controller is available at the input address range and in PLC can be read directly by the IO controller. Due to the nature of PROFINET IO cyclical communication, the DeviceMaster sends input data to the IO controller at every IO update cycle regardless if there is new input data or not.
IO Data Handling Output Data Handling This subsection discusses the following topics: • Formatting an Output Packet on Page 86 • Transmitting an Output Packet on Page 86 • Appending Delimiters on Page 87 Formatting an To write output data, an output packet needs to be first assembled in the IO Output Packet controller’s memory using the format as shown in the Output Data Format table (Page 82) of an Output Submodule.
IO Data Handling Appending For output devices that require STX and/or ETX delimiters. They can be added Delimiters when formatting the output packet in IO controller. Or, you can configure the DeviceMaster to append delimiters to output packets automatically. 1. Open the web interface, click Serial | Port X. 2.
Page 88
IO Data Handling 88 - IO Data Handling DeviceMaster PNIO | UP User Guide: 2000639 Rev. A...
Project Example This section demonstrates how to use a serial device to read and write IO data in the PLC. The serial device can receive and transmit ASCII string up to 32 bytes. The serial device uses STX (16#02) and ETX (16#03) to mark the beginning and end of each ASCII string.
Page 90
Project Example 4. Create an input buffer structure called InputBuf that has the same format as the input data, as shown in the following figure. 5. Add a DPRD_DAT instruction into the main block to copy data from input address into the InputBuf structure in the data block, as shown in the following figure.
Page 91
Project Example There should be a (02h)ABCD(03h) message in the Serial Log on Port 1, as shown in the following figure. Where (02h) and (03h) are the STX and ETX. ABCD are the actual serial data. Rx means it is input data. If you do not see above message in the Serial Log, here are some troubleshooting tips: •...
Project Example Writing Output Data Since the serial device uses STX and ETX, configure the DeviceMaster to automatically append STX and ETX for all output data. 1. Open the DeviceMaster web page, click Serial | Port 1. 2. Configure the Tx Append Delimiters from PLC section as shown in the following figure.
Page 93
Project Example 4. Click the Modify Once button. The tag LastTxSeqNum (IW104), which is the input data of the output submodule, changes from 0 to 1 immediately. That means the DeviceMaster has successfully transmitted the output through the serial port. 5.
Page 94
Project Example The following figure shows an output buffer structure called OutputBuf. In a PLC program, fill out the sequence number, length and data fields. Make sure that the length field is correct and the sequence number is incremented every time.
Advanced Functions This section discussed the following topics: • Handling Oversize Packets on Page 95 • Shared Device Functionality on Page 99 Handling Oversize Packets When a packet larger than the input size of the submodule is received, the DeviceMaster’s default behavior is to truncate the packet to the maximum allowed size and send it to the IO controller as normal IO data.
Page 96
Advanced Functions If you want to read an entire packet, the target range specified by the RECORD parameter must be large enough to hold a maximum size packet, including the 4 byte sequence number and length field. For a serial port, the maximum possible size is 1518 + 4 bytes;...
Advanced Functions Notes: • The of target range [0..3] always contains the sequence number and the original packet length. Reading a partial packet will not change the length field. The LEN parameter indicates the number of bytes that are actually read. •...
Advanced Functions For normal input data received during IO update cycles, we use the same InputBuf structure (Page 90) and the DPRD_DAT instruction to store them in a data block. Besides, a RecordData structure is defined in the same data block and is used as the target range of RDREC instruction, as shown in the figure below.
Advanced Functions Shared Device Functionality The DeviceMaster supports the shared device functionality, which allows two IO controllers to access different serial ports or Ethernet devices through the same gateway simultaneously. Assuming we have a PNIO-2304 and two IO controllers. IO Controller 1 wants to access two serial devices connected to Serial Port 1 and 2.
Page 100
Advanced Functions 6. Insert a serial module to Slot 3 and configure the IO submodules, as shown in following figure. 7. Leave Slot 1 and Slot 2 open as they are controlled by PLC1. 8. Double-click the DeviceMaster, on the General tab | Shared Device, change the Access option from PLC_2 to —...
Page 101
Advanced Functions The PLC connection status is also displayed on the Diagnostics | Communication Stats page for each serial port and Ethernet device. The following figure shows that Serial Port 1 and Port 2 are controlled by PLC1 through the first application relationship (AR 1), while Port 3 is controlled by PLC2 through the second application relationship (AR 2).
Page 102
Advanced Functions If the second connection could not be established, here are some troubleshooting tips: • Make sure the same DeviceMaster module is added in both projects. The DeviceMaster module must be assigned with the same IP address and same device name.
Network Menu Portions of the web pages under the Network menu may be discussed in Configuring the DeviceMaster in TIA Portal on Page 69. This section provides information about each Network menu web page: • Configuration Page on Page 103 •...
Page 104
Network Menu Option Description General Device Name You can enter a PROFINET IO device name for this DeviceMaster. Default = empty The device name must be specified according to DNS conventions. • Restricted to a total of 240 characters (letters, digits, dash or period).
Network Menu Option Description IPv4 Use DHCP Configures the DeviceMaster to use DHCPv4 mode. See your System Administrator to acquire a unique reserved IPv4 address if you are using DHCP. They will need the MAC address of the unit to provide you with an IPv4 address. Use PLC assigned The Use PLC assigned radio box is for information only.
TCP driver protocol on TCP port 4606 are ignored. • Administrative commands that change configuration or operating state that are received using the Comtrol MAC mode proprietary Ethernet protocol number 0x11FE are ignored. Enable Telnet/SSH This option enables or disables the telnet security feature after you click Save and the DeviceMaster has been rebooted.
Network Menu Keys/Certs Page The Key and Certificate Management page is discussed in the following table. Key and Certificate Description Management RSA Key pair used This is a private/public key pair that is used for two purposes: by SSL and SSH •...
Client Authentication for more detailed information. Note: All DeviceMaster units are shipped from the factory with identical configurations. They all have the identical, self-signed, Comtrol Server RSA Certificates, Server RSA Keys, Server DH Keys, and no Client Authentication Certificates. For maximum data and access security, you should configure all DeviceMaster units with custom certificates and keys.
Network Menu Changing Keys and Use the following steps to update security keys and certificates in the Certificates DeviceMaster. 1. Click the Network | Keys/Cert. 2. Click Browse to locate the key or certificate file, highlight the file, and click Open.
Page 110
Network Menu Miscellaneous Description Setting Show extended Enabling this option provides more detailed system log diagnostics in information in Diagnostics | System Log, such as: System log • Thread name • • State • Priority • Stacksize • Stackused • SuspendCnt •...
Diagnostics Menu This section provides information about the web pages under the Diagnostics menu: • Communication Statistics Page on Page 112 • Serial Log on Page 116 • Ethernet Log on Page 117 • System Log on Page 118 • System Info on Page 119 DeviceMaster PNIO | UP User Guide: 2000639 Rev.
Diagnostics Menu Communication Statistics Page The following table provides information about the Communication Statistics page. 112 - Diagnostics Menu DeviceMaster PNIO | UP User Guide: 2000639 Rev. A...
Page 113
Diagnostics Menu Communication Statistics Serial PLC Connection Displays the application relationship number of the current PLC connection. Status Tx Byte Count Displays the number of bytes sent out of the serial port. Tx Packet Count Displays the number of serial packets sent out of the serial port. Rx Byte Count Displays the number of bytes received over the serial port.
Page 114
Diagnostics Menu Communication Statistics (Continued) To Application Tx Displays the number of bytes sent to application TCP connection. Byte Count To Application Tx Displays the number of serial packets sent to application TCP connection. Packet Count From Application Displays the number of bytes received from application TCP connection. Rx Byte Count From Application Displays the number of serial packets received from application TCP connection.
Page 115
Diagnostics Menu Communication Statistics (Continued) Displays the number of received Ethernet device packets intended for the application dropped: • No STX byte(s) found Device To • No ETX byte(s) found Application Dropped Packet • Time-outs Count • Packet too large •...
Diagnostics Menu Serial Log The Serial Port Log page provides a log of received and transmitted serial port messages. Up to 128 bytes per message and up to 128 messages are logged. It is intended to help with debugging serial connectivity problems, determining the proper start and end of transmission bytes, and diagnosing device problems.
Diagnostics Menu Ethernet Log The Ethernet Device Interface Logs page provides a log of received and transmitted Ethernet device messages. Up to 128 bytes per message and up to 128 messages are logged. It is intended to help with debugging Ethernet connectivity problems, determining the proper start and end of transmission bytes, and diagnosing device problems.
Diagnostics Menu System Log The System Log displays the log of system activities. 118 - Diagnostics Menu DeviceMaster PNIO | UP User Guide: 2000639 Rev. A...
Diagnostics Menu System Info The following table provides you information about the Diagnostics | System Info page. System Info PLC Interface Active Application Relationships The number of active application relationships. Application Relationship 1 Uptime The uptime of application relationship 1. Application Relationship 2 Uptime The uptime of application relationship 2.
Page 120
Diagnostics Menu System Info The number of system errors detected: • Port MAC address information not available System Errors • Errors occurred when accessing Ethernet interface • Invalid application relationship number • Invalid module, submodule, slot, or subslot number Record Read Errors The number of errors occurred when reading record data.
You can upload firmware (PROFINET IO or Bootloader) using the System | Update Firmware page. Use the following procedure to upload the latest firmware onto the DeviceMaster. 1. If necessary, download the firmware from the Comtrol download site. 2. Execute the PROFINET_IO_x.x.msi file. 3. Click the Next button.
Page 122
System Menu 4. After reviewing the license, click I accept the terms in the License Agreement and the Next button. 5. Click the Next button or browse to the location you want the files stored. 6. Click the Install button. 7.
Page 123
System Menu 8. Click the Finish button. 9. Click the Browse button, navigate to the file, select it and click the Open button. 10. Click the Update button. An Update In Progress pop up notifies you with the upload duration, not to reset or disconnect the device or to close the page.
System Menu Configuration File You can use the Save Configuration option to save a DeviceMaster configuration file for recovery purposes or to quickly configure other DeviceMasters that require the same configuration using the Load Configuration option. Note: Optionally, you can use PortVision DX to save and load configuration files. Saving a You can use this procedure to save a DeviceMaster configuration file.
System Menu Loading a You can use this procedure to load a previously saved DeviceMaster configuration Configuration File file. 1. Click System | Configuration File. 2. Click the Browse button, highlight the configuration file you want to load, and click the Open button. 3.
System Menu Restore Defaults You can easily some or all of your settings to factory defaults by using the procedure below. 1. Click System | Restore. 2. Select Everything or the specific setting you want to restore. 3. Click the Restore button. 4.
Managing the DeviceMaster This section discusses the following DeviceMaster maintenance procedures: • Rebooting the DeviceMaster • Uploading Firmware to Multiple DeviceMasters on Page 128 • Configuring Multiple DeviceMasters Network Addresses on Page 129 Note: You can configure the network addresses for multiple DeviceMasters, configure common settings for the DeviceMasters, and save the settings to a configuration file that you can use to load settings up to all or selected DeviceMasters.
Managing the DeviceMaster Uploading Firmware to Multiple DeviceMasters You can use this procedure if your DeviceMaster is connected to the host PC, laptop, or if the DeviceMaster resides on the local network segment. 1. If you have not done so, install PortVision DX (Installing PortVision DX Page 24) and Scan the network.
Managing the DeviceMaster Configuring Multiple DeviceMasters Network Addresses You can configure the network addresses for multiple DeviceMasters using the Assign IP to Multiple Devices option. In addition, you can also configure common settings for the DeviceMaster web page and save the settings to a configuration file that you can load to all or selected DeviceMasters.
Managing the DeviceMaster 7. Enter the IP Address for the DeviceMaster. It is not necessary to enter the Subnet Mask and Default Gateway. 8. Click Ok to close the Add New Device window. It may take a few moments to save the DeviceMaster.
Managing the DeviceMaster 6. Select LOCAL for the Detection Type. 7. Enter the MAC address or network information. Note: A MAC address label is attached to all DeviceMaster units. The first three pairs of digits start with 00 C0 4E. 8.
Use the following procedure to upload Bootloader to the DeviceMaster. Typically, Bootloader you should not update the Bootloader unless advised to do so by Comtrol Technical Support or a notice has been posted to the firmware download page on the ftp site.
Page 133
Managing the DeviceMaster 3. Right-click the DeviceMaster for which you want to update, click Advanced > Upload Firmware, browse to the Bootloader .cmtl file, and then click Open. 4. Click Yes to the Upload Firmware message that warns you that this is a sensitive process.
Managing the DeviceMaster Restoring Factory Defaults (Specific Models) Use the following procedures to restore the following DeviceMaster models to the factory defaults: • DeviceMaster 1-port DIN rail models • DeviceMaster 2-port DIN rail models • DeviceMaster 4-port DIN rail models If Technical Support advises you to restore the DeviceMaster factory defaults, depress the Reset/Restore switch for greater than 5 seconds.
Managing the DeviceMaster Accessing RedBoot Commands in Telnet/SSH Sessions (PortVision DX) You can open a Telnet or SSH session using PortVision DX to access RedBoot commands. Use the following procedure to access a telnet or SSH session with PortVision DX. 1.
Page 136
Managing the DeviceMaster 3. If necessary, enter the password and press Enter. If a password has not been set, press Enter. If using an SSH session, press Enter to the login as prompt. 4. Type Reset, press Enter, and close the telnet session. 5.
Page 137
Managing the DeviceMaster 6. Select Telnet or SSH, leave the Selected Port number, and click Ok. 7. Press Enter. You can type help to review the RedBoot commands. You can also refer to RedBoot Command Overview on Page 145. Note: The dm prompt should be replaced by a redboot prompt. If not, you can reset the Bootloader timeout for a longer time period and retry this procedure.
Page 138
Managing the DeviceMaster 138 - Managing the DeviceMaster DeviceMaster PNIO | UP User Guide: 2000639 Rev. A...
RedBoot Procedures You can use this section as a reference if you want to perform tasks in RedBoot. • Accessing RedBoot Overview on Page 139 • Establishing a Serial Connection on Page 140 • Establishing a Telnet Connection on Page 141 •...
RedBoot Procedures Establishing a Serial Connection Use the following procedure to set up a serial connection with a terminal server program. You can use HyperTerminal (Windows) or optionally, Test Terminal (WCom2), which can be accessed from PortVision DX using Tools > Applications > Test Terminal (WCom2).
RedBoot Procedures Establishing a Telnet Connection Use the following procedure to telnet to the DeviceMaster. 1. Open a telnet session, enter the DeviceMaster IP address. If using Windows, you can use PortVision DX, see Accessing RedBoot Commands in Telnet/SSH Sessions (PortVision DX) on Page 135.
RedBoot Procedures Determining the Network Settings If you are not sure what the network information is on a DeviceMaster, you can perform the following procedure. 1. Establish communications with the DeviceMaster using the serial (Page 140) or telnet (Page 141) method. Default Network 2.
RedBoot Procedures Changing the Bootloader Timeout Use the following procedure to change the Bootloader timeout value. 1. Establish communications with the DeviceMaster using the serial (Page 140) or telnet (Page 141) method. 2. At the RedBoot prompt, type timeout. RedBoot> dis Loading disabled RedBoot>...
RedBoot Procedures Resetting the DeviceMaster When you have completed your tasks in RedBoot, you must enter a reset command at the RedBoot> prompt for the DeviceMaster to begin operation. Note: The LEDs on the DeviceMaster will go through the power up sequence. The DeviceMaster has completed its reset cycle when the Status LED is lit and it stops flashing.
RedBoot, you can review the list of commands online by entering help and pressing the Enter key. For more detailed information, see the eCos Reference Manual that you can download from: http://downloads.comtrol.com/dev_mstr/UP/software/redboot/ user_guide. RedBoot Commands Sets or displays web authentication. The default is set to none, which means that there is no authentication required to access the web server.
Page 146
RedBoot Procedures RedBoot Commands (Continued) Runs loopback test on port. The DeviceMaster Serial Hub does not loop 232|422|int port-number support this command. Displays Ethernet MAC address. mac† mcmp -s <location> -s <location> Compares two blocks of memory. -d <location> -l <length> [-1|-2|-4] mcopy -s <location>...
Page 147
RedBoot Procedures RedBoot Commands (Continued) Reads specified KSZ8863 registers. kszrd <r1> [r2] kszrestart Restarts KSZ8863. Reads specified KSZ8863 registers. kszwr <r1> <val> † Read-only items that you cannot change in Redboot. DeviceMaster PNIO | UP User Guide: 2000639 Rev. A RedBoot Procedures - 147...
Page 148
RedBoot Procedures 148 - RedBoot Procedures DeviceMaster PNIO | UP User Guide: 2000639 Rev. A...
This table provides specifications for the power Screw Terminal Connector supply shipped with the DeviceMaster 1-port Return Earth Gnd panel mount. 5-30VDC Comtrol Power Supply: 1-Port 5-30VDC Positive Input line frequency 43-63 Hz Input line voltage 90-260 VAC Wire gauge:...
External Power Supply Specifications PNIO-2101 and PNIO-2201: 1-Port DIN Rail Power Supply This table provides the specifications to purchase a power supply for a DeviceMaster PNIO-2101 and PNIO-2201 1-port DIN rail. † Wire gauge: AWG 12-22 Positive† Positive† Return† Chassis Ground†...
External Power Supply Specifications PNIO-2202 and PNIO-2402: 2-Port (Serial Terminals) Power Supply This table provides the specifications to purchase a power supply for a DeviceMaster 2-port (PNIO-2202 and PNIO-2402) with serial terminals DIN rail. 6-30VDC Signal Chassis Ground† Ground† Return† Positive†...
External Power Supply Specifications PNIO-2102 and PNIO-2302: 2-Port DB9 Power Supply (Bottom) This table provides the specifications to purchase a power supply for a DeviceMaster 2-port 1E/2E models (PNIO-2102 and PNIO-2302) with DB9 connectors. Return† Positive† Positive† Chassis 6-30VDC 6-30VDC Ground†...
External Power Supply Specifications PNIO-2102 and PNIO-2302: 2-Port DB9 Power Supply (Top) This table provides the specifications to purchase a power supply for a DeviceMaster PNIO-2102 and PNIO-2302 2-port DB9 DIN rail. Note: The power supply for this model is on the top of the unit. The product serial numbers are above xxxx-030000, where xxxx is the first four digits of the serial number.
This table provides the specifications for the +VDC power supply shipped with the DeviceMaster 4- port. V Return - GND Shield GND Comtrol Power Supply: 4-Port Housing Molex P/N: Input line frequency 47 - 63 Hz 39-01-4030 Input line voltage...
• Verify that you are using the correct types of cables on the correct connectors and that all cables are connected securely. Note: Most customer problems reported to Comtrol Technical Support are eventually traced to cabling or network problems. Ethernet...
Page 156
Troubleshooting and Technical Support • Reboot the system, then reset the power on the DeviceMaster and watch the PWR or Status (Page 159) light activity. PWR or Status LED Description ™ 5 sec. off, 3 flashes, 5 sec. off, 3 flashes... RedBoot checksum failure.
Troubleshooting and Technical Support General Troubleshooting This table illustrates some general troubleshooting tips. Note: Make sure that you have reviewed the Troubleshooting Checklist on Page 155. General Condition Explanation/Action Indicates that boot program has not downloaded to the unit. 1. Reboot the system. PWR or Status LED 2.
Ethernet standards and will be determined by your own environment and the conformity of your network to these standards. Comtrol has tested with seven DeviceMaster 4 units daisy-chained together using 10 foot CAT5 cables, but this is not the theoretical limit. You may experience a performance hit on the devices at the end of the chain, so it is recommended that you overload and test for performance in your environment.
Troubleshooting and Technical Support DeviceMaster LEDs The DeviceMaster has network and port LEDs to indicate status. This subsection discusses: • TX/RX LEDs • Network and Device LEDs on Page 159 TX/RX LEDs This subsection discusses RX and TX LEDs on the DeviceMaster 4-port. Note: DeviceMaster DIN rail models do not have TX/RX LEDs.
If the red 100 LED is lit, it indicates a working 100 MB Ethernet connection (100 MB network, only). Technical Support If you need technical support use one of the following methods. Comtrol Contact Information Downloads (FTP) ftp://ftp.comtrol.com/html/DM_UP_Main.htm Downloads (HTTP) http://downloads.comtrol.com/html/DM_UP_Main.htm...
Need help?
Do you have a question about the DeviceMaster PNIO 2000 Series and is the answer not in the manual?
Questions and answers