UM1918 User manual Getting started with the X-NUCLEO-PLC01A1 industrial input/output expansion board for STM32 Nucleo Introduction The X-NUCLEO-PLC01A1 is an expansion board designed to build basic PLC (programmable logic controller) applications. Plugged onto any STM32 Nucleo board through the Arduino UNO R3 connectors, it results in a compact industrial PLC capable of managing eight analog inputs and eight outputs through the SPI peripheral. The 24 V power supply makes it possible to manage industrial range inputs (i.e. sensors, valves) and outputs (i.e. lamps, alarms). The board is not intended to utilize all of the features of the CLT01-38SQ7 and the VNI8200XP devices. The X-NUCLEO-PLC01A1 embeds diagnostics and fault LEDs, as well as activity status LEDs for all channels in input and output. Compatibility with the STM32 Nucleo family of boards as well with other expansion boards is assured by the use of Arduino UNO R3 connectors, while the board schematics, bill of materials, Gerber files, drivers and firmware are available for download on www.st.com. Figure 1: Industrial input/output expansion board based on the CLT01-38SQ7 and VNI8200XP July 2015 DocID028079 Rev 1 1/16 www.st.com Contents UM1918 Contents 1 Description....................................................................................... 3 2 Features ........................................................................................... 4 3 Hardware and layout description ................................................... 5 4 5 X-NUCLEO-PLC01A1 assembly drawing ....................................... 6 X-NUCLEO-PLC01A1 board powering and startup ....................... 7 6 Schematic diagrams........................................................................ 8 7 Bill of material................................................................................ 12 8 Revision history ............................................................................ 15 2/16 DocID028079 Rev 1 UM1918 1 Description Description To perform industrial IO (input/output) management, the X-NUCLEO-PLC01A1 is equipped with CLT01-38SQ7 and VNI8200XP ICs. Both devices on the board work through the SPI peripheral, and as such any STM32 Nucleo board to which it is connected can implement an industrial PLC application. Both devices support 8- and 16-bit SPI interfaces for device command and control diagnostics. The board is equipped with a digital isolator in order to assure SPI safe operation between the X-NUCLEO-PLC01A1 and the STM32 Nucleo board. The VNI8200XP includes advanced protection and fault detection features. CLT0138SQ7 provides protection and isolation in industrial operating conditions as well as an “energy-less” status indication for each of the eight input channels, with minimal power consumption. It is suited for situations that require test standards IEC61000-4-2 8 kV and 15 kV to be met. Both the CLT01-38SQ7 and the VNI8200XP are designed to meet the most common industrial requirements (i.e. IEC61000-4-2, IEC61000-4-4, IEC61000-4-5 or IEC61131-2). For more thorough evaluation of the individual products, it is recommended to refer to their single respective evaluation boards, available on st.com. DocID028079 Rev 1 3/16 Features 2 UM1918 Features The X-NUCLEO-PLC01A1 is a ready-to-use PCB (printed circuit board) including: 8x input with CLT01-38SQ7, high-speed protected digital termination array 8x output with VNI8200XP, high-side solid state relay Status LEDs: Fault, Thermal, Power IO (input/output) activity LEDs 24 V power supply Compatible with Arduino UNO R3 connector A reverse polarity diode is part of the input stage. As a result, when a 24 V supply is applied to the input connector, the supply voltage on the CLT01-38SQ7 device is given by: Vsupply – VFWD, where VFWD is the voltage applied on the reverse diode. Capacitors C15 and C19 are not mounted. They are only needed to perform common mode surge tests. 4/16 DocID028079 Rev 1 UM1918 3 Hardware and layout description Hardware and layout description The X-NUCLEO-PLC01A1 board adds to any STM32 Nucleo board the capabilities of a compact industrial PLC with 8 inputs and 8 outputs. This is possible through SPI management as depicted in the functional block diagram below. Figure 2: Functional block diagram DocID028079 Rev 1 5/16 X-NUCLEO-PLC01A1 assembly drawing 4 UM1918 X-NUCLEO-PLC01A1 assembly drawing The main components of the board are specified in the drawing below. The X-NUCLEOPLC01A1 is shaped in such a way as to allow easy access to the STM32-Nucleo board when both boards are connected. Input and output channels are accessible through the screw connectors placed on the low side of the X-NUCLEO-PLC01A1 (connectors J8 and J10, respectively), and each channel is associated to one LED in order to indicate its activity and status. Another three LEDs are provided on the board to provide status and diagnostic information for the VNI8200XP device (temperature warning, fault and Power Good detection). The SPI selector allows the CLT01-38SQ7 device to be managed in 8-bit or 16-bit bus mode. Figure 3: Top assembly view 6/16 DocID028079 Rev 1 UM1918 5 X-NUCLEO-PLC01A1 board powering and startup X-NUCLEO-PLC01A1 board powering and startup The following steps must be followed to run the X-NUCLEO-PLC01A1: 1. 2. 3. 4. 5. Plug the X-NUCLEO-PLC01A1 onto a STM32 Nucleo board Connect the STM32 Nucleo board to a PC via a standard Type A / mini B USB cable Download the firmware on the STM32 microcontroller hosted on the STM32 Nucleo board Supply 24 V to the X-NUCLEO-PLC01A1 board through the J8 connector The X-CUBE-PLC1 demonstration firmware is ready to run: connect any of the 8 inputs on the J8 connector to see the corresponding output on the J10 connector capable of driving a load (i.e. short-circuit input “x” with the 24 V and connect the corresponding output “x” to a load). DocID028079 Rev 1 7/16 Schematic diagrams 6 UM1918 Schematic diagrams Figure 4: X-NUCLEO-PLC01A1 schematic, part 1 Morpho Connectors CN7 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 CN10 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 C1 +3V3 NRST +3V3 5V C2 1 3 D15 5 D14 AVDD 7 9 D13 11 D12 13 D11 15 D10 17 19 D9 21 D8 23 D7 25 D6 27 D5 29 D4 31 D3 33 D2 35 D1 37 D0 100nF 100nF VIN A0 A1 A2 A3 A4 A5 Morpho_Connector 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 Morpho Connector CN5 Nucleo Connectors D15 D14 AVDD CN6 1 2 3 4 5 6 7 8 D13 D12 J5 R1 0E NRST +3V3 5V 1 2 VCC_uc R2 0E D11 D10 D9 R3 0E SPI_SCK R5 0E SPI_MISO SPI_MOSI SPI_CS2 VIN D8 R4 0E 10 9 8 7 6 5 4 3 2 1 HEADER 10 SPI_CS1 HEADER 8 CN8 CN9 1 2 3 4 5 6 A0 A1 A2 A3 A4 A5 R6 0E D7 D6 R13 0E D5 D4 D3 DNM HEADER 6 SPI_SCK HEADER 8 Note :-- Al l Resisto rs in this section should be SMD080 5 SPI activity LEDs SPI Activity LED R15 330R SPI_SCK D2 DNM DNM 8/16 DocID028079 Rev 1 D2 D1 D0 OUT_EN 8 7 6 5 4 3 2 1 UM1918 Schematic diagrams Figure 5: X-NUCLEO-PLC01A1 schematic, part 2 47K 15k R25 R26 CLT01-38SQ7 R27 0E CLT_CS1 CLT_SCK R28 CLT_MISO VDD_CLT LED1 D13 LED3 D15 LED5 D17 LED7 220R CLT_CS1 LED2 D12 LED4 D14 C3 LED6 D16 33pF LED8 D18 CS1 3 J11 CLT01-38SQ7 LED6 LED7 LED8 NC NC COMp NC NC NC NC NC NC 36 35 34 33 32 31 30 29 28 27 26 25 R39 220R CLT_SCK SCK C13 33pF CLT_IN5 CLT_IN6 CLT_IN7 CLT_IN8 R41 220R CLT_MISO MISO Vc C14 33pF Vcs Input J8 1 2 3 4 5 6 7 8 9 10 Vinput 24V R29 2K2 R30 2K2 R33 2K2 R35 2K2 R37 CLT_IN1 C4 CLT_IN2 CLT_IN3 C6 CLT_IN4 CLT_IN5 C8 CLT_IN6 CLT_IN7 C11 CLT_IN8 2K2 R32 R34 R36 2K2 2K2 2K2 22nF C5 22nF C7 22nF C10 22nF C12 22nF 22nF 22nF 22nF Input_Connector PGND 2K2 Vinput TP3 1 TP2 +24V 1 1 U1 CLT_IN1 CLT_IN2 CLT_IN3 CLT_IN4 10K VDD DVR NC SPM NC NC NC COMp NC NC NC NC Vc Vcs COMp IN1 IN2 IN3 IN4 COMp IN5 IN6 IN7 IN8 R40 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 VDD_CLT 0E 2 R38 SUB CS SCK MOSI NC MISO or /MISO COMs REF LED1 LED2 LED3 LED4 LED5 49 48 47 46 45 44 43 42 41 40 39 38 37 C9 100nF/10V D11 R42 Vc 1M5 R43 Vcs C15 4n7/3kV-N.M. D19 SM15T33CA C19 4n7/3kV-N.M. C16 1uF/50V + C17 100uF/50V C18 33nF/50V R44 120K PGND PGND PGND D20 STPS1H100A PGND DocID028079 Rev 1 9/16 DocID028079 Rev 1 C45 33p F /10V M ISO CS 2 SC K M OSI CS 1 R57 R56 R52 R50 220 R 220 R 220 R 220 R VNI_W D VNI_M IS O 33p F/10V C44 V NI_ C S 2 33p F/10V C40 VNI_S CK 33p F/10V C25 VNI_M OS I 33p F/ 10V C20 VNI_OU T _E N 220 R 33p F/10V 100p F R 51 C47 10K +5V 0 10nF/10V 10nF/10V +5V0 C39 100p F C48 C38 100 nF / 10V C27 47K R49 10K R48 R47 10K C 26 +5V 0 R 46 +5V0 ROW 3 ROW 2 ROW 1 ROW 0 CO L 1 COL0 VNI_M IS O VNI_CS2 VNI_S CK VNI_M OS I V N I _W D 100p F C 46 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 TP4 +24V C21 NC NC O UT 1 O UT 2 O UT 3 O UT 4 O UT 5 O UT 6 O UT 7 O UT 8 NC BOO T PHAS E GND FB T W ARN FAULT PG VNI8200XP SE L2 SE L1 /IN1 W D_EN/IN2 O UT _EN/IN3 W D/IN4 SDI/IN5 CLK/IN6 SS /IN7 SDO /IN8 VREG CO L0 CO L1 DC VDD VREF RO W 0 RO W 1 RO W 2 RO W 3 U2 1 220 R 37 10/16 TAB /V CC R45 PG /FA ULT /T W ARN FB 10k LE D LE D D24 680 R D23 R60 FB 680 R LE D 1 R 55 10nF/10V R 59 +5V 0 T P5 C33 680 R +5V 0 BA T 48 D21 R 54 100 uH L1 22nF/50V R 58 C 28 D 22 +5V 0 PG /FA ULT /T W ARN 100p F/50V C43 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 1uF/50V C41 470 nF/10V 3K3 2K R53 C29 C30 C 34 C 31 C35 C32 C 36 J10 Output_Connector C37 P GND 22nF/50V 22nF/50V 22nF/50V 22nF/50V 22nF/ 50V 22nF/50V 22nF/50V 22nF/50V 4.7uF/10V C42 +5V0 1 2 3 4 5 6 7 8 Schematic diagrams Figure 6: X-NUCLEO-PLC01A1 schematic, part 3 UM1918 VNI8200XP UM1918 Schematic diagrams Figure 7: X-NUCLEO-PLC01A1 schematic, part 4 OUTPUT LEDs R61 COL0 COL1 680R R62 680R R63 680R R64 680R R65 ROW0 D25 LED1 D26 LED2 D27 LED3 D28 LED4 D29 LED5 D30 LED6 D31 LED7 D32 LED8 ROW1 680R R66 680R R67 680R R68 ROW2 ROW3 680R Digital isolator VCC_uc +5V0 C22 C24 C23 10uF/6.3V 100nF/10V 100nF/10V VCC_uc +5V0 U3 SPI_MOSI SPI_SCK SPI_CS1 SPI_CS2 OUT_EN SPI_MISO 1 2 3 4 5 6 7 8 VDD1 A1 A2 A3 A4 A5 A6 GND1 VDD2 B1 B2 B3 B4 B5 B6 GND2 16 15 14 13 12 11 10 9 MOSI SCK CS1 CS2 VNI_OUT_EN MISO Si8661 DocID028079 Rev 1 11/16 Bill of material 7 UM1918 Bill of material Table 1: Bill of material (BOM) Qt y. Designator Value Part number 4 C9, C23, C24, C27 100 nF C1005X7R1H104K050 BB SMD 0402 9 C3, C13, C14, C20, C25, C26, C40, C44, C45 33 pF C1005C0G1H330J050 BA SMD 0402 17 C4,C5,C6,C7,C8,C10,C1 1,C12, C29, C30, C31, C32, C34, C35, C36, C37,C28 22 nF C1608X7R1H223K080 AA SMD 0603 2 C15, C19 4.7 nF VY1472M63Y5UQ63V 0 2 C16, C21 1 µF C1608X5R1H105K080 AB SMD 0603 1 C17 100 µF EEE-FTH101XAP SMD 1 C18 33 nF C1608X7R1H333K080 AA SMD 0603 1 C22 10 µF T491A106M006AT SMD 1206 2 C38, C39 10 nF C1005X7R1H103K050 BB SMD 0402 1 C33 10 nF C1608X7R1H103K080 AA SMD 0603 1 C41 470 nF C1608X5R1A474K080 AA SMD 0603 1 C42 4.7 µF CGB3B1X5R1A475K0 55AC SMD 0603 1 C43 100 pF C1608C0G1H101J080 AA SMD 0603 3 C46, C47, C48 100 pF C1005C0G1H101F050 BA SMD040 2 2 C1, C2 100 nF C2012X7R1H104K085 AA SMD 0805 2 CN7, CN10 Morpho connectors SSQ-119-04-L-D Through hole 2.54 mm 1 12/16 CN5 Header_10 SSQ-110-03-L-S DocID028079 Rev 1 Comme nt Not mounte d Mount female type on top, male type on bottom Package ref. Through Hole 10 mm lead spacing Through hole 2.54 mm UM1918 Bill of material Qt y. 2 Designator CN6, CN9 Value Header_8 Part number Comme nt Package ref. SSQ-108-03-L-S Mount female type on top, male type on bottom Through hole 2.54 mm Through hole 2.54 mm 1 CN8 Header_6 SSQ-106-03-L-S Mount female type on top, male type on bottom 3 D24, D23, D22 LED LS L29K-G1J2-1-Z Red color SMD 0603 17 D2, D11, D12, D13, D14, D15, D16, D17, D18, D25, D26, D27, D28, D29, D30, D31, D32 LED LG L29K-G2J1-24-Z Green color SMD 0603 1 D21 BAT48 BAT48ZFILM SOD-123 1 D19 SM15T33CA SM15T33CA SMC_B 1 D20 STPS1H100A STPS1H100A SMA Female type jumper to be mounte d Through hole 2.54 mm 1 J5 Jumper_2 1 J8 INPUT_connect or 1725711 Through hole 2.54 mm 1 J10 OUTPUT_conne ctor 1725737 Through hole 2.54 mm Female type jumper to be mounte d Through hole 2.54 mm pitch 1 J11 Jumper_3 1 L1 100 µH SRN4018-101M SMD 1 R15 330 Ω ERJ-2GEJ331X SMD 0204 2 R28, R38 0Ω ERJ-2GE0R00X SMD 0204 11 R58, R59, R60, R61, R62, R63, R64, R65, R66, R67, R68 680 Ω ERJ-2GEJ681X SMD 0204 DocID028079 Rev 1 13/16 Bill of material 14/16 UM1918 Qt y. Designator Value Part number Comme nt 2 R25, R49 47 kΩ ERJ-2GEJ473X SMD 0204 1 R26 15 kΩ ERJ-2GEJ153X SMD 0204 9 R27 ,R39, R41, R45, R50, R51, R52, R56, R57 220 Ω ERJ-2GEJ221X SMD 0204 9 R29, R30, R32, R33, R34, R35, R36, R37, R42 2.2 kΩ MMA02040C2201FB3 00 SMD 0204 4 R40, R46, R47, R48 10 kΩ ERJ-2GEJ103X SMD 0402 1 R43 1.5 MΩ MMA02040C1504FB3 00 SMD 0204 1 R44 120 kΩ MMA02040C1203FB3 00 SMD 0204 1 R53 2 kΩ ERJ-3EKF2001V SMD 0603 1 R54 10 kΩ ERJ-3GEYJ103V SMD 0603 1 R55 3.3 kΩ ERJ-3EKF3301V SMD 0603 1 U3 Si Digital Isolator SI8661BC-B-IS1 16 pin narrow body SOIC 1 U1 CLT01-38SQ7 CLT01-38SQ7 QFN 1 U2 VNI8200XP VNI8200XP PowerSS O-36 7 R1, R2, R3, R4, R5, R6, R13 0Ω 2 Jumper Closed 969102-0000-DA DocID028079 Rev 1 Package ref. UM1918 8 Revision history Revision history Table 2: Document revision history Date Version 17-Jul-2015 1 DocID028079 Rev 1 Changes Initial release. 15/16 UM1918 IMPORTANT NOTICE – PLEASE READ CAREFULLY STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’ products. No license, express or implied, to any intellectual property right is granted by ST herein. Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product. ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces information previously supplied in any prior versions of this document. © 2015 STMicroelectronics – All rights reserved 16/16 DocID028079 Rev 1