Professional Documents
Culture Documents
Lec10 PLC
Lec10 PLC
Engineering Collage
Dep. Of Electronic & Communication Engineering
- Memo ( marker) √
- Set Rest flip flop √
-Timers
- Counters
- Comparison Instructions
- Negative & Positive Edge
- Arithmetic Functions
- Jump Instructions
- Examples
Example
May be
Q0.1
Binary
Number
Example:
In an automated system for sorting good work pieces from defected
work piece, two sensors are available. One of them is activated each
time a work piece enters the system (I0.0). The other is activated each
time a defected work piece is rejected from the system (I0.1). It is
desired to start a conveyor belt (Q0.0) with “Start” push button that
has the address (I1.0) and stop it once eight good pieces have passed
the test or once “Stop” push button (I1.1-NC-) is pressed. Each time a
defected work piece passes the system, a flipper (Q0.1) must be
activated for 4 sec to reject the work piece
Example
(Figure A ) shows a system with two conveyor belts and a temporary
storage area in between them. Conveyor belt 1 delivers packages to the
storage area. A photoelectric barrier at the end of conveyor belt 1 near the
storage area determines how many packages are delivered to the storage
area. Conveyor belt 2 transports packages from the temporary storage area
to a loading dock where trucks take the packages away for delivery to
customers. A photoelectric barrier at the end of conveyor belt 2 near the
storage area determines how many packages leave the storage area to go to
the loading dock. A display panel with five lamps indicates the fill level of
the temporary storage area. Figure A show the ladder logic program that
activates the indicator lamps on the display panel
(Figure A )
Invert Power Flow
Stamp
Example
- Run two motors by one (1Push Bottom)
Integer Math Instructions
Add Integer
A signal state of 1 at the Enable (EN) input activates the Add
Integer instruction. This instruction adds inputs IN1 and IN2. The
result can be scanned at OUT. If the result is outside the
permissible range for an integer, the OV and OS bit of the status
word are 1 and the ENO is 0
Network 2: Input word IW0 is added to shared data word DBW3 (data block
must be defined and opened) and the sum is loaded into memory word MW100.
MW100 is then multiplied by 15 and the answer stored in memory word MW102.
MW102 is divided by MW0 with the result stored in MD4. As long as all results
are in the permissible range of each instruction, the ENO passes a signal state of
1 to the next box.
Establishing the Exponential Value of a Floating-Point Number
The box SIN is activated when I 0.0 = 1. The result of SIN (MD0)
is stored in the memory double word MD10. If the result is outside
of the permissible area for floating-point numbers or if the signal
state of I 0.0 = 0, output Q 4.0 is set.
Establishing the Trigonometrical Functions of Angles as Floating-
Point Numbers
Establishing the Natural Logarithm of a Floating-Point Number