Page 3
Rev. 2: 20-03-2024 ESP32 PLC 14 User Guide Revised March 2024 This user guide is for version ESP32 PLC 14 with Reference name Ref. 013000000001.
Page 4
Rev. 2: 20-03-2024 Preface This User Guide has been implemented by Boot & Work, S.L. working under the name Industrial Shields. Purpose of the manual The information contained in this manual can be used as a reference to operate and get a better understanding of the technical data of the signal modules, power supply modules and interface modules.
Page 5
Rev. 2: 20-03-2024 ● Before using this product, it is the responsibility of the user to read the product’s User Guide and all accompanying documentation. ● Maintenance must be performed by qualified personnel familiarised with the construction, operation, and hazards involved with the control. ●...
Page 6
PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM. Industrial Shields shall not be responsible for conformity with any codes, regulations or standards that apply to the combination of products in the customer’s application or use...
Page 7
Intended use or of Industrial Shields products Consider the following: Industrial Shields products should only be used for the cases of application foreseen in the catalogue and the associated technical documentation. If third-party products and components are used, they must have been recommended or approved by Industrial Shields.
Page 8
Residual Risks The control and drive components of an Industrial Shields PLC are approved for industrial and commercial use in industrial line supplies. Their use in public line supplies requires a different configuration and/or additional measures. These...
Page 9
Warranty and Limitations of Liability Warranty Industrial Shields’s exclusive warranty is that the products are free from defects in materials and workmanship for a period of one year (or other period if specified) from date of sale by Industrial Shields.
Rev. 2: 20-03-2024 1.1 Power consumption of the 14 IOs PLC Current resting Power resting Current active Power active (mA) (mA) 1,008 1,944 The power consumption is measured at 24Vdc. The current resting column denotes the minimum current drawn by the PLC when all outputs are at a LOW level, representing the PLC's baseline power consumption.
Rev. 2: 20-03-2024 Technical Specifications General Specifications: Power supply DC power supply 12 to 24Vdc voltage Operating DC power supply 11.4 to 25.4Vdc voltage range Power DC power supply 30W max. consumption Power supply voltage 24Vdc External power supply Power supply output 300mA capacity 20MΩ...
Rev. 2: 20-03-2024 Performance Specification: Board ESP32 DevKit C (3.3V) Control method Stored program method I/O control method Combination of the cyclic scan and immediate refresh processing methods. Arduino IDE. Based on wiring (Wiring is an Open Source electronics platform Programming language composed of a programming language.
Rev. 2: 20-03-2024 Symbology Table that includes all the symbology that is used in the serigraph of the ESP32 PLC 14 Module: Standard No. / Standard Symbol Standard Title Reference No. / Symbol Meaning Symbol Title IEC 60417 / Indicates that the equipment is...
INDUSTRIAL SHIELDS representative. Ensure that the rating and performance characteristics of ESP32 14 Module are sufficient for the systems, machines, and equipment, and be sure to provide the systems, machines, and equipment double safety mechanisms.
Rev. 2: 20-03-2024 Software interface Industrial Shields PLC are programmed using Arduino IDE, which is a software based on the C language. They can also be programmed directly using C but it is much easier working with Arduino IDE as it provides lots of libraries that help in the programming.
Page 18
Rev. 2: 20-03-2024 4. Go to: Tools -> Board: … -> Boards Manager 5. Search for industrialshields-esp32. 6. Click install industrialshields-esp32 (selecting the latest version). Following this steps you will be able to use now the Industrial Shields Boards:...
Page 19
Once it is selected the 14 IOs PLC in Industrial Shields ESP32, an extra option will appear on “Tools”: There, it is possible to select the mode used for the ESP32 PLC 14. In this case 14 IOs PLC (4-20 mA).
Rev. 2: 20-03-2024 How to connect 14 IOs to PC Connect USB port from PLC to PC. NOTE: ESP32 14 PLC uses a long micro USB cable. Open Arduino IDE interface: Select the correct board. Select the correct port.
Rev. 2: 20-03-2024 How to connect PLC to power supply ESP32 14 PLCs are 12-24Vdc supplied. IMPORTANT: The polarity IS NOT REVERSAL! Make sure that the live and GND connector of the power supply match the PLC. Make sure that the power supply mains output is not higher than 24Vdc. Suggested power suppliers The standard, Part 1 of IEC 61010, sets the general safety requirements for the following types of electrical devices and their accessories, regardless of where use of the device is intended.
Rev. 2: 20-03-2024 ESP32 14 serigraphy 14 IOs ESP32 14 IOs ESP32 Function Function Connector Connector REL-B CON2 Relay REL-A CON1 Relay RS485 RS485 Q0.3 Digital Output Q0.2 Digital Output Q0.1 Digital Output Q0.0 Digital Output Power Supply AI0.1/I0.8 G33/G35 Analog/Digital Input AI0.0/I0.7 G32/G34...
Page 24
Rev. 2: 20-03-2024 NOTE: In case you need to activate the reset button, it can be found by opening the top cover and accessing the white reset button of the ESP32 board integrated inside the enclosure. NOTE: The LEDs positioned at the top of the PLC, which go from led 0 to 8 refer to both inputs and outputs.
Page 25
Rev. 2: 20-03-2024 Pinout Response Digital Inputs Average (μs) Max time (μs) Digital input Analog Inputs As a Average (μs) Max time (μs) Digital input Analog input (4-20mA) Analog input (0-10V) Digital Outputs Output frequency Period Delay Duty cycle 19,53 kHz 51 μs 25 μs 82,23 %...
Check sections to configure the software interface and to connect the ESP32 PLC 14 to the PC. Before programming the ESP32 PLC 14 is required to connect it to the power supply. Check section 6 for more information. 10.1 Digital Input To configure a digital input, it can be done this way: pinMode(I0_0, INPUT);...
Page 27
Rev. 2: 20-03-2024 10.2 Analog Input To configure an analog input, it can be done this way: pinMode(I0_7, INPUT); The available analog input pins are defined as I0_7 and I0_8. Here is an implementation example: *Note: Consider that depending on your selection when acquiring the PLC, the model you use will have either two analog inputs of 0-10Vdc or 4-20mA, but both cannot coexist in the same PLC, nor be modified by software.
Page 28
This issue stemming from the ESP32 GPIOs is corrected automatically by the analogRead() function on ESP32 PLC 14. This is internally done by multiplying (value+171)*1.295 when the value is non-zero. This corrects the bit resolution and offset, but the range between 0-0.5V still...
Page 29
Rev. 2: 20-03-2024 10.3 Digital Output To configure a digital output, it can be done this way: pinMode(Q0_0, OUTPUT); The available digital output pins are defined between Q0_0 and Q0_3. Here is an implementation example:...
Page 30
The available relay output is defined as R0_0. Here is an implementation example: Digital inputs threshold detection The ESP32 PLC 14 inputs have a minimum voltage threshold to reliably detect the signal when used as digital input. The threshold value is different depending on the input type:...
RS-485 communication. In the following image you can see the internal schematic of the PLC of the connection between microcontroller pins, the RS-485 chip and its outputs. Using the boards of Industrial Shields, there is a library that simplifies the RS-485 implementation.
Rev. 2: 20-03-2024 12.3 Ethernet ESP32 14 Ethernet port controller is based on w5500 IC, which is the IC compatible with Arduino Ethernet2 Shield libraries. All Ethernet shield Arduino libraries are compatible with the ESP32 14. In the ESP32 14 PLC, W5500 IC communicates to the microcontroller board via SPI bus.
Rev. 2: 20-03-2024 Additional features: Expansion Modules 13.1 LoRa The LoRa expansion board can use the RN2483 or RN2903 microchip depending on the frequency needed, which have the following features: ● Model: RN2483 (for Europe/Asia), RN2903 (for North America/Australia) ● Type: LoRa ●...
Rev. 2: 20-03-2024 Connector details For I/O and power supply there is a 15EDGK-3.81-02P-14-00A(H) connector from DEGSON ELECTRONICS. 15EDGK-3.81-02P-14-00A(H) For communication pinout there is a FK-MC 0,5/10-ST-2,5 - 1881406 connector from Phoenix contact. FK-MC 0,5/10-ST-2,5 Connection details: Article reference 15EDGK-3.81-02P-14-00A(H) Pitch 3,81mm Depth...
Rev. 2: 20-03-2024 Installation and Maintenance Notes for installation: The installation position should be free from the following: dust or oil smoke, conductive dust, corrosive or flammable gas, high temperature, condensation, and rain. Besides, vibration and impact also affect the PLC normal operation and shorten its lifespan;...
Page 39
Rev. 2: 20-03-2024 and below the devices. Also, allow at least 25 cm of depth between the front of the modules and the inside of the enclosure. Notes for maintenance: A well-planned and executed maintenance program is essential to the satisfactory operation of solid-state electrical equipment.
Page 40
Rev. 2: 20-03-2024 and cause malfunctions. Excessive tightening can damage the screws and / or the module, with the risk of falling, short circuits and malfunctions. - Before handling a module, dispose of the electrostatic charge accumulated by the human body by touching a suitable conductive object. Failure to observe this precaution may cause faults or malfunctions of the module.
Rev. 2: 20-03-2024 Revision Table Revision Number Date Changes 11/12/23 First Implementation 13/03/24 Second Implementation 20/03/24 Updated Analog Input chapter...
Page 42
Rev. 2: 20-03-2024 About Industrial Shields: Direction: Camí del Grau, 25 Zip/Postal Code: 08272 City: Sant Fruitós de Bages (Barcelona) Country: Spain...
Need help?
Do you have a question about the ESP32 PLC 14 and is the answer not in the manual?
Questions and answers