0% found this document useful (0 votes)
173 views3 pages

Ladder Code

This document provides a summary of the main program and logic blocks in a PLC program for an automated conveyor sorting system. The main program contains 5 networks that control the conveyor motors, count boxes on the conveyor, store count and weight values in arrays, and track the number of boxes exiting on the left and right sides. Input and output variables such as sensors and conveyor motors are defined for use in the networks along with temporary values like counters.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
173 views3 pages

Ladder Code

This document provides a summary of the main program and logic blocks in a PLC program for an automated conveyor sorting system. The main program contains 5 networks that control the conveyor motors, count boxes on the conveyor, store count and weight values in arrays, and track the number of boxes exiting on the left and right sides. Input and output variables such as sensors and conveyor motors are defined for use in the networks along with temporary values like counters.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Totally Integrated

Automation Portal

Sorting_weight_Udemy / PLC_1 [CPU 1212C AC/DC/Rly] / Program blocks


Main [OB1]
Main Properties
General
Name Main Number 1 Type OB Language LAD
Numbering automatic
Information
Title "Main Program Sweep (Cy‐ Author Comment Family
cle)"
Version 0.1 User-defined
ID

Main
Name Data type Default value Comment
Input
Initial_Call Bool Initial call of this OB
Remanence Bool =True, if remanent data are available
Temp
Constant

Network 1: Start/Stop main Conveyor

%I1.0 %Q0.0
"Start" "Entry Conveyor"
S

%Q0.1
"Roller forward"
S

%Q0.4
"Front Conveyor"
S

%Q0.5
"Left Conveyor"
S

%Q0.6
"Right COnveyor"
S

%Q0.7
"Load Scale"
S

%I1.1 %Q0.0
"Stop" "Entry Conveyor"
RESET_BF
8

Symbol Address Type Comment


"Entry Conveyor" %Q0.0 Bool
"Front Conveyor" %Q0.4 Bool
"Left Conveyor" %Q0.5 Bool
"Load Scale" %Q0.7 Bool
"Right COnveyor" %Q0.6 Bool
"Roller forward" %Q0.1 Bool
"Start" %I1.0 Bool
"Stop" %I1.1 Bool

Network 2: Couting the Boxes

%DB3
"IEC_Counter_
0_DB"

%I0.0 CTU
"Tag_3" Int
N CU Q
%M0.0 "IEC_Counter_
"Falling Edge" 0_DB".CV
CV

"IEC_Counter_
0_DB".CV
==
Int R
3 PV
3

Symbol Address Type Comment


"Falling Edge" %M0.0 Bool
"IEC_Counter_0_DB".CV Int
"Tag_3" %I0.0 Bool

Network 3: Storing the values in Array


Totally Integrated
Automation Portal

%FC1
"Block_1"
EN ENO
%MW30 %Q0.2
"Tag_11" recipe left roller "Tag_2"
"IEC_Counter_ %Q0.3
0_DB".CV count right roller "Tag_4"
%ID100 %QD100
"Tag_7" weight weight_display "Tag_13"
%I0.1 temp "Weight".Weight
"Entry sensor"
P at_scale
%M0.1
"Rising Edge1"

Symbol Address Type Comment


"Entry sensor" %I0.1 Bool
"IEC_Counter_0_DB".CV Int
"Rising Edge1" %M0.1 Bool
"Tag_2" %Q0.2 Bool
"Tag_4" %Q0.3 Bool
"Tag_7" %ID100 Real
"Tag_11" %MW30 Int
"Tag_13" %QD100 DInt
"Weight".Weight Array

Network 4: Couting the boxes

%I0.2 ADD
"Exit left" Auto (UDInt)
P EN ENO
%M0.2 %QD104 %QD104
"Rising edge 2" "Left count" "Left count"
IN1 OUT
1 IN2

Symbol Address Type Comment


"Exit left" %I0.2 Bool
"Left count" %QD104 DWord
"Rising edge 2" %M0.2 Bool

Network 5:

%I0.3 ADD
"Exit right" Auto (UDInt)
P EN ENO
%M0.3 %QD108 %QD108
"Rising edge 3" "Right Count" "Right Count"
IN1 OUT
1 IN2

Symbol Address Type Comment


"Exit right" %I0.3 Bool
"Right Count" %QD108 DWord
"Rising edge 3" %M0.3 Bool

Network 6:

%I0.4 ADD
"Exit front" Auto (UDInt)
P EN ENO
%M0.4 %QD112 %QD112
"Rising Edge 4" "Forward Count" "Forward Count"
IN1 OUT
1 IN2

Symbol Address Type Comment


"Exit front" %I0.4 Bool
"Forward Count" %QD112 DWord
"Rising Edge 4" %M0.4 Bool

Network 7:

%I1.2
"Reset Counts" MOVE
EN ENO
0 IN %QD104
OUT1 "Left count"
%QD108
OUT2 "Right Count"
%QD112
OUT3 "Forward Count"

Symbol Address Type Comment


"Forward Count" %QD112 DWord
"Left count" %QD104 DWord
Totally Integrated
Automation Portal

Symbol Address Type Comment


"Reset Counts" %I1.2 Bool
"Right Count" %QD108 DWord

Network 8:

%I0.5 ADD
"Tag_8" Auto (Int)
P EN ENO
%M0.5 %MW30 %MW30
"Tag_9" "Tag_11" "Tag_11"
IN1 OUT
1 IN2

%MW30
"Tag_11"
MOVE
>=
Int EN ENO
0 IN %MW30
3
OUT1 "Tag_11"

CONV
Int to DInt
EN ENO
%MW30 %QD116
"Tag_11" IN OUT "Tag_12"

Symbol Address Type Comment


"Tag_8" %I0.5 Bool
"Tag_9" %M0.5 Bool
"Tag_11" %MW30 Int
"Tag_12" %QD116 DInt

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy