Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 10 of 14

Protos X Installation and I/O Manual, pages 91 to 100

Pages 91 to 100 of 138

The original document is the PDF (45 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the AutomationDirect PX-901

Page 91

Chapter 4: Protos X Configuration

File Menu a. Save... This selection or Ctrl+S, Saves a “.csv” (comma separated value) file containing information downloaded from the Bus Coupler. The file is Saved to a directory chosen by the user. This read only file containing Terminal and Addressing information can be viewed when opened using MS Excel®. This file cannot be used to load configuration data to a Bus Coupler.

1 2 b. Print... Selecting Print or Ctrl +P, prints the screen as it is viewed. Therefore, if all the Terminals 3 are expanded, the Printout will include all the Terminals with the expanded view. If only one Terminal is expanded, the Printout will only include the expanded view for that Terminal. 4 c. Choosing this selection Exits/Closes the Protos X configuration software. Tools Menu 5 a. When the PX-USB-232 is connected to a Bus Coupler it is detected and the selection will become 6 active. An inactive selection will look faded as seen in the Connection selection on the graphic above. When active, click on Connect to make a connection with the 7 Bus Coupler. b. Disconnect: Click to Disconnect the Configuration 8 Software from the Bus Coupler. The Configuration Software does not send/ receive continual messages to/ from the Bus Couplers. If a cable has been removed or 9 communications has been interrupted, you may have to reconnect to the Bus Coupler. 10 c. Coupler Config...: This selection opens the Coupler Configuration window. The Coupler Configuration dialog will vary depending on the Bus Coupler you are connected to (Serial or Ethernet.) 11 Note: The rotary switches on the PX-MOD should be set to “ 00 “ for the Configuration Tool to connect. 12

1. Connection (See boxes on following page): If connected to the Ethernet Bus Coupler, the configuration window will allow you to view the MAC ID, change the Host Name, choose whether to manually assign an IP Address or 13 choose the BootP or the DHCP option for IP Address assignment. If you choose to manually assign the IP Address, you can enter the IP Address, Subnet Mask, and the Gateway, if your network has one. The first three octets of the IP Address 14 will be assigned through the configuration software. The last octet must be set by the DIP switches on the Bus Coupler. The configuration software will display A how the DIP switches should be set based on the Address that is entered into the address field. See the following DIP switch configuration example. B C D Protos X Installation and I/O Manual, 1st Edition, Rev. D

4–3

Page 92

Chapter 4: Protos X Configuration

Tools Menu, (cont’d)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4–4

1

2

2. Connection: If connected to the Serial Bus Coupler, the configuration window shown at left will allow you to select the operating mode (Modbus RTU or Modbus ASCII), baud rate, end of frame time (in milliseconds), data bits, parity, and stop bits (see box below). These settings should reflect the COM Port settings of the master device.

d. Options...: This selection opens the Options setup window. This dialog box is used for selecting the COM Port type and connecting to the Bus Coupler. The port settings are configured in the Coupler Configuration window and cannot be changed in this dialog.

Protos X Installation and I/O Manual, 1st Edition, Rev. D

Page 93

Chapter 4: Protos X Configuration

Tools Menu, (cont’d)

1 2 3 4 5 6 7 8 9 The General Settings portion of this window can be edited as follows:

1. Based Modbus Addressing: You can choose to enable the Zero Based Modbus 10 Addressing by clicking the checkbox. This will start the Modbus addresses at “0”, or if not chosen they will start at “1”. 11

2. Modbus Watchdog: This option is checked by default. Click the checkbox to disable the Modbus Watchdog if needed. Setting this option will cause the Bus Coupler to fault after a set time period (in milliseconds), if there has been 12 no Modbus communications. If Enable Modbus Watchdog is not checked and communications is lost, the Protos X outputs will remain in their last state. 13

3. the Modbus Watchdog timeout period in milliseconds. Choose a value between 0–65535. e. Reboot Coupler: Click on this selection to send a reboot command to the Bus Coupler so you 14 can reset it without power cycling. f. Base Configuration: Click on this selection to reload the base configuration. This A forces the Bus Coupler to read the configuration of the terminals within the assembly and reload the configuration based on the reading. B Help Menu a. Help... This selection opens the Help File. C b. PX-USER-M Opens the User Manual. D Protos X Installation and I/O Manual, 1st Edition, Rev. D

4–5

Page 94

Chapter 4: Protos X Configuration

Understanding the Protos X Configuration Software Tool

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4–6

Once the Bus Coupler has been discovered by the software, all the information you need to identify the Modbus addresses of the I/O terminals will be displayed on the Main Screen of the Protos X Configuration Software. The Main Screen should look similar to the graphic below: Each column function is described in the following text. a. Shows the physical location of the terminal in the discovered hardware. Slots are incremented from left to right.

b. Name: Displays the terminal part number. c. Description: Displays a short description of the terminal including I/O or channel count and voltage/current range. d. Description: Displays a more detailed and complete description of the terminal. e. Range: Displays the Modbus address for the bit and word level. Each terminal can be expanded to show the Modbus information in more detail.

Protos X Installation and I/O Manual, 1st Edition, Rev. D

Page 95

Chapter 4: Protos X Configuration a.

( + ) / Minimize ( - )Symbol: Use the ( + ) symbol to expand the terminal tree. When expanded, use the ( - ) symbol to collapse the terminal tree.

1 d. Modbus Address: Displays the Modbus addresses for each specific terminal by bit and word 2 level. e. Modbus Access: Shows the corresponding Modbus function codes that can be used to read from 3 or write to the terminal. Using the Configuration Software 4 These steps assume that the Protos X Configuration Software has been installed. To ensure proper operation of the configuration software once it has been installed, follow these steps: 5 1. that the PX-USB-232 configuration cable is properly connected to the USB port of your PC and the other end is properly connected to the Bus Coupler port. 6 2. C onfirm that the Protos X Bus Coupler is powered up. 3. properly connected, the green LEDs on the Bus Coupler and the cable will be illuminated. 7 These LEDs indicate when there is power on the USB port and that the Bus Coupler the cable is plugged into is powered up. 8 NOTE: Some RS-485 devices on the PX-MOD 9-pin D-sub port may prevent comm to the programming port. 9 10 11 12 13 14 If the configuration software is not running, click the program icon (shown below) on your desktop to A open the Software. B C D b. Point: Shows the points for this terminal.

c. Short Description: Shows the short description of the terminal type.

Protos X Installation and I/O Manual, 1st Edition, Rev. D

4–7

Page 96

Chapter 4: Protos X Configuration

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4–8

4. the configuration software opens, go to the Tools menu and select Connect from the drop down menu.

5. Connect is selected, the software should discover the Bus Coupler, read the I/O configuration and populate the Main Screen with information. It should look similar to the graphic shown below.

Protos X Installation and I/O Manual, 1st Edition, Rev. D

Page 97

Chapter 4: Protos X Configuration

Protos X Discrete and Analog I/O Mapping

1 2 Discrete I/O 3 Discrete I/O can be read from or written to by using a bit level Modbus function code or a word level Modbus function code. In the following example for a relay output terminal (shown 4 on top) you could use the function codes 1 (read coil status), 5 (force a single coil), or 15 (force multiple coils) to access the data of the relay output terminal at the bit level. You could also access the relay output at the word level by using the Modbus function code 3 (read holding 5 register). For the input terminal in the example below, Modbus function code 2 (read input status) can 6 be used to read the input points at the bit level. At the word level, Modbus function code 4 (read input register) or Modbus function code 3 (read holding register) can be used. 7 8 9 10 11 12 13 Analog I/O 14 Analog terminals will always use word level Modbus read/write commands. Analog input terminals also have a Status register (1 byte) and a Data register (2 bytes). Analog output A terminals have a Control register (1 byte) and a Data register (2 bytes). At this time, the Control Byte will not be used for the output terminals. The upper bytes of the Status and Control registers are not used but are consumed by the Coupler to make sure all registers are B word aligned so data does not start in the middle of a word. In the following example, the analog output terminal registers will start at register 402049. C Since the Control register will not be used, the output data can be written to the Data register using Modbus function code 6 (preset single register) or 16 (preset multiple registers). D Once the PX-CFGSW has been used to identify the Modbus addressing for the Protos X terminals in your assembly, you are ready to start reading and writing data from your Modbus controller to the Protos X Bus Coupler. Following is a description of the register mapping for the terminal I/O.

Protos X Installation and I/O Manual, 1st Edition, Rev. D

4–9

Page 98

Chapter 4: Protos X Configuration

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4–10

The analog input terminals will have a Status register associated with each input channel. The Status register can be used to determine if there is an input fault and if it is an over-range or under-range error (see status word bit map below). The Modbus function code 4 (read input register) or 3 (read holding register) can be used to get data stored in the Status and Data words of the analog output terminal. The PX-MOD will not have Status or Control registers associated with each channel’s Data word. Analog Input and Output terminals will only consume two bytes (one word) per channel. PX-TCP1 and PX-TCP2 Analog Input and Output terminals will consume 8 bytes (4 words) per channel.

Analog Input Terminal Status Register Bit Mapping To access the status bits use Modbus function code 4 (read input register) or 3 (read holding register) and use bit of word addressing or unpack bits from the word level to access the individual bits.

Protos X Installation and I/O Manual, 1st Edition, Rev. D

Page 99

Chapter 4: Protos X Configuration Within these word locations, the individual bits represent specific information about the analog signal.

Analog Terminals

MSB

PX - 302 PX - 304 PX - 308

15

LSB 14 13 12 11 10 9 8

7 6

5

4

3

2

1 0

For inputs: The LSB will change but are not significant for analog calculations in the module.

12 Bits (Bits 3 – 14) 0 – 4095

MSB

PX - 402 PX - 404 PX - 408

15

LSB 14 13 12 11 10 9 8

7 6

5

4

3

2

1 0

For outputs: Changing the state of the LSB will not change the output value.

12 Bits (Bits 3 – 14) 0 – 4095 = Data format resolution Within these word locations, the individual bits represent specific information about the analog signal.

Analog Terminals

PX - 312 PX - 314 PX - 318

MSB 15

LSB 14 13 12 11 10 9 8

Bit 15 is +/-

PX - 412 PX - 414 PX - 418

7 6

5

4

3

0

Bits 4 – 14 = 0 – 2047

MSB 15

2 1

LSB 14 13 12 11 10 9 8

Bit 15 is +/-

For inputs: The LSB will change but are not significant for analog calculations in the module.

7 6

5

4

3

2 1

0

For outputs: Changing the state of the LSB will not change the output value.

Bits 4 – 14 = 0 – 2047

= Data format: 11 bit plus Sign bit

Protos X Installation and I/O Manual, 1st Edition, Rev. D

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4–11

Page 100

Chapter 4: Protos X Configuration

Notes:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4–12

Protos X Installation and I/O Manual, 1st Edition, Rev. D