Another example
This presentation is the property of its rightful owner.
Sponsored Links
1 / 15

Another Example PowerPoint PPT Presentation


  • 30 Views
  • Uploaded on
  • Presentation posted in: General

Another Example. Another Example. oCYL=0. /iSENSOR •iRET. S0. iSENSOR. S2. oCYL=0. S1. iEXT. oCYL=1. Another Example. oCYL=0. /iSENSOR •iRET. S0. iSENSOR. S2. oCYL=0. S1. iEXT. oCYL=1. Example #2 State Diagram. CurrStiSENSORiEXTiRET |NextSt

Download Presentation

Another Example

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Another example

Another Example


Another example1

Another Example


Another example2

oCYL=0

/iSENSOR•iRET

S0

iSENSOR

S2

oCYL=0

S1

iEXT

oCYL=1

Another Example


Example 2 state diagram

oCYL=0

/iSENSOR•iRET

S0

iSENSOR

S2

oCYL=0

S1

iEXT

oCYL=1

Example #2 State Diagram

CurrStiSENSORiEXTiRET |NextSt

------------------------------------

S00XX |S0

S01XX |S1

S1X0X |S1

S1X1X |S2

S20X0 |S2

S20X1 |S0

S21XX |S2


Example 2 state diagram1

oCYL=0

/iSENSOR•iRET

S0

iSENSOR

S2

oCYL=0

S1

iEXT

oCYL=1

Example #2 State Diagram

CurrStiSENSORiEXTiRET |NextSt

------------------------------------

S00XX |S0

S01XX |S1

S1X0X |S1

S1X1X |S2

S20X0 |S2

S20X1 |S0

S21XX |S2

cS0 = cS2•/iSENSOR•iRET + cS0•/iSENSOR + /cS0•/cS1•/cS2

cS1 = cS0•iSENSOR + cS1•/iEXT

cS2 = cS1•iEXT + cS2•/(/iSENSOR•iRET)

= cS1•iEXT + cS2•(iSENSOR + /iRET)


State machines in ladder logic

State Machines in Ladder Logic

  • Pure relay logic - traditional design:

    • 2 states = 1 coil

    • 3-4 states = 2 coils

    • 5-8 states = 3 coils, etc.

    • difficult to debug, modify and document

  • Pure relay logic - “one-hot” design

    • 1 coil per state

    • easier to debug, modify, and document

    • watch out for “illegal” states

  • RLL-Plus

    • “Stages”

    • JMP “coils”

    • easiest to write and maintain

    • not available in all brands of PLC’s


Example 2 state diagram2

oCYL=0

/iSENSOR•iRET

S0

iSENSOR

S2

oCYL=0

S1

iEXT

oCYL=1

Example #2 State Diagram

cS0 = cS2•/iSENSOR•iRET

+ cS0•/iSENSOR

+ /cS0•/cS1•/cS2

cS1 = cS0•iSENSOR + cS1•/iEXT

cS2 = cS1•iEXT + cS2•iSENSOR

+ cS2•/iRET)


Ex 2 rll plus stages

oCYL=0

/iSENSOR•iRET

S0

iSENSOR

S2

oCYL=0

S1

iEXT

oCYL=1

Ex #2 - RLL-Plus Stages


Multi state example

Multi-state Example

  • When sensor detects block; clamp block, drill hole, shift, drill 2nd hole, shift back, release clamp


Inputs and outputs

iSENSOR block present

iDRILLDN drill is down

iDRILLUP drill is up

iCLAMPED fully clamped

iRELEASED fully unclamped

iPOS1 unshifted

iPOS2 shifted

oDRILL start drilling

oCLAMP activate clamp

oSHIFT shift block holder

Inputs and Outputs


State diagrams

State Diagrams

  • One state per “action”

  • Look for “wait” states needed


State diagram

State Diagram


Rll plus

RLL-Plus


Rll plus1

RLL-Plus


Rll plus2

RLL-Plus


  • Login