Home Page Icon
Home Page
Table of Contents for
Cover Page
Close
Cover Page
by Murat Uzam
Building a Programmable Logic Controller with a PIC16F648A Microcontroller
Cover Page
Half title
title
copy
dedication
preface
ack
fmchapter
fmchapter
Preface
1 Hardware of the PIC16F648A-Based PLC
2 Basic Software
2.1 Basic Software Structure
2.1.1 Variable Definitions
2.1.2 Macro HC165
2.1.3 Macro HC595
2.2 Elimination of Contact Bouncing Problem in the PIC16F648A-Based PLC
2.2.1 Contact Bouncing Problem
2.2.2 Understanding a Generic Single I/O Contact Debouncer
2.2.3 Debouncer Macros dbncrO and dbncrl
2.3 Basic Macros of the PIC16F648A-Based PLC
2.3.1 Macro initialize
2.3.2 Macro get_inputs
2.3.3 Macro send_outputs
2.4 Example Program
3 Contact and Relay-Based Macros
3.1 Macro Id (load)
3.2 Macro ld_not (load not)
3.3 Macro not
3.4 Macro or
3.5 Macro or_not
3.6 Macro nor
3.7 Macro and
3.8 Macro and_not
3.9 Macro nand
3.10 Macro xor
3.11 Macro xor_not
3.12 Macro xnor
3.13 Macro out
3.14 Macro out_not
3.15 Macro in_out
3.16 Macro inv_out
3.17 Macro _set
3.18 Macro _reset
3.19 Examples for Contact and Relay-Based Macros
4 Flip-Flop Macros
4.1 Macro r_edge (Rising Edge Detector)
4.2 Macro f_edge (Falling Edge Detector)
4.3 Macro latchl (D Latch with Active High Enable)
4.4 The Macro latchO (D Latch with Active Low Enable)
4.5 Macro dff_r (Rising Edge Triggered D Flip-Flop)
4.6 Macro dff_f (Falling Edge Triggered D Flip-Flop)
4.7 Macro tff_r (Rising Edge Triggered T Flip-Flop)
4.8 Macro tff_f (Falling Edge Triggered T Flip-Flop)
4.9 Macro jkff_r (Rising Edge Triggered JK Flip-Flop)
4.10 Macro jkff_f (Falling Edge Triggered JK Flip-Flop)
4.11 Examples for Flip-Flop Macros
5 Timer Macros
5.1 On-Delay Timer (TON)
5.2 Macro Ton_8 (8-Bit On-Delay Timer)
5.3 Off-Delay Timer (TOF)
5.4 Macro Tof_8 (8-Bit Off-Delay Timer)
5.5 Pulse Timer (TP)
5.6 Macro TP 8 (8-Bit Pulse Timer)
5.7 Oscillator Timer (TOS)
5.8 Macro TOS_8 (8-Bit Oscillator Timer)
5.9 Example for Timer Macros
6 Counter Macros
6.1 Move and Load Macros
6.2 Counter Macros
6.3 Up Counter (CTU)
6.4 Macro CTU_8 (8-Bit Up Counter)
6.5 Down Counter (CTD)
6.6 Macro CTD_8 (8-Bit Down Counter)
6.7 Up/Down Counter (CTUD)
6.8 Macro CTUD_8 (8-Bit Up/Down Counter)
6.9 Examples for Counter Macros
7 Comparison Macros
7.1 Macro R1_GT_R2
7.2 Macro R1_GE_R2
7.3 Macro R1_EQ_R2
7.4 Macro R1_LT_R2
7.5 Macro R1_LE_R2
7.6 Macro R1_NE_R2
7.7 Macro R_GT_K
7.8 Macro R_GE_K
7.9 Macro R_EQ_K
7.10 Macro R_LT_K
7.11 Macro R_LE_K
7.12 Macro R_NE_K
7.13 Examples for Comparison Macros
8 Arithmetical Macros
8.1 Macro R1addR2
8.2 Macro RaddK
8.3 Macro R1subR2
8.4 Macro RsubK
8.5 Macro incR
8.6 Macro decR
8.7 Examples for Arithmetical Macros
9 Logical Macros
9.1 Macro R1andR2
9.2 Macro RandK
9.3 Macro R1nandR2
9.4 Macro RnandK
9.5 Macro R1orR2
9.6 Macro RorK
9.7 Macro R1norR2
9.8 Macro RnorK
9.9 Macro R1xorR2
9.10 Macro RxorK
9.11 Macro R1xnorR2
9.12 Macro RxnorK
9.13 Macro inv_R
9.14 Example for Logical Macros
10 Shift and Rotate Macros
10.1 Macro shift_R
10.2 Macro shift_L
10.3 Macro rotate_R
10.4 Macro rotate_L
10.5 Macro Swap
10.6 Examples for Shift and Rotate Macros
11 Multiplexer Macros
11.1 Macro mux_2_1
11.2 Macro mux_2_1_E
11.3 Macro mux_4_1
11.4 Macro mux_4_l_E
11.5 Macro mux_8_1
11.6 Macro mux_8_l_E
11.7 Examples for Multiplexer Macros
12 Demultiplexer Macros
12.1 Macro Dmux_1_2
12.2 Macro Dmux_1_2_E
12.3 Macro Dmux_1_4
12.4 Macro Dmux_1_4_E
12.5 Macro Dmux_l_8
12.6 Macro Dmux_1_8_E
12.7 Examples for Demultiplexer Macros
13 Decoder Macros
13.1 Macro decod_1_2
13.2 Macro decod_1_2_AL
13.3 Macro decod_1_2_E
13.4 Macro decod_1_2_E_AL
13.5 Macro decod_2_4
13.6 Macro decod_2_4_AL
13.7 Macro decod_2_4_E
13.8 Macro decod_2_4_E_AL
13.9 Macro decod_3_8
13.10 Macro decod_3_8_AL
13.11 Macro decod_3_8_E
13.12 Macro decod_3_8_E_AL
13.13 Examples for Decoder Macros
14 Priority Encoder Macros
14.1 Macro encod_4_2_p
14.2 Macro encod_4_2_p_E
14.3 Macro encod_8_3_p
14.4 Macro encod_8_3_p_E
14.5 Macro encod_dec_bcd_p
14.6 Macro encod_dec_bcd_p_E
14.7 Examples for Priority Encoder Macros
15 Application Example
15.1 Remotely Controlled Model Gate System
15.2 Control Scenarios for the Model Gate System
15.3 Solutions for the Control Scenarios
15.3.1 Solution for the First Scenario
15.3.2 Solution for the Second Scenario
15.3.3 Solution for the Third Scenario
15.3.4 Solution for the Fourth Scenario
15.3.5 Solution for the Fifth Scenario
15.3.6 Solution for the Sixth Scenario
15.3.7 Solution for the Seventh Scenario
15.3.8 Solution for the Eighth Scenario
About the CD-ROM
References
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Half title
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset