Getting started with the FP-IND-PLCWIFI1 function pack for PLC management via Wi-Fi

Similar documents
Quick Start Guide. STM32 ODE Function Pack for Building a PLC controlled via Wi-Fi (FP-IND-PLCWIFI1) Version 1.1 (Oct 16, 2017)

Getting started with X-CUBE-LED channel LED driver software expansion based on LED1642GW for STM32Cube

Getting started with the FP-NET-6LPBLE1 function pack for 6LoWPAN IoT node connection to a smartphone via BLE interface

Wi-Fi expansion board based on SPWF01SA module for STM32 Nucleo. Description

Getting started with the FP-SNS-ALLMEMS1 Bluetooth low energy and sensors software expansion for STM32Cube

Getting started with the X-CUBE-NFC5 high performance HF reader / NFC initiator IC software expansion for STM32Cube

UM2045 User manual. Getting started with the X-CUBE-NFC3 near field communication transceiver software expansion for STM32Cube.

AN4624 Application note

NUCLEO-L433RC-P NUCLEO-L452RE-P

NUCLEO-L496ZG. STM32 Nucleo-144 board. Features. Description

Getting started with FP-SNS-6LPNODE1 software for IoT sensor node connection to 6LoWPAN networks using sub-1ghz RF

Getting started with the X-CUBE-53L1A1 Time-of-Flight long distance ranging sensor software expansion for STM32Cube

P-NUCLEO-USB001. STM32 Nucleo pack for USB Type-C and Power Delivery. Features. Description

Getting started with the FP-CLD-AWS1 software package for IoT node with Wi-Fi and sensors, connected to Amazon AWS IoT cloud

Getting started with the X-CUBE-IKA02A1 multifunctional software expansion for STM32Cube

P-NUCLEO-USB001. STM32 Nucleo pack for USB Type-C and Power Delivery Data brief. Features. Description

Getting started with osxmotiongc gyroscope calibration library for X-CUBE-MEMS1 expansion for STM32Cube

UM2350. Getting started with MotionPW real-time pedometer for wrist library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

USB Type-C and Power Delivery Nucleo pack with NUCLEO-F072RB expansion board based on STUSB1602. Description

Getting started with MotionPM real-time pedometer library in X-CUBE-MEMS1 expansion for STM32Cube

Getting started with the STM32 Nucleo pack for USB Type-C and Power Delivery with the Nucleo-F072RB board and the STUSB1602

UM2276. Getting started with MotionSD standing vs sitting desk detection library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

UM1853 User manual. STM32CubeF1 Nucleo demonstration firmware. Introduction

Getting started with MotionPM real-time pedometer library in X CUBE-MEMS1 expansion for STM32Cube

P-NUCLEO-IKA02A1. STM32 Nucleo pack: electrochemical toxic gas sensor expansion board with CO sensor. Description. Features

USB Type-C and Power Delivery Nucleo pack with NUCLEO-F072RB expansion board based on the STUSB1602

X-NUCLEO-53L1A1. Long distance ranging Time-of-Flight sensor expansion board based on VL53L1X for STM32 Nucleo. Description.

UM2194. Getting started with MotionAW activity recognition for wrist library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

32F412GDISCOVERY. Discovery kit with STM32F412ZG MCU. Features. Description

Quick Start Guide. Stepper motor driver expansion board based on L6474 for STM32 Nucleo (X-NUCLEO-IHM01A1) Version 1.2.

STSW-BLUENRG1-DK. BlueNRG-1, BlueNRG-2 DK SW package

Quick Start Guide. High power stepper motor driver expansion board based on powerstep01 for STM32 Nucleo (X-NUCLEO-IHM03A1)

32F469IDISCOVERY. Discovery kit with STM32F469NI MCU. Features. Description

UM2216 User manual. Getting started with MotionFA fitness activity library in X CUBE MEMS1 expansion for STM32Cube. Introduction

