Download Print this page

Advertisement

Quick Links

ESP32 ETHERNET & WIFI & BLUETOOTH PLC
FAMILY
PLC ESP32 ETHERNET & WIFI & BLUETOOTH FAMILY

Advertisement

loading

Summary of Contents for Industrial Shields ESP32 PLC Series

  • Page 1 ESP32 ETHERNET & WIFI & BLUETOOTH PLC FAMILY PLC ESP32 ETHERNET & WIFI & BLUETOOTH FAMILY...
  • Page 2 Rev. 1: 13-04-2021...
  • Page 3 Rev. 1: 13-04-2021 ESP32 Ethernet & WiFi & BLE PLC Family Revised March 2021...
  • Page 4 Rev. 1: 13-04-2021 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 operating, to functions, and to the technical data of the signal modules, power supply modules and interface modules.
  • Page 5 Rev. 1: 13-04-2021 housing, cabinet, or electric control room. Entry to the housing, cabinet, or electric control room should be limited to authorized personnel. Failure to follow these installation requirements could result in severe personal injury and/or property damage. Always follow these requirements...
  • 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 of the product.
  • 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 Rev. 1: 13-04-2021 When carrying out a risk assessment of a machine in accordance with the EU Machinery Directive, the machine manufacturer must consider the following residual risks associated with the control and drive components of a PDS. 1. Unintentional movements of driven machine components during commissioning, operation, maintenance, and repairs caused by, for example: −...
  • 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.
  • Page 10 Rev. 1: 13-04-2021 Table of Contents General Description ESP32 ETHERNET&WIFI&BLUETOOTH PLC FAMILY Product ....11 Zones Table ........................11 Measures Table ......................12 Zone - Nomenclature ....................13 Zone Distribution ......................13 Zone Features ......................14 Mechanical dimension ....................15 General Features ......................
  • Page 11 12.1.5 Relay ........................39 Internal I2C and SPI Connections ................... 40 Instructions: How to upload a program ................. 40 Instructions for interconnection between Industrial Shields controllers ......42 15.1 RS-232 Communication: ....................42 15.2 RS-485 Communication: ....................42 15.3 Ethernet ........................43 Typical Connections .......................
  • Page 12 Rev. 1: 13-04-2021 General Description ESP32 ETHERNET&WIFI&BLUETOOTH PLC FAMILY Product Zones Table...
  • Page 13 Rev. 1: 13-04-2021 Measures Table...
  • Page 14 Rev. 1: 13-04-2021 Zone - Nomenclature The nomenclature shown in this point will be used in the whole User Guide, so it is important to understand this nomenclature. The nomenclature to differentiate the zones is based on Alphanumeric values, being 0 the internal communication shield and A, B or C the I/Os or Relay shield.
  • Page 15 Rev. 1: 13-04-2021 Zone Features Shield Zone Characteristics (1x) Ethernet (1x) WiFi (1x) BLE (1x) USB (1x) I2C Communication Shield (1x) RS-232 (1x) HALF Duplex RS-485 (1x) SPI external Port (1x) RTC (1x) uSD Socket 13 Inputs: 13 Digital inputs, 6 of which can work as Analog Input Analog Shield 8 Outputs: 8 Digital Outputs, 3 of which can work as Analog Output...
  • Page 16 Rev. 1: 13-04-2021 Mechanical dimension *NOTE: This device includes one 2.4GHz antenna and one 5G antenna (for the 5G option), and both have a length of 5cm.
  • Page 17 Rev. 1: 13-04-2021 General Features ESP32 ETHERNET&WIFI&BLUETOOTH PLC FAMILY MODEL TYPE Controller General Specifications Information Fuse protection (2.5A) 12 to 24Vdc Input Voltage Polarity protection 24 Vdc Input rated voltage Rated Power 30 W I max. 1.5A Size Consult the 1.6 Mesure Table section Clock Speed...
  • Page 18 Rev. 1: 13-04-2021 5 to 24Vdc I max: 70 mA PWM Isolated Output Galvanic Isolation Diode Protected for Relay 8bit (24Vcc) Rated Voltage: 24Vdc Expandability I2C - 127 elements - Serial Port RS232/RS485 * By using this type of signal can no longer use Digital signal (24Vdc)
  • Page 19 Rev. 1: 13-04-2021 Technical Specifications: General Specifications: Item ESP32 ETHERNET&WIFI&BLUETOOTH PLC 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 24Vdc voltage External power supply Power...
  • Page 20 Rev. 1: 13-04-2021 SRAM in RTC 16KB Clock Speed 40MHz Symbology Table that includes all the symbology that is used in the serigraph of the ESP32 ETHERNET&WIFI&BLUETOOTH PLC I/Os Analog/Digital PLUS: Symbol Standard No. / Standard Symbol Meaning Standard Title Reference No.
  • Page 21 ESP32 ETHERNET&WIFI&BLUETOOTH. Software interface Industrial Shields PLC are programmed using Arduino IDE, which is a software based on the C language. They can also be programmed using directly C but it is much easier working with Arduino IDE as it provides lots of libraries that helps in the programming.
  • Page 22 Rev. 1: 13-04-2021 Requirements: Arduino IDE 1.8.13 or above (better to have always the latest version). Steps: 1. Open Arduino IDE and go to: “File -> Preferences” located in the top left corner. 2. In Additional Boards Manager URLs write the following: http://apps.industrialshields.com/main/arduino/boards/package_industrialshields_index.json 3.
  • Page 23 4. Tools -> Board: … -> Boards Manager. Search for the industrialshields-esp32 board and install the last version (it must be from the version 1.0.4 minimum): Following these steps, you will be able to see now the Industrial Shields Boards:...
  • Page 24 There, it can be selected the exact model for every family. Also, there are some examples of programming in File -> Examples -> ESP32 PLC Family Furthermore, there are some extra libraries that can be found in Industrial Shields github. https://github.com/IndustrialShields/ How to connect PLC Arduino to PC Connect micro-USB port from PLC to PC.
  • Page 25 DIN Rail: -12Vdc / 24Vdc -2.5A -30W Industrial Shields power supplies provide parallel operation, overvoltage protection, and overcurrent protection. There is a LED inductor for power status, the power supply is certified according to UL. 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.
  • Page 26 Rev. 1: 13-04-2021 ESP32 ETHERNET&WIFI&BLUETOOTH PLC Pinout I/Os Table...
  • Page 27 Rev. 1: 13-04-2021 0 Zone connection Base (common unit) A Zone 3.3Vdc 5Vdc Communication Pins 3.3Vdc 5Vdc GPIO 22 GPIO 21 IO33 TX0 / RS232 RX0 / RS232 SENS VN Configuration Switch* (see section 8 SENS VP RS485 configuring the communications. RS485 Enabling communications disables some RS485...
  • Page 28 Rev. 1: 13-04-2021...
  • Page 29 Rev. 1: 13-04-2021 Analog/Digital Zone connection (I/Os) Zone IX.12 Analog / Digital In IX.11 Analog / Digital In IX.10 Analog / Digital In IX.9 Analog / Digita In IX.8 Analog / Digital In IX.7 Analog / Digital In (-)IX.6 GND I0.6 Analog / Digital Inputs IX.6/INT Interrupt...
  • Page 30 Rev. 1: 13-04-2021 Relay Zone connection (I/Os) Zone RX.8 Relay Out RX.7 Relay Out RX.6 Relay Out RX.5 Relay Out Relay Outputs RX.4 Relay Out AX.2 Analog Out AX.1 Analog Out AX.0 Analog Out QX.2 Digital/PWM Out QX.1 Digital/PWM Out QX.0 Digital/PWM Out GNDCOM...
  • Page 31 Rev. 1: 13-04-2021 Interrupt equivalence table ZONE ANALOG/DIGITAL RELAY RASPBERRY PIN GPIO27 GPIO26 GPIO35 GPIO25 GPIO34 GPIO5 Switch Configuration 0 Zone: Communications Switch A ZONE NC/NC NC/NC NC/NC USB/RS232 RS232 USB/RS232: Changing between USB / RS232. If this switch is ON, it enables RS232 communication and disables the Programming USB.
  • Page 32 Rev. 1: 13-04-2021 Analog / Digital Zone ZONE A ZONE B ZONE C SWITCH SWITCH SWITCH Q0.7 Q0.7 A0.7 Q1.7 Q1.7 A1.7 Q2.7 Q2.7 A2.7 Q0.6 Q0.6 A0.6 Q1.6 Q1.6 A1.6 Q2.6 Q2.6 A2.6 Q0.5 Q0.5 A0.5 Q1.5 Q1.5 A1.5 Q2.5 Q2.5 A2.5...
  • Page 33 Rev. 1: 13-04-2021 I/O ESP32 PLC 3.3V pins The ESP32 ETHERNET&WIFI&BLUETOOTH PLC has some of the ESP32 board pins available. These pins can be programmed according to Raspberry features such as I/O’s operating at 3.3V or any additional features present in the pins (for example I2C communication in pins SCL and SDA).
  • Page 34 ESP32 ETHERNET&WIFI&BLUETOOTH PLC RTC Module is based on the DS1307 Chip. This chip works with the I2C protocol communication, so it is required to have enabled the I2C protocol. Using the boards of Industrial Shields, there is a library that simplifies the RTC implementation called RTC.
  • Page 35 The microSD uses the SPI communication to interact with the ESP32. The SPI protocol is always enabled, as there are no switches that configure it. Using Industrial Shields’ boards there is a library that simplifies the uSD implementation called The microSD uage is conditioned by the switch configuration. See the Section Verify that the CPU is not actively running a process before inserting the memory card.
  • Page 36 IEEE standards (802.11a, 802.11n, 802.11ac). In order to work with it, Industrial Shields offers some example codes located at File -> Examples of the Arduino IDE after downloading our boards.
  • Page 37 The Digital/Analog I/Os of this device are connected to the ESP32 through I2C, using specific chips (see the Section 13). Here we have the equivalence tables (using Industrial Shields libraries, we do not have to consider these equivalences): 12.1 Pin-Out...
  • Page 38 Rev. 1: 13-04-2021 12.1.2 Digital I/Os...
  • Page 39 Rev. 1: 13-04-2021 12.1.3 Relay Devices Analog I/Os 12.1.4 Digital I/Os...
  • Page 40 Rev. 1: 13-04-2021 12.1.5 Relay...
  • Page 41 Rev. 1: 13-04-2021 Internal I2C and SPI Connections Instructions: How to upload a program With these family devices, we must follow a certain protocol to successfully upload a program: • Connect the microUSB cable to the microUSB port: • Configure this switch (BOOT) in ON position:...
  • Page 42 Rev. 1: 13-04-2021 • Upload the code. • Once the code is uploaded, turn OFF the previous switch. • Pulse the RESET button:...
  • Page 43 Rev. 1: 13-04-2021 Instructions for interconnection between Industrial Shields controllers 15.1 RS-232 Communication: 15.2 RS-485 Communication: 15.2.1.1 Half Duplex...
  • Page 44 Rev. 1: 13-04-2021 15.3 Ethernet For an Ethernet communication between Industrial Shields equipment a SFTP CAT-6 Ethernet crossover cable must be used.
  • Page 45 Rev. 1: 13-04-2021 Typical Connections...
  • Page 46 Rev. 1: 13-04-2021...
  • Page 47 Rev. 1: 13-04-2021...
  • Page 48 Rev. 1: 13-04-2021...
  • Page 49 Rev. 1: 13-04-2021...
  • Page 50 Rev. 1: 13-04-2021 Connector details: The connector inside the PLCs that mounts on the PCB is MC 0,5/10-G-2,5 THT – 1963502 from Phoenix contact. MC0,5/10-G-2,5THT For I/O and power supply there is a FK-MC 0,5/10-ST-2,5 - 1881406 connector from Phoenix contact.
  • Page 51 Rev. 1: 13-04-2021 Mechanical Characteristics Dimension ESP32 ETHERNET&WIFI&BLUETOOTH PLC: DIN Rail mounting For optimal operation of the product, it must be located in an electrical cabinet with IK08 mechanical protection. The minimum IP protection degree required is IP56.
  • Page 52 Rev. 1: 13-04-2021 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 53 Rev. 1: 13-04-2021 Provide adequate clearance for cooling and wiring ESP32 ETHERNET&WIFI&BLUETOOTH PLC. Is designed for natural convection cooling. For proper cooling, you must provide a clearance of at least 25 cm above and below the devices. Also, allow at least 25 cm of depth between the front of the modules and the inside of the enclosure.
  • Page 54 Rev. 1: 13-04-2021 - Tighten the screws of the terminal ports and the screws of the connectors within the prescribed tightening torque. Insufficient tightening can lead to loose parts or wires and cause malfunctions. Excessive tightening can damage the screws and / or the module, with the risk of falling, short circuits and malfunctions.
  • Page 55 Date Changes 01/03/2021 First implementation 13/04/2021 Changes on the section 11 About Industrial Shields: Direction: Fàbrica del Pont, 1-11 Zip/Postal Code: 08272 City: Sant Fruitós de Bages (Barcelona) Country: Spain Telephone: (+34) 938 760 191 / (+34) 635 693 611 Mail: industrialshields@industrialshields.com...