Configuring SMC-Flex for Communications over Remote I/O Network using 20-COMM-R Card This document is intended to be used for reference purposes only. Objective: This document is intended to provide an overview on how to set up and configure a 20-COMM Remote I/O Adapter with an SMC-Flex to enable communications over a Remote I/O network using a 1747-SN RIO scanner and a SLC 5/04. This document applies to a 1747-L542 series B, Rev 3 processor. Introduction: The SMC Flex provides advanced communication capabilities that allow it to be started and stopped from multiple sources as well as provide diagnostic information through the use of communication interfaces. 20-COMM DPI communication cards can be used with the SMC- Flex to allow communication over a wide range of network protocols. For this particular example we will be setting up an SMC-Flex to communicate over a Remote I/O Network using a 20-COMM-R DPI communications card. Metering and control over the Remote I/O network can be described through three different setup procedures, one for the SMC-Flex, one for the 20- COMM-R and one for the 1747-SN & SLC 5/04. The setup procedures are outlined below. It is assumed the user is familiar with the application and configuration of the SMC-Flex, 20- COMM-R, SLC 5/04, 1747-SN, and associated software. If the user is unfamiliar with the SMC-Flex, 20-COMM-R, SLC 5/04, or the 1747-SN it is highly recommended they refer to the following publications and knowledgebase documents for additional information: - 150-UM008D-EN-P, SMC-Flex user manual - - Knowledgebase Document #A47133849, SMC-Flex communication information for use with DPI interfaces - 20-COMM-UM004C-EN-P, Remote I/O Adapter user manual - 1747-6.6, Remote I/O Scanner user manual - 1747-UM011E-EN-P, SLC 500 Modular Hardware Style User Manual - Knowledgebase Document #G15201, Things that you should know when doing block transfer with the 1747-SN This document will proceed with the following format: - Setup Procedure for the SMC-Flex - Setup Procedure for the 20-COMM-R Remote I/O Adapter - Setup Procedure for the SLC 5/04 and 1747-SN Remote I/O Scanner Page 1 of 13 9/15/2005
Setup Procedure for the SMC-Flex: The following procedure will provide a guideline for configuring the SMC-Flex for Remote I/O network communications. Programming of the SMC-Flex can be accomplished through use of the on-board HIM, a handheld HIM (e.g. 20-HIM-A3), or DriveExplorer Software (Note: In order to use DriveExplorer you will need a 1203-SSS DPI to RS-232 adapter to connect the SMC-Flex to your computer). For this example programming will be done using DrivesExplorer Lite configuration software. 1). Setting the Logic Mask Enable Port 5 for DPI communications card connection the Logic Mask (parameter #87) must be set to 32 (0010 0000 in binary). This will enable communications on port 5 only. If you are using a 20-HIM handheld programmer you will need to set the Logic Mask to 36 (100100 in binary) or 44 (00101100 in binary). For this example the logic mask is set to 44 enabling two HIMs on ports 2 and 3 and the DPI communication card on port 5. Page 2 of 13 9/15/2005
2). Configuring Datalinks Configure Datalinks for the SMC Flex. The SMC-Flex only supports 16-bit Datalinks. This allows the SMC-Flex to be configured to read up to 8 parameters back and write up to 8 different parameters without using an explicit message. Datalink In is used for Block Transfer Write and Datalink Out is used for Block Transfer Read. Parameters 88.103 are used to configure DataLinks. The following configuration is used for this example. - DataLink In, parameters 88.95 are configured to write to parameters 44 Overload Class, 47 Overload Reset, 72 Gnd Flt Enable, 76 Gnd Flt A Enable, 79 PTC Enable, 81 Starts Per Hour, 82 Restart Attempts, and 87 Logic Mask. - DataLink Out, parameters 96.103 are configured to read back parameters 1-Volts Phase A-B, 2 - Volts Phase B-C, 3 - Volts Phase C-A, 4 - Current Phase A, 5 - Current Phase B, 6 - Current Phase C, 11 Power Factor and 12 Mtr Therm Usage. Page 3 of 13 9/15/2005
Setup Procedure for the 20-COMM-R Remote I/O Adapter: The following procedure will provide a guideline for configuring the 20-COMM-R Remote I/O Adapter to communicate over the RIO network. Programming of the remote I/O adapter can be accomplished through a handheld HIM (20-HIM-A3) or a 1203-SSS and DriveExplorer Lite software. Basic setup may also be done using DIP switches and rotary dials located on the 20- COMM-R card. 1). Setting the Logical Rack Address Set the appropriate Rack Address for the 20-COMM-R card. For this example we are set up for Logical rack 0. 2). Setting the Rack Size and Baud rate Set the DIP switches on the Remote I/O adapter to the appropriate group, rack size and baud rate for the Remote I/O network. See Publication 20COMM-UM004C-EN-P for an illustration and table of the DIP switch settings. For this example we are set up for Group 4, ¼ Rack, and 230.4 kbps on the RIO Network. The setting of our Remote I/O adapter is now complete; we are set up for ¼ Rack at Logical Rack 0, Group 4. Page 4 of 13 9/15/2005
3). Remote I/O wiring configuration Also shown below is an example of connecting a 3-pin Plug and resistor to the Remote I/O cable on the 20-COMM-R card. Note: For a network operating at 230.4 kbps an 82 ohm terminating resistor must be used. 4). Setting DPI I/O Configuration for Datalinks Set up the Remote I/O adapter to allow Datalinks. To enable each of the Datalinks use parameter 12, DPI I/O Config under the 20-COMM Remote I/O parameter set. You can access the 20-COMM Remote I/O parameter set using a 1203-SSS and DrivesExplorer Lite or an external HIM. For this example the following configuration is used. This enables control and metering of the SMC-Flex through the Logic Status and Logic Command word along with enabling all 4 Datalinks. Page 5 of 13 9/15/2005
Note: Reset the 20-COMM-R adapter module to ensure that the programmed settings take effect. See parameter 1:5.9 below. Page 6 of 13 9/15/2005
Setup Procedure for the SLC 5/04 and 1747-SN Remote I/O Scanner: The following procedure will provide a guideline for configuring the SLC 5/04 and 1747-SN Remote I/O Scanner to properly interface and communicate with the SMC-Flex over the RIO network. Programming of the SLC 5/04 can be accomplished using RSLogix 500. The baud rate of the RIO network is set using DIP switches located on the 1747-SN Scanner. 1). Setting the Baud Rate Hard set the baud rate on the 1747-SN Scanner to 230.5 kbps by setting DIP 1 to off and DIP 2 to on. 2). Setting up I/O Configuration Set up the I/O configuration for the SLC 5/04 using the I/O configuration screen. This will allow us to configure the I/O cards and Scanners located in the Rack. You can use the Read IO Config button to automatically detect the cards in the Rack. Page 7 of 13 9/15/2005
After the cards in the rack have been configured go into the Advanced I/O Configuration screen by clicking the Adv Config button and configure the following. - Scanned Input Words: 32 - Scanned Output Words: 32 - Interrupt Service Routine (ISR) #: 0 - M0 Length: 3300 - M1 Length: 3300 - G File Length: 3 Page 8 of 13 9/15/2005
3). Configuring the G File The G file is used to configure the scanners I/O image file. The scanners G file configuration is based on the devices you have on the Remote I/O Network. The G file configuration consists of setting logical device starting addresses and logical device image size of each physical device/adapter with which the scanner communicates. Configure the G file to match the configuration set for the Remote I/O adapter. For this example set the G File configuration at Logical Rack 0, Group 4, ¼ Rack Device #1 IO words 4 + 5. The 1747-SN Remote I/O Scanner is now setup to communicate with our Remote I/O adapter and the SMC-Flex. Page 9 of 13 9/15/2005
4). Ladder Logic Setting up Block Transfer Read and Block Transfer Write The following section will assume the user is familiar with PLC Ladder Logic programming using RSLogix 500 software. It will also be assumed that the user is familiar with Block Transfer Read and Block Transfer Write concepts and functionality. The Ladder Logic seen is to be used for reference purposes only. Ladder Logic Programming Example for Block Transfer Write: Page 10 of 13 9/15/2005
Example of Data File N10 (dec) used for BTW: The SMC Flex parameters being written to are indicated in red. The data being written to these parameters is located to the immediate right of the parameters in red. Refer back to the SMC- Flex Setup Procedure Configuring Datalinks. The parameters indicated in red and the values being written are as follows: Parameter 44: Overload Class 1 = Class 10 Parameter 47: Overload Reset - 1 = Reset Parameter 72: Gnd Flt Enable - 1 = Enabled Parameter 76: Gnd Flt A Enable - 1 = Enabled Parameter 79: PTC Enable - 1= Enabled Parameter 81: Starts Per Hour - 4 = 4 Starts Per hour Parameter 82: Restart Attempts - 2 = 2 Restart Attempts Per hour Parameter 87: Logic Mask - 36 = HMI on port 2 and DPI communications on port 5 Datalink In D2 = Parameter 87 Logic Mask writes a value of 36. Page 11 of 13 9/15/2005
Ladder Logic Programming Example for Block Transfer Read: Page 12 of 13 9/15/2005
Example of Data File N11 (dec) used for BTR: The SMC Flex parameters being read / monitored are indicated in red. The values being read / monitored for these parameters is located to the immediate right of the parameters in red. Refer back to the SMC-Flex Setup Procedure Configuring Datalinks. The parameters being read / monitored are as follows: Parameter 1: Volts Phase A-B Parameter 2: Volts Phase B-C Parameter 3: Volts Phase C-A Parameter 4: Current Phase A Parameter 5: Current Phase B Parameter 6: Current Phase C Parameter 11: Power Factor Parameter 12: Mtr Therm Usage Datalink Out B1 = Parameter 3 Volts Phase C-A reads a value of 232 Page 13 of 13 9/15/2005