Getting started with the X-CUBE-MEMS1 motion MEMS and environmental sensor software expansion for STM32Cube

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

Bluetooth low energy profiles for the X-CUBE-BLE1 expansion for STM32Cube. Description

Getting started with X-NUCLEO-IHM06A1 low voltage stepper motor driver expansion board based on STSPIN220 for STM32 Nucleo

Getting started with MotionAR activity recognition library in X-CUBE-MEMS1 expansion for STM32Cube

Getting started with the X-CUBE-SPN3 high power stepper motor driver software expansion for STM32Cube

Getting started with MotionAR activity recognition library in X-CUBE-MEMS1 expansion for STM32Cube

P-NUCLEO-53L1A1. VL53L1X nucleo pack with X-NUCLEO-53L1A1 expansion board and STM32F401RE nucleo board. Description. Features

Getting started with the software package for L6474 stepper motor driver X-CUBE-SPN1 expansion for STM32Cube

Getting started with STEVAL-IDB007V1 and STEVAL-IDB008V1 evaluation boards

EVALKITSTKNX. Miniature transceiver STKNX evaluation and development kit. Features

X-NUCLEO-53L0A1. Ranging and gesture detection sensor expansion board based on VL53L0X for STM32 Nucleo. Description. Features

Quick Start Guide. Sound terminal expansion board based on STA350BW for STM32 NUCLEO (X-NUCLEO-CCA01M1) Version 1.1.

Getting started with osxmotionmc magnetometer calibration library for X-CUBE-MEMS1 expansion for STM32Cube

Quick Start Guide. Bluetooth Low Energy expansion board based on SPBTLE-RF module for STM32 Nucleo (X-NUCLEO-IDB05A1) Version 1.

Quick Start Guide. Bipolar stepper motor driver expansion board based on L6208 for STM32 Nucleo (X-NUCLEO-IHM05A1) Version 1.1.

Getting started with the X-CUBE-SPN2 two-axis stepper motor driver software expansion for STM32Cube

P-NUCLEO-53L0A1. VL53L0X Nucleo pack with ranging, gesture detection sensor expansion board and STM32F401RE. Description. Features

Getting started with the STSW-BCNKT01 software package for STEVAL-BCNKT01V1 based on STM32Cube

Getting started with the P-NUCLEO-IKA02A1 STM32 Nucleo pack for electrochemical toxic gas sensor expansion board with CO sensor

Quick Start Guide. STM32 ODE Function Pack for connecting 6LoWPAN IoT Nodes to smartphone through a BLE interface (FP-NET-6LPBLE1)

UM2192. Getting started with MotionMC magnetometer calibration library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

Getting started with MotionMC magnetometer calibration library in X-CUBE-MEMS1 expansion for STM32Cube

Getting started with VL53L0X ranging and gesture detection sensor software expansion for STM32Cube

Quick Start Guide. Dual-channel high side driver expansion board based on VPS2535H for STM32 Nucleo (X-NUCLEO-IPS02A1) Version 1.0 (Sept.

32L476GDISCOVERY. Discovery kit with STM32L476VG MCU. Features. Description

STM32H7x3I-EVAL. Evaluation board with STM32H7x3XI MCUs. Data brief. Features

How to upgrade the firmware on the STEVAL-USBC2DP USB Type-C to DisplayPort adapter

Quick Start Guide. Stepper motor driver expansion board based on L6474 for STM32 Nucleo (X-NUCLEO-IHM01A1) Version 1.

STSW-BNRG-Mesh. Mesh over Bluetooth low energy. Features. Description. Applications

Getting started with the software package for STEVAL-STLKT01V1 based on STM32Cube

Quick Start Guide. Wi-Fi expansion board based on SPWF01SA module for STM32 Nucleo (X-NUCLEO-IDW01M1) Version 1.0 (November 18, 2015)

Quick Start Guide. Long distance ranging ToF sensor expansion board based on VL53L1X for STM32 Nucleo (X-NUCLEO-53L1A1) Version (February 20, 2018)

Version (Apr 28, 2016)

Getting started with X-NUCLEO-53L1A1 long distance ranging ToF sensor expansion board based on VL53L1X for STM32 Nucleo

Getting started with the software package for digital MEMS microphones in X-CUBE-MEMSMIC1 expansion for STM32Cube

Quick Start Guide. Bluetooth Low Energy expansion board based on BlueNRG for STM32 Nucleo (X-NUCLEO-IDB04A1) Version 1.

32F746GDISCOVERY. Discovery kit with STM32F746NG MCU. Features. Description

Getting started with osxacousticsl real-time sound source localization software expansion for STM32Cube

Quick Start Guide. Dynamic NFC/RFID tag IC expansion board based on ST25DV04K for STM32 Nucleo (X-NUCLEO-NFC04A1) Version 1.

STEVAL-STLKT01V1. SensorTile development kit. Description. Features

Motor control power board based on the SLLIMM-nano 2 nd series

Getting started with the digital MEMS microphone expansion board based on MP34DT01-M for STM32 Nucleo

EVLKSTCOMET10-1. STCOMET smart meter system-on-chip development kit. Features

Description. July 2016 DocID Rev 2 1/6

X-NUCLEO-53L0A1 ranging and gesture detection sensor expansion board based on VL53L0X for STM32 Nucleo

STM32L4R9I-EVAL. Evaluation board with STM32L4R9AI MCU. Features

STEVAL-STLKT01V1. SensorTile development kit. Description. Features

Getting started with the X-NUCLEO-IHM14A1 stepper motor driver expansion board based on STSPIN820 for STM32 Nucleo

UM2495. High performance HF reader / NFC initiator IC software expansion for NUCLEO-8S208RB. User manual. Introduction

Description. January 2019 DB2381 Rev 3 1/5

Quick Start Guide. STM32Cube function pack for IoT sensor node with telemetry and device control applications for Amazon AWS Cloud (FP-CLD-AWS1)

X-NUCLEO-IDW04A1. Wi-Fi expansion board based on SPWF04SA module for STM32 Nucleo. Features. Description

P-NUCLEO-6180X2. Proximity, gesture, ambient light sensor expansion board based on VL6180X for STM32L053R8. Description. Features

UM2051 User manual. Getting started with the STM32 Nucleo pack for USB Type-C and Power Delivery. Introduction

Getting started with osxmotionar activity recognition library for X-CUBE-MEMS1 expansion for STM32Cube

UM2084 User manual. Getting started with the ultra-low-power STM32 and LoRa Nucleo pack. Introduction

Quick Start Guide. GNSS expansion board based on Teseo-LIV3F module for STM32 Nucleo (X-NUCLEO-GNSS1A1) Version 2.1 (Nov 9, 2018)

Running a simple 6LowPAN network consisting of one receiver node and one or more sensor nodes in a Sub-1GHz RF band

Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo. Description

STEVAL-IPMnM2N. Motor control power board based on the SLLIMM-nano 2 nd series. Description. Features. RoHS compliant

ST25DV-DISCOVERY. Discovery kit for the ST25DV04K dynamic NFC/RFID tag. Features

STSW-STWBCFWDT. STWBC firmware downloader tool. Description. Features

STM32SnippetsL0. STM32L0xx Snippets firmware package. Features. Description

STSW-BNRGUI. BlueNRG GUI SW package. Data brief. Features. Description

EVALKIT-VL6180X. VL6180X plug-in and STM32 F401RE Nucleo board explorer kit. Description. Features

Transcription:

User manual Getting started with the FP-IND-PLCWIFI1 function pack for PLC management via Wi-Fi Introduction FP-IND-PLCWIFI1 is an STM32 ODE function pack which lets you build a mini PLC and interact with it using the ST-PLC App for mobile devices or desktops. Thanks to the provided APIs and the app available for different operating systems, the package allows managing the system and implementing several ladder logic circuits with different hardware setup. The software runs on the STM32 microcontroller and includes drivers for the SPWF01SA Wi-Fi module, the VNI8200XP and ISO8200BQ digital output ICs, and the CTL01-38SQ7 digital input IC. It also includes middleware layers for Wi-Fi communication and ladder logic programming. September 2017 DocID030955 Rev 1 1/18 www.st.com

Contents UM2281 Contents 1 Acronyms and abbreviations... 5 2 FP-IND-PLCWIFI1 software description... 6 2.1 Overview... 6 2.2 Architecture... 6 2.3 Folder structure... 7 2.4 APIs... 7 3 System overview... 8 4 Firmware description... 9 4.1 Firmware examples... 9 5 System setup guide... 11 5.1 Hardware description... 11 5.1.1 STM32 Nucleo platform... 11 5.1.2 X-NUCLEO-IDW01M1 expansion board... 12 5.1.3 X-NUCLEO-OUT01A1 expansion board... 13 5.1.4 X-NUCLEO-PLC01A1 expansion board... 14 5.2 Software description... 14 5.3 STM32 Nucleo and expansion board setup... 15 6 References... 16 7 Revision history... 17 2/18 DocID030955 Rev 1

List of tables List of tables Table 1: Acronyms and abbreviations... 5 Table 2: Document revision history... 17 DocID030955 Rev 1 3/18

List of figures List of figures UM2281 Figure 1: FP-IND-PLCWIFI1 firmware architecture... 7 Figure 2: FP-IND-PLCWIFI1 package folder structure... 7 Figure 3: FP-IND-PLCWIFI1 system overview... 8 Figure 4: FP-IND-PLCWIFI1 firmware configuration example... 9 Figure 5: FP-IND-PLCWIFI1 firmware connection settings... 10 Figure 6: STM32 Nucleo board... 11 Figure 7: X-NUCLEO-IDW01M1 Wi-Fi expansion board... 12 Figure 8: X-NUCLEO-OUT01A1 expansion board... 13 Figure 9: X-NUCLEO-PLC01A1 expansion board... 14 Figure 10: STM32 Nucleo development board plus X-NUCLEO-PLC01A1, X-NUCLEO-OUT01A1 and X-NUCLEO-IDW01M1 expansion boards (configuration with 8 inputs and 16 outputs)... 15 4/18 DocID030955 Rev 1

Acronyms and abbreviations 1 Acronyms and abbreviations Table 1: Acronyms and abbreviations Acronym Description IPS Intelligent power switch GPIO General purpose input output DocID030955 Rev 1 5/18

FP-IND-PLCWIFI1 software description UM2281 2 FP-IND-PLCWIFI1 software description 2.1 Overview The key features of the FP-IND-PLCWIFI1 package are: 2.2 Architecture Software package to build an industrial PLC with Wi-Fi connectivity based on industrial digital input/output ICs and Wi-Fi IC Middleware libraries for Wi-Fi management and ladder logic programming User friendly app for Android and ios mobile devices. Available Windows desktop version Sample implementation for X-NUCLEO-PLC01A1, X-NUCLEO-OUT01A1 (connected to a NUCLEO-F401RE board) and X-NUCLEO-IDW01M1 Easy portability across different MCU families, thanks to STM32Cube Free, user-friendly license terms The firmware has been developed to fully comply with the STM32Cube architecture and to enable application development using industrial automation drivers. It is based on the STM32CubeHAL, the hardware abstraction layer for the STM32 microcontroller, and extends STM32Cube by providing a Board Support Package (BSP). The firmware layers used by the application to access and use the drivers are: STM32Cube HAL driver layer: provides a simple, generic, multi-instance set of APIs (application programming interfaces) to interact with the upper layers (application, libraries and stacks). It is composed of generic and extension APIs and is directly built around a generic architecture and allows the layers built on top of it, such as the middleware layer, to implement their functions without dependending on the specific hardware configuration for a given microcontroller unit (MCU). This structure improves library code reusability and guarantees an easy portability across other devices. Board Support Package (BSP) layer: provides support for the peripherals (excluding the MCU) on the STM32 Nucleo board through the board support package (BSP). The BSP is a limited set of APIs which provides a programming interface for certain boardspecific peripherals like the LED, the user button, etc. Middleware Layer: Wi-Fi module and ladder libraries. The figure below outlines the firmware architecture. 6/18 DocID030955 Rev 1

Figure 1: FP-IND-PLCWIFI1 firmware architecture FP-IND-PLCWIFI1 software description 2.3 Folder structure Figure 2: FP-IND-PLCWIFI1 package folder structure The following folders are included in the software package: 2.4 APIs Documentation: contains a compiled HTML file generated from the source code, detailing the software components and APIs. Drivers: contains the HAL drivers, the board specific drivers for each supported board or hardware platform, including the on-board components and the CMSIS vendorindependent hardware abstraction layer for the ARM Cortex-M processor series. Middlewares: contains all the routines useful for Wi-Fi connection handling and a library to implement the Ladder Logic decoding procedure with the related circuit implementation. Projects: contains the application level to handle the module when plugged to NUCLEO-F401RE. Utilities: contains the boot loader binary ready to be flashed for the STM32F401RE and STM32L476RG Nucleo boards. Detailed technical information regarding the APIs available to the user can be found in a compiled HTML file located inside the Documentation folder of the software package, where all the functions and parameters are fully described. DocID030955 Rev 1 7/18

System overview UM2281 3 System overview To manage the system, the developer simply must: 1. Connect the boards to each other on the basis of the required configuration (see the figure below) 2. Connect different loads to the output (i.e., a fan, a light, a ring bell) 3. Use a mobile device to start a Wi-Fi communication Figure 3: FP-IND-PLCWIFI1 system overview 8/18 DocID030955 Rev 1

Firmware description 4 Firmware description The firmware on the STM32 Nucleo is based on the interaction of: the PLC and digital output codes, to directly drive the output driver stage; the Wi-Fi code, to handle the Wi-Fi IC to create a server socket connection; a decoding library, to analyze the programming PLC sequence sent to the system via Wi-Fi. The firmware has been compiled with three different development tools (IAR Embedded Workbench, Keil, System Workbench for STM32). 4.1 Firmware examples The developer can run different examples through the GUI interface for Android and ios mobile devices and desktop version. Once the expansion boards are plugged on top of a NUCLEO-F401RE development board, it is necessary to compile the code and flash it, using a different configuration for each expansion board. 1. If the configuration is X-NUCLEO-IDW01M1 + X-NUCLEO-PLC01A1, select PLC01A1 2. If the configuration is X-NUCLEO-IDW01M1 + X-NUCLEO-PLC01A1+X-NUCLEO- OUT01A1, select PLC01A1_OUT01A1 3. If the configuration is X-NUCLEO-IDW01M1 + X-NUCLEO-OUT01A1, select OUT01A1 Figure 4: FP-IND-PLCWIFI1 firmware configuration example DocID030955 Rev 1 9/18

Firmware description UM2281 4. After the selection and code download, run the application. 5. Once the firmware is running, connect your tablet, mobile or PC to the Ladder Demo Board network 6. Run the ST-PLC App available on Google Play and Apple Store. To enable the communication between the app and the PLC system, it is necessary to insert the following connection settings: a. the Wi-Fi node IP address, available in your device Wi-Fi settings, to be copied and pasted by replacing the last digit with the number 1 to correctly address the Wi-Fi node; b. port number 32000. Figure 5: FP-IND-PLCWIFI1 firmware connection settings 7. Once the Wi-Fi parameters are set, click the Test Connection button to verify the network 8. If the connection is successfully established, start drawing the circuit and program it on the PLC. Other prototype customized firmware configurations can be built very easily starting from the package functions and exploiting the STM32Cube ecosystem. 10/18 DocID030955 Rev 1

System setup guide 5 System setup guide 5.1 Hardware description This section describes the hardware components needed for developing an industrial application based on intelligent power switch. 5.1.1 STM32 Nucleo platform STM32 Nucleo development boards provide an affordable and flexible way for users to test solutions and build prototypes with any STM32 microcontroller line. The Arduino connectivity support and ST morpho connectors make it easy to expand the functionality of the STM32 Nucleo open development platform with a wide range of specialized expansion boards to choose from. The STM32 Nucleo board does not require separate probes as it integrates the ST- LINK/V2-1 debugger/programmer. The STM32 Nucleo board comes with the comprehensive STM32 software HAL library together with various packaged software examples. Figure 6: STM32 Nucleo board Information regarding the STM32 Nucleo board is available at www.st.com/stm32nucleo DocID030955 Rev 1 11/18

System setup guide 5.1.2 X-NUCLEO-IDW01M1 expansion board UM2281 The X-NUCLEO-IDW01M1 is a Wi-Fi evaluation board based on the SPWF01SA module, which expands the STM32 Nucleo boards. The CE, IC and FCC certified SPWF01SA module has an embedded STM32 MCU, a low-power Wi-Fi b/g/n SoC with integrated power amplifier and power management and an SMD antenna. The SPWF01SA module is also equipped with 1 MByte of external FLASH for firmware update over-the-air (FOTA). The firmware features a complete software IP stack to open up to 8 TCP/UDP sockets, as well as dynamic web pages with SSI to interact with the module and a REST API (get & post) for conveniently transferring files to/from servers in the cloud. The module can simultaneously behave as a socket server and socket client. The firmware supports secure sockets with TLS/SSL encryption, ensuring secure end-to-end communications with the cloud, with or without authentication. The module operates as a client STA, IBSS, or miniap (with up to 5 client STAs). The X-NUCLEO-IDW01M1 interfaces with the MCU on the STM32 Nucleo board via the UART serial port; the user can easily access the stack functions using the AT command. X-NUCLEO-IDW01M1 is compatible with both the ST morpho and Arduino UNO R3 connector layout. Figure 7: X-NUCLEO-IDW01M1 Wi-Fi expansion board Information regarding the expansion board is available on www.st.com at http://www.st.com/x-nucleo. 12/18 DocID030955 Rev 1

5.1.3 X-NUCLEO-OUT01A1 expansion board System setup guide The X-NUCLEO-OUT01A1 is an Industrial Digital output expansion board based on ISO8200BQ for STM32 Nucleo boards. It provides an affordable and easy-to-use solution involving galvanic insulation embedded in industrial power switch driver applications. The Arduino UNO R3 connector compatibility allows to connect the following STM32 Nucleo development boards: NUCLEO-F103RB, NUCLEO-F302R8 and NUCLEO- F401RE. The X-NUCLEO-OUT01A1 can be connected to the X-NUCLEO-PLC01A1 to form a powerful industrial PLC with 8 inputs and 16 outputs. Wireless communication capabilities can be added with the X-NUCLEO-IDW01M1, which establishes communication on a smart device to manage the PLC remotely. A dedicated ST-PLC app is available for Android and ios systems for this purpose. This evaluation board is designed to meet industrial standard requirements. Figure 8: X-NUCLEO-OUT01A1 expansion board DocID030955 Rev 1 13/18

System setup guide 5.1.4 X-NUCLEO-PLC01A1 expansion board UM2281 The X-NUCLEO-PLC01A1 is an industrial input/output evaluation board which expands the STM32 Nucleo board functionality with a PLC (programmable logic controller) function subset. It is compatible with the Arduino UNO R3 connector layout and is designed around VNI8200XP (solid state relay) and CLT01-38SQ7 (octal digital termination array) devices. The X-NUCLEO-PLC01A1 interfaces with the STM32 MCU via the SPI peripheral. Moreover, it is equipped with a set of diagnostics and activity LEDs to facilitate application debugging. It can use other STM32 plug-on expansion boards to further extend the STM32 Nucleo board functionality. 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 use all of the features of the CLT01-38SQ7 and the VNI8200XP devices. Figure 9: X-NUCLEO-PLC01A1 expansion board Information about the X-NUCLEO-PLC01A1 expansion board is available on http://www.st.com/x-nucleo 5.2 Software description The following software components are required to establish a suitable development environment for creating applications for the STM32 Nucleo equipped with the digital output expansion board: FP-IND-PLCWIFI1: an STM32 ODE function pack which lets you build a mini PLC. The FP-IND-PLCWIFI1 firmware and related documentation is available on www.st.com. Development tool-chain and Compiler. The STM32Cube expansion software supports the three following environments: IAR Embedded Workbench for ARM (EWARM) toolchain + ST-LINK Keil uvision5 Development Tool (MDK-ARM) toolchain + ST-LINK 14/18 DocID030955 Rev 1

SW4STM32 Development Tool + ST-LINK System setup guide 5.3 STM32 Nucleo and expansion board setup The function pack is made by the NUCLEO-F401RE development board (based on the STM32F401RE microcontroller), the X-NUCLEO-IDW01M1 expansion board (based on the SPWF01SA Wi-Fi module), the X-NUCLEO-PLC01A1 expansion board (based on the CLT01-38SQ7 digital input IC and the VNI8200XP digital output IC) and the X-NUCLEO- OUT01A1 expansion board (based on the ISO8200BQ digital output IC). Before building a stack connecting the boards, the user has to to take into account the schematic to verify whether all the connections and drop jumpers available by default on the NUCLEO boards and the expansion boards used are in line with the purpose; after this check, by keeping the two main boards, the NUCLEO-F401RE development board and the X-NUCLEO-IDW01M1 expansion board, it is possible to build different PLC configurations, based on the number of inputs and outputs the user wants to manage with the PLC. The following configurations are possible: 8 inputs and 8 outputs, by adding the X-NUCLEO-PLC01A1 expansion board only; 8 inputs and 16 outputs, by adding the X-NUCLEO-PLC01A1 and X NUCLEO OUT01A1 expansion boards; 8 outputs, by adding the X-NUCLEO-OUT01A1 expansion board only. Once the system is built: provide 24 V to the screw connector manage the inputs set the switch to VCC or ground, depending on the circuit to be implemented connect the outputs to a load to be driven program the required circuit via the ST-PLC App Figure 10: STM32 Nucleo development board plus X-NUCLEO-PLC01A1, X-NUCLEO-OUT01A1 and X-NUCLEO-IDW01M1 expansion boards (configuration with 8 inputs and 16 outputs) DocID030955 Rev 1 15/18

References UM2281 6 References All of the following resources are freely available on www.st.com. 1. ISO8200BQ datasheet (DS10781) 2. VNI8200XP datasheet (DS5996) 3. CLT01-38SQ7 datasheet (DS11183) 4. SPWF01SA, SPWF01SC datasheet (DS10078) 5. UM1918: Getting started with the X-NUCLEO-PLC01A1 industrial input/output expansion board for STM32 Nucleo 6. UM2209: Getting Started with X-NUCLEO-OUT01A1 industrial digital output expansion board for STM32 Nucleo 7. UM1975: Getting started with X-NUCLEO-IDW01M1 Wi-Fi expansion board based on SPWF01SA module for STM32 Nucleo 8. UM2284: Getting started with the ST-PLC App for ladder logic programming 16/18 DocID030955 Rev 1

Revision history 7 Revision history Table 2: Document revision history Date Version Changes 15-Sep-2017 1 Initial release. DocID030955 Rev 1 17/18

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. 2017 STMicroelectronics All rights reserved 18/18 DocID030955 Rev 1