PLC-LADDER LOGIC Examples-PIC16F877

Photo of author

By Jackson Taylor

Lets start programming with our own PLC using open source ladder logic LDMicro.

Thanks to  LDMicro. developer .

Here i used PIC16F877 Microcontroller

  • 16.000000 MHz crystal
  • Digital input and output

1) 40th(RBO ) pin in Microcontroller will be high when a digital high is given at pin 33( RB0)

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

LADDER DIAGRAM:

    XRBO                YRB7
1 ||-------] [--------------( )-------||
   ||                        ||
   ||                        ||
   ||                        ||
   ||------[END]-------------||
   ||                        ||
   ||                        ||

I/O ASSIGNMENT:

NameTypePin
XRBOdigital in33
YRB7digital out40

2) Input negated digital switch( 40th(RBO ) pin in Microcontroller will be high when a digital low is given at pin 33( RB0))

                       ||   XRB0        YRB7   ||
1 ||-------]/[--------------( )-------||
   ||                         ||
   ||                         ||
   ||                         ||
   ||------[END]-------------||
   ||                         ||

I/O ASSIGNMENT:

NameTypePin
XRB0digital in33
YRB7digital out40

Other examples coming soon

See also
TPS75933- 3.3-V Fixed-Output Voltage Regulator

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works