3 Contact and Relay-Based Macros
In this chapter, the following contact and relay-based macros are described:
ld
(load)ld_not
(load not)not
or
or_not
nor
and
and_not
nand
xor
xor_not
xnor
out
out_not
in_out
inv_out
_set
_reset
The ile deinitions inc, included within the CD-ROM attached to this book, contains all macros deined for the PIC16F648A-based PLC The contact and relay-based macros are defined to operate on Boolean (1-bit) variables. The working register W is utilized to transfer the information to or from the contact and relay-based macros, except for macros in_out
and inv_out
Let us now briefly consider these macros.
TABLE 3.1Truth Table and Symbols of the Macro ld
3.1 Macro Id
(load)
The truth table and symbols of the ...
Get Building a Programmable Logic Controller with a PIC16F648A Microcontroller now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.