fungsi

19
1 Advanced Predefined Function Block Advanced Predefined Function Block Drum Controller, Register Drum Controller, Register Monostable, Series 7 Timer Monostable, Series 7 Timer

Upload: dorado-sb

Post on 29-Oct-2014

24 views

Category:

Documents


3 download

DESCRIPTION

untuk teknik elektro

TRANSCRIPT

1

Advanced Predefined Function BlockAdvanced Predefined Function BlockDrum Controller, Register Drum Controller, Register

Monostable, Series 7 TimerMonostable, Series 7 Timer

2

Drum ControllerDrum ControllerDrum ControllerDrum Controller

The drum controller (DR) operates on a similar principle to an electromechanical drum controller, which changes step according to external events.

R DR F TB : 1mnU LEN : 6 DR.V : 4 DR.S : 2

%DRi

3

Drum ControllerDrum ControllerDrum ControllerDrum Controller

R DR F TB : 1mn

U LEN : 6 DR.V : 4

DR.S : 2

%DR0

RESET

STEP UP

TIME BASE

TIME ACCUMULATED

DRUMLENGTH

FULL

STEP ACCUMULATED

4

Drum Controller - Drum Controller - OperationOperationDrum Controller - Drum Controller - OperationOperation

The table on the right summarizes the main characteristics of the drum controller (configured with 7 steps).

0 1 2 3 4 5 60 1 0 0 0 0 0 1 %Q002.01 0 1 0 0 0 1 0 %Q002.22 0 0 1 0 1 0 0 %M13 0 0 0 1 0 0 0 %M24 0 0 1 0 1 0 0 %M35 0 1 0 0 0 1 0 %Q002.36 1 0 0 0 0 0 1 %Q002.17 0 0 0 0 0 0 08 0 0 0 0 0 0 0A 0 0 0 0 0 0 0B 0 0 0 0 0 0 0C 0 0 0 0 0 0 0D 0 0 0 0 0 0 0E 0 0 0 0 0 0 0F 0 0 0 0 0 0 0

steps

bit

addressExample :

5

Drum Controller ExampleDrum Controller ExampleDrum Controller ExampleDrum Controller Example

Simple Running Lamp Program

%I001.0R DR F TB : 1sU LEN : 4 DR.V : 4 DR.S : 0

%DR00 1 2 3

0 1 0 0 0 %Q002.01 0 1 0 0 %Q002.12 0 0 1 0 %Q002.23 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 0

addresssteps

bit

%I001.0 %Q002.0 %Q002.1 %Q002.2

Step 0 Step 1 Step 2

6

Drum Controller ExampleDrum Controller ExampleDrum Controller ExampleDrum Controller Example

Simple Running Lamp Program ver.2

%I001.0R DR F TB : 1sU LEN : 4 DR.V : 4 DR.S : 0

%DR00 1 2 3

0 1 0 1 0 %Q002.01 0 1 1 0 %Q002.12 1 0 1 0 %Q002.23 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 0

addresssteps

bit

%I001.0 %Q002.0 %Q002.1 %Q002.2

Step 0 Step 1 Step 2

7

Drum Controller ExampleDrum Controller ExampleDrum Controller ExampleDrum Controller Example

Simple Running Lamp Program with Time Interval

%I001.0

%M1

%M1

Start / Reset

Step Up

Step Up

R DR F TB : 1sU LEN : 4 DR.V : 4 DR.S : 2

%DR0

%DR0.V>=6COMPARE

P

8

MonostableMonostableMonostableMonostable

The Monostable (MN) function block is used to create a pulse of an exact duration.This duration is programmable and can be modified via the terminal

S MN R TB : 1mn

MN.P : 6MODIF :Y

MN.V : 2

%MNi

9

MonostableMonostableMonostableMonostable

S MN R

TB : 1mn

MN.P : 6 MODIF: Y

MN.V : 3

%MNi

RESET

TIME BASE

MODIFICATION

MONOSTABLE PRESET

MONOSTABLE RUNNING

TIME ACCUMULATED

10

Monostable ExampleMonostable ExampleMonostable ExampleMonostable Example

Simple Flashing Lamp Program

%I1.0 %Q2.0Start / Reset Flashing Lamp

S MN R TB : 1s MN.P : 5

MODIF : Y MN.V : 5

%MN0%MN1.R

S MN R TB : 1s MN.P : 2

MODIF : Y MN.V : 2

%MN1%MN0.R

11

RegisterRegisterRegisterRegister

The Register (R) function block is used to store up to 255 words of 16 bits in two different ways : Queue (first in, first out)

Stack (first in, last out)

R R E MODE:LIFO LEN : 16I F

O

%Ri

12

RegisterRegisterRegisterRegister

R R E

MODE : LIFOLEN : 16

IF

0

%Ri

RESET

MODE OF REGISTER

INPUT WORD

REGISTER LENGTH

EMPTY

OUTPUT WORD

OUTPUT WORD

13

Register - FIFO and LIFO (storage)Register - FIFO and LIFO (storage)Register - FIFO and LIFO (storage)Register - FIFO and LIFO (storage)

80

5080

50

20

20

%Ri.I

R R E MODE:FIFO LEN : 6I F

O

%Ri 80

50

20

75

75

14

Register - FIFO (retrieval)Register - FIFO (retrieval)Register - FIFO (retrieval)Register - FIFO (retrieval)

%Ri.O

R R E MODE:FIFO LEN : 6I F

O

%Ri

80

50

20

75

5020

80

7575

2080

Stack Memory

15

Register - LIFO (retrieval)Register - LIFO (retrieval)Register - LIFO (retrieval)Register - LIFO (retrieval)

%Ri.O

R R E MODE:FIFO LEN : 6I F

O

%Ri 80

50

20

7575

80

50

2080

5020

Stack Memory

16

Series 7 TimerSeries 7 TimerSeries 7 TimerSeries 7 Timer

The Series 7 Timer (%Ti) function block is used to provide control for time-delayed actions. The value of this delay is programmable and can be modified via terminal

E T D TB : 1mnC

RT.P : 6MODIF :Y

T.V : 2

%Ti

17

E T D

TB : 1mnC

R T.P : 6 MODIF: Y

T.V : 3

%Ti

TIME BASE

MODIFICATIONSERIES 7 TIMER PRESET

CURRENT VALUE

RUNNING OUTPUT

TIMER OUTPUT DONE

CONTROL INPUT

SETTING INPUT

Series 7 TimerSeries 7 TimerSeries 7 TimerSeries 7 Timer

18

Series 7 Timer ExampleSeries 7 Timer ExampleSeries 7 Timer ExampleSeries 7 Timer Example

On-time delay

%I1.0 %Q2.0Start / Reset On-time delay coil

E T D TB : 1sC

R MN.P : 5

MODIF : Y MN.V : 5

%T0

19

Series 7 Timer ExampleSeries 7 Timer ExampleSeries 7 Timer ExampleSeries 7 Timer Example

Off-time delay

%I1.1 %Q2.1Start / Reset On-time delay coil

E T D TB : 1sC

R MN.P : 5

MODIF : Y MN.V : 5

%T1