Sei sulla pagina 1di 8

s

Power Supply

CUSTOMER TRAINING

CONSTITUENTS OF PLC & WORKING

Input Module

CPU Program Memory

Output Module

Field Inputs Control Elements PROCESS/MACHINE


A&D2/ATU

PLC-BASIC-5

SIEMENS WORKING OF PLC Bringing Input Signal To PII

Customer Training

enable

CPU

Input Module PII


P24

PIQ

PII-Process Image Input

A&D2/ATU

PLC-WORKING

SIEMENS Processing of Signals using Program User Program Memory

Customer Training

Internal Timers

CPU

Internal Counters
Flags /Bit Memory

PII

PIQ
PIQ = Process Image Output

A&D2/ATU

PLC-WORKING

SIEMENS

Customer Training

Sending Process Image Output To Output Module enable CPU Output Module PIQ M

PII

A&D2/ATU

PLC-WORKING

SIEMENS

Customer Training

I 1.3 I 2.0

Process

Images

Q4.3

Q5.0
PII
Byte 0 Byte 1 Byte 2 : : :

CPU

PIQ
Byte 0 Byte 1 Byte 2 : : : 1

User Program
1

1 : : A A = = CPU Memory Area I I Q Q : : : : 1.3 2.0 4. 3 5.0

CPU

Memory Area

A&D2/ATU

PLC-WORKING

SIEMENS

Customer Training Cyclical Program Execution(OB1)


Start-up block (OB 100) Execution once after e.g. power on

Start of the cycle monitoring time

Input Module

Reading the signal states from the modules and saving the data in the process image (PII)

CPU Cycle

Block Execution of the program in OB1 OB 1 (cyclical execution) Events (time-of-day interrupt, hardware interrupts etc.) call other OBs, FBs, FC/PBs, etc.

A I 0.1 A I 0.2 = Q8.0

Writing the process-image output table (PIQ) to the output modules

Output Module

A&D2/ATU

PLC-WORKING

S7 200 SCAN CYCLE


The S7200 continuously cycles through the control logic in your program, reading and writing data. The S7200 executes a series of tasks repetitively. This cyclical execution of tasks is called the scan cycle.
Writes to the outputs

Perform the CPU Diagnostics Process any Communications Requests

Execute the Program

Scan Cycle

Reads the inputs

Reading the inputs: The S7200 copies the state of the physical inputs to the processimage input register. Executing the control logic in the program: The S7200 executes the instructions of the program and stores the values in the various memory areas. Processing any communications requests: The S7200 performs any tasks required for communications. Executing the CPU selftest diagnostics: The S7200 ensures that the firmware, the program memory, and any expansion modules are working properly. Writing to the outputs: The values stored in the processimage output register are written to the physical outputs.

S7 200 Scan Cycle SCANNING PROCESS


The S7-200 continuously cycles through the control logic in your program, reading and writing data.
Start_PB E_Stop M_Starter

M_Starter

Motor

Output Motor Starter

Input Start / Stop Switch

The basic operation of the S7-200 is very simple: The S7-200 reads the status of the inputs. The program that is stored in the S7-200 uses these inputs to evaluate the control logic. As the program runs, the S7-200 updates the data. The S7-200 writes the data to the outputs.

The S7-200 Relates Your Program to the Physical Inputs and Outputs

Potrebbero piacerti anche