User:Ozcons

OZCONS ( you can visit www.ozcons.110mb.com website )

PLC examples.

1 )This project is about motor control. Its STL codes are below.

PROGRAM RUNNING-SUCCESFULLY-No error

Network 1 // START MOTORS ( CONDITIONS )

LD    I0.1

O     Q0.0

AN    T40

A     I0.5

=     Q0.0

Network 2

LD    Q0.0

AN    T39

TON   T37, 1200

Network 3

LD    T37

=     Q0.1

Network 4

LD    Q0.1

AN    M0.0

TON   T38, 1000

Network 5

LD    T38

=     Q0.2

Network 6 // STOP MOTORS ( CONDITIONS )

LDN   I0.0

ON    I0.2

ON    I0.3

ON    I0.4

O     M0.0

LD    Q0.2

O     M0.0

ALD

A     Q0.0

=     M0.0

Network 7

LD    M0.0

TON   T39, 1000

Network 8

LD    T39

TON   T40, 800

2 )This project is about ladder lighting. Its STL codes are below.

PROGRAM RUNNİNG-SUCCESFULLY- No error

Network 1

LD    I0.0

EU

S     Q0.0, 1

R     T37, 1

Network 2

LD    Q0.0

TON   T37, 600

Network 3

LD    T37

R     Q0.0, 1

Network 4

LD    I0.0

TON   T38, 1200

Network 5 // CALL O = Call Subroutines GO SBR_0 the other page

LD    T38

CALL  SBR0

LD    SM0.5

=     Q0.0