Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use plc haiwell at16s0r: Examples, Pinouts, and Specs

Image of plc haiwell at16s0r
Cirkit Designer LogoDesign with plc haiwell at16s0r in Cirkit Designer

Introduction

The Haiwell AT16S0R is a programmable logic controller (PLC) designed for industrial automation applications. It is equipped with 16 input channels and 16 relay output channels, making it suitable for controlling and monitoring a wide range of devices in industrial environments. The AT16S0R supports various communication protocols, ensuring seamless integration with other devices and systems. Known for its reliability, compact design, and ease of programming, this PLC is an excellent choice for both small-scale and large-scale automation projects.

Explore Projects Built with plc haiwell at16s0r

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32C3 Supermini-Based Smart Environment Monitor and Lighting Control System
Image of Bedside RGB and Lamp: A project utilizing plc haiwell at16s0r in a practical application
This is a smart control system featuring an ESP32C3 Supermini microcontroller for interfacing with various sensors and actuators. It includes temperature and humidity sensing, RGB LED strip control, user input via a pushbutton and rotary encoder, and AC power control through a two-channel relay. The system is powered by an AC source converted to DC by the HLK-PM12 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Automated Plant Watering System with Environmental Monitoring
Image of Automatisierungsprojekt: A project utilizing plc haiwell at16s0r in a practical application
This circuit is designed to monitor environmental conditions and control peripheral devices. It features light and temperature/humidity sensing, visual output on an OLED display, and actuation of a fan, water pumps, and a stepper motor. Power management and distribution are facilitated by splicing connectors, and the system is controlled by an Arduino UNO, which currently has placeholder code for customization.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP8266 and SIM800L Based GPS Tracker with I2C LCD Display and Battery Power
Image of Little Innovator Competition: A project utilizing plc haiwell at16s0r in a practical application
This circuit integrates an ESP8266 NodeMCU microcontroller with a SIM800L GSM module, a GPS NEO 6M module, and a 16x2 I2C LCD display for communication and location tracking. It also includes a pushbutton for user input, a piezo buzzer for audio alerts, and is powered by a 2x 18650 battery pack through an LM2596 step-down module.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Smart Irrigation and Environmental Monitoring System
Image of Skripsi: A project utilizing plc haiwell at16s0r in a practical application
This is an automated environmental control system for plant growth that uses an ESP32 to monitor soil moisture and pH levels, and to manage irrigation through solenoid valves. The system aims to maintain optimal growing conditions by adjusting watering schedules based on sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with plc haiwell at16s0r

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Bedside RGB and Lamp: A project utilizing plc haiwell at16s0r in a practical application
ESP32C3 Supermini-Based Smart Environment Monitor and Lighting Control System
This is a smart control system featuring an ESP32C3 Supermini microcontroller for interfacing with various sensors and actuators. It includes temperature and humidity sensing, RGB LED strip control, user input via a pushbutton and rotary encoder, and AC power control through a two-channel relay. The system is powered by an AC source converted to DC by the HLK-PM12 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Automatisierungsprojekt: A project utilizing plc haiwell at16s0r in a practical application
Arduino UNO Based Automated Plant Watering System with Environmental Monitoring
This circuit is designed to monitor environmental conditions and control peripheral devices. It features light and temperature/humidity sensing, visual output on an OLED display, and actuation of a fan, water pumps, and a stepper motor. Power management and distribution are facilitated by splicing connectors, and the system is controlled by an Arduino UNO, which currently has placeholder code for customization.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Little Innovator Competition: A project utilizing plc haiwell at16s0r in a practical application
ESP8266 and SIM800L Based GPS Tracker with I2C LCD Display and Battery Power
This circuit integrates an ESP8266 NodeMCU microcontroller with a SIM800L GSM module, a GPS NEO 6M module, and a 16x2 I2C LCD display for communication and location tracking. It also includes a pushbutton for user input, a piezo buzzer for audio alerts, and is powered by a 2x 18650 battery pack through an LM2596 step-down module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Skripsi: A project utilizing plc haiwell at16s0r in a practical application
ESP32-Based Smart Irrigation and Environmental Monitoring System
This is an automated environmental control system for plant growth that uses an ESP32 to monitor soil moisture and pH levels, and to manage irrigation through solenoid valves. The system aims to maintain optimal growing conditions by adjusting watering schedules based on sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Industrial process automation
  • Machine control and monitoring
  • Building automation systems
  • Conveyor belt systems
  • Remote monitoring and control of equipment
  • Integration with SCADA systems

Technical Specifications

Key Technical Details

Specification Value
Model Haiwell AT16S0R
Input Channels 16 (Digital Inputs)
Output Channels 16 (Relay Outputs)
Input Voltage Range DC 24V
Output Type Relay (NO/NC contacts)
Communication Protocols Modbus RTU, Modbus TCP, HaiwellBus
Power Supply Voltage DC 24V
Power Consumption ≤ 5W
Operating Temperature Range -20°C to 60°C
Storage Temperature Range -40°C to 70°C
Dimensions 125mm x 90mm x 60mm
Mounting Type DIN Rail

Pin Configuration and Descriptions

Input Channels

Pin Number Description Voltage Level
X0 - X15 Digital Input Channels (X0-X15) DC 24V

Output Channels

Pin Number Description Type
Y0 - Y15 Relay Output Channels (Y0-Y15) NO/NC Contacts

Power and Communication

Pin Number Description Notes
+24V, GND Power Supply Input DC 24V
RS485+/- RS485 Communication Interface Modbus RTU
Ethernet Ethernet Port Modbus TCP

Usage Instructions

How to Use the Haiwell AT16S0R in a Circuit

  1. Power Connection: Connect a DC 24V power supply to the +24V and GND terminals.
  2. Input Connections: Connect digital input devices (e.g., sensors, switches) to the input channels (X0-X15). Ensure the input voltage is within the specified range (DC 24V).
  3. Output Connections: Connect the devices to be controlled (e.g., motors, lights) to the relay output channels (Y0-Y15). Use the NO (Normally Open) or NC (Normally Closed) contacts as required.
  4. Communication Setup:
    • For RS485 communication, connect the RS485+ and RS485- terminals to the corresponding terminals of the master device.
    • For Ethernet communication, connect the Ethernet port to your network or SCADA system.
  5. Programming: Use the Haiwell programming software to create and upload your control logic. The software supports ladder logic, function block diagrams, and structured text programming.

Important Considerations and Best Practices

  • Ensure the power supply voltage is stable and within the specified range (DC 24V).
  • Use proper shielding and grounding for communication cables to minimize interference.
  • Avoid exceeding the maximum current rating of the relay outputs to prevent damage.
  • Regularly inspect and maintain the PLC to ensure reliable operation in industrial environments.
  • Use surge protection devices to safeguard the PLC from voltage spikes.

Example: Connecting to an Arduino UNO

The Haiwell AT16S0R can communicate with an Arduino UNO via the RS485 interface. Below is an example of Arduino code to read data from the PLC using the Modbus RTU protocol.

#include <ModbusMaster.h>

// Instantiate ModbusMaster object
ModbusMaster node;

// Define RS485 communication pins
#define RE_DE 2  // Pin to control RS485 direction

void preTransmission() {
  digitalWrite(RE_DE, HIGH); // Enable transmission mode
}

void postTransmission() {
  digitalWrite(RE_DE, LOW);  // Enable reception mode
}

void setup() {
  // Initialize RS485 direction control pin
  pinMode(RE_DE, OUTPUT);
  digitalWrite(RE_DE, LOW);

  // Initialize serial communication
  Serial.begin(9600); // For debugging
  Serial1.begin(9600); // RS485 communication

  // Configure Modbus communication
  node.begin(1, Serial1); // Slave ID = 1
  node.preTransmission(preTransmission);
  node.postTransmission(postTransmission);
}

void loop() {
  uint8_t result;
  uint16_t data;

  // Read input status from PLC (e.g., X0-X15)
  result = node.readDiscreteInputs(0x0000, 16); // Read 16 inputs starting at address 0x0000

  if (result == node.ku8MBSuccess) {
    // Print the status of the first input (X0)
    data = node.getResponseBuffer(0);
    Serial.print("Input X0 status: ");
    Serial.println(bitRead(data, 0)); // Read bit 0 (X0)
  } else {
    Serial.println("Failed to read inputs from PLC.");
  }

  delay(1000); // Wait 1 second before the next read
}

Notes:

  • Use an RS485-to-TTL converter to connect the Arduino UNO to the PLC.
  • Ensure the slave ID and baud rate in the code match the PLC's configuration.

Troubleshooting and FAQs

Common Issues and Solutions

  1. PLC Not Powering On

    • Cause: Incorrect power supply voltage or loose connections.
    • Solution: Verify the power supply voltage is DC 24V and check the wiring.
  2. Inputs Not Detected

    • Cause: Faulty input device or incorrect wiring.
    • Solution: Test the input device and ensure it is properly connected to the input channels.
  3. Outputs Not Activating

    • Cause: Exceeding the relay's current rating or incorrect wiring.
    • Solution: Verify the load current is within the relay's rating and check the wiring.
  4. Communication Failure

    • Cause: Incorrect communication settings or wiring issues.
    • Solution: Ensure the baud rate, slave ID, and wiring match the PLC's configuration.

FAQs

  1. Can the Haiwell AT16S0R be used with SCADA systems?

    • Yes, it supports Modbus TCP and Modbus RTU protocols, making it compatible with most SCADA systems.
  2. What is the maximum current rating for the relay outputs?

    • The relay outputs can handle up to 5A at 250VAC or 30VDC.
  3. Is the Haiwell programming software free?

    • Yes, the Haiwell programming software is free to download from the manufacturer's website.
  4. Can the PLC operate in extreme temperatures?

    • Yes, it operates reliably within a temperature range of -20°C to 60°C.
  5. Does the PLC support analog inputs/outputs?

    • No, the AT16S0R model only supports digital inputs and relay outputs. For analog I/O, consider other Haiwell models.