1. Trang chủ
  2. » Giáo án - Bài giảng

Basic programming simatic s7 300

41 70 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Basic Programming Simatic S7300 Cấu trúc một chương trình trong PLC khá đơn giản, chương trình được tạo thành từ 03 thành phần cơ bản: một chương trình chính (main program); có thể có một hay nhiều chương trình con (subroutines); các chương trình con xử lý ngắt (interrupt routines) có thể có hoặc không. • Chương trình chính bao gồm các lệnh điều khiển ứng dụng. Các lệnh này được thực hiện tuần tự một cách liên tục, cứ mỗi vòng quét một lần. • Các chương trình con, có thể có hoặc không tùy yêu cầu, chỉ được thực hiện nếu được gọi đến từ chương trình chính. • Các chương trình con xử lý ngắt (có thể có hoặc không) được thực hiện khi xảy ra sự kiện gắn với ngắt tương ứng. Sự kiện đó có thể là sự thay đổi mức ở một đầu vào, bộ định thời đếm đủ hay nhận được dữ liệu trên cổng truyền thông, . . .

By: Andri Kuncoro SIMATIC Overview SIMATIC Controller (PLC) S7-200 S7-300 S7-400 S7 – 300 Features :  Modular small controll system  Performance graded range of CPU  Extensive selection of modules  Expandable design with up to 32 modules  Backplane bus integrated in the modules  Can be networked with MPI, Profibus or Industrial ethernet  Central PG/PC connection with access to all modules  No slot restrictions  Configuration and parameter setting with the help “HW Config” S7 – 300 Mode Selector MRES STOP RUN RUNP = = = = Memory reset function Stop mode, program not executed Program execution Program execution, read/write access Status Indicator SF module BATF DC5V FRCE RUN = Group error, internal CPU or fault in = = = = Battery fault Internal VDC voltage indicator FORCE Flashes when the CPU is starting up, then steady light in Run mode STOP = Show steady light in Stop mode SF DP = Physical bus fault BUSF = No configuration or incorrect configuration Starting with SIMATIC Manager SIMATIC Manager menus and toolbars Standard Library Context-Sensitive Help in S7 F1 Creating a project Binary Operation POSITIVE EDGE Binary Operation NEGATIVE EDGE Binary Operation JUMP UNCONDITIONAL (JU) JUMP CONDITIONAL (JC) Digital Operation BIT BYTE For a unit of binary characters, the term BYTE is used A byte has the size of bits WORD A word also has the size of bytes or 16 bits DOUBLE-WORD A double-word corresponds to the word length of 32 binary characters A double-word also has the size of words, bytes, or 32 bits Digital Operation Beberapa operand di S7 : Operand input(I) Bit Byte Word Double Word Operand Output(Q) Bit Byte Word Double Word Operand Flag(M) Bit Byte Word Double Word Operand Timer(T) T0 Operand Counter(C) C0 I 0.0 - … IB - … IW - … ID - … Operand Peripheral(PI) Input Byte Input Word Output Byte Output Word PIB - … PIW - … PQB - … PQW - … Q 0.0 - … QB - … QW - … QD - … 7.Operand Data(D) Bit Byte Word Double Word DBX 0.0 - … DBB - … DBW - … DBD - … M 0.0 - … MB - … MW - … MD - … Digital Operation PULSE TIMER Digital Operation EXTENDED PULSE TIMER Digital Operation ON –DELAY TIMER Digital Operation OFF-DELAY TIMER Digital Operation COUNTER OPERATIONS Digital Operation COMPARISON FUNCTIONS == > < >=

Ngày đăng: 30/10/2019, 13:48

Xem thêm:

Mục lục

    Basic Programming Simatic S7-300

    Starting with SIMATIC Manager

    SIMATIC Manager menus and toolbars

    Context-Sensitive Help in S7

    Starting Hardware Configuration Editor

    Generating a Hardware setpoint Configuration

    Saving the HW Configuration and Downloading it in the Module

    Block architecture and Block editor

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w