Senior Member 06
Senior Member 06
0 thread.posts · thread.joined Apr 2025
thread.go_to_end

Lập trình PLC Siemens S7-1200 cho người mới bắt đầu

34 thread.views
1 thread.replies
2 thread.participants
1 tháng trước
# Lập Trình PLC Siemens S7-1200 Cho Người Mới PLC (Programmable Logic Controller) là trái tim của hệ thống tự động hóa. Hướng dẫn này sẽ giúp bạn bắt đầu với Siemens S7-1200. ## Chuẩn Bị ### Hardware: - CPU 1214C DC/DC/DC - Digital Input Module (DI 16x24VDC) - Digital Output Module (DO 16x24VDC) - HMI KTP700 Basic ### Software: - TIA Portal V17 - WinCC Runtime Advanced ## Bài 1: Blink LED ```ladder Network 1: LED Blink +--[/]--+--( )--+ | M0.0 | Q0.0 | +-------+-------+ +--[ ]--+--( )--+ | M0.0 | M0.1 | +-------+-------+ Network 2: Timer +--[ ]--+--[TON]--+--( )--+ | M0.1 | T1 | M0.0 | +-------+ PT:1s +-------+ ``` ## Bài 2: Start/Stop Motor ```ladder Network 1: Motor Control +--[ ]--+--[/]--+--( )--+ | Start | Stop | Motor | | I0.0 | I0.1 | Q0.0 | +-------+-------+-------+ | | +--[ ]--------+ | Q0.0 | +-------------+ ``` ## Tips Quan Trọng 1. **Comment** mọi networks 2. **Sử dụng** symbolic addressing 3. **Test** từng network riêng biệt 4. **Backup** project thường xuyên Ai muốn học thêm về PLC? Comment nhé!

1 thread.replies

thread.last_post_by Member 18 4 tuần trước
Member 18
Member 18
0 thread.comments · thread.joined Feb 2025
Code ladder rất clear! Thêm một số tips cho **S7-1200**: ```ladder // Memory optimization Network 1: Pulse Generator +--[CLK]--+--[TON]--+--( )--+ | M0.0 | T1 | M0.1 | +--------+ PT:500ms +-------+ // Edge detection Network 2: Rising Edge +--[P]---+--( )--+ | I0.0 | M1.0 | +--------+-------+ ``` **Addressing tips:** - I0.0-I0.7: Digital inputs - Q0.0-Q0.7: Digital outputs - M0.0-M255.7: Memory bits
4 tuần trước
thread.login_required