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

CODE SortingByHeight Basic

The document outlines the structure and functionality of a Main Program Sweep (Cycle) in a Totally Integrated Automation Portal. It includes details on various networks for resetting states, loading processes, transferring boxes, and managing counters for right and left conveyors. Each network is defined with specific inputs, outputs, and conditions for operation.

Uploaded by

ketamjerai
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)
4 views3 pages

CODE SortingByHeight Basic

The document outlines the structure and functionality of a Main Program Sweep (Cycle) in a Totally Integrated Automation Portal. It includes details on various networks for resetting states, loading processes, transferring boxes, and managing counters for right and left conveyors. Each network is defined with specific inputs, outputs, and conditions for operation.

Uploaded by

ketamjerai
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

Totally Integrated

Automation Portal

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

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: Reset
Detect when Factory I/O starts running, reset state

%I1.5
"I_Factory_ %M0.0
Running" "Loading"
P R
%M2.5
"P_Factory_
Running" %M0.1
"LoaderBusy"
R

%M0.4
"HighBox"
R

%M0.2
"TransferingRight"
R

%M0.3
"TransferingLeft"
R
MOVE
EN ENO
0 IN OUT1 "RightCounter".CV

MOVE
EN ENO
0 IN OUT1 "LeftCounter".CV

%M0.5
"Factory
Restarting"

Network 2:

%M0.5
"Factory
Restarting" OUTPUTS
JMP

Network 3: Loading
Loading starts when the pallet is ready and the loader is not busy, ends when
loaded.
After save whether the loaded box is high or low

%I0.2 %M0.1 %M0.0


"I_Pallet_sensor" "LoaderBusy" "Loading"
S

Network 4:

%I0.3 %M0.0
"I_Loaded" "Loading"
R

Network 5:
Totally Integrated
Automation Portal

%I0.0 %M0.4
"I_High_sensor" "HighBox"
P S
%M1.0
"P_High_Sensor"

Network 6: Transfer
Decide where to transfer after loading.
Loader busy if loading or transfering

%M0.0 %M0.4 %M0.2


"Loading" "HighBox" "TransferingRight"
N S
%M1.1
"P_Loading"
%M0.4 %M0.3
"HighBox" "TransferingLeft"
S

%M0.4
"HighBox"
R

Network 7:

%I0.6 %M0.2
"I_At_right_entry" "TransferingRight"
P R
%M1.6
"P_At_right_entry"

Network 8:

%I0.4 %M0.3
"I_At_left_entry" "TransferingLeft"
P R
%M1.4
"P_At_left_entry"

Network 9:

%M0.2 %M0.1
"TransferingRight" "LoaderBusy"

%M0.3
"TransferingLeft"

%M0.0
"Loading"

Network 10: Right Conveyor


Increment number of boxes when starting the transfer
Decrement when exiting

%DB1
"RightCounter"
%M0.2 CTUD
"TransferingRight" Int
CU QU
QD false
%I0.7 CV 0
"I_At_right_exit" "RightCounter".CV
>
P CD
Int
%M1.7 false R
0
"P_At_right_exit" false LD
4 PV

Network 11: Left Conveyor


Increment number of boxes when starting the transfer
Decrement when exiting
Totally Integrated
Automation Portal

%DB2
"LeftCounter"
%M0.3 CTUD
"TransferingLeft" Int
CU QU
QD false
%I0.5 CV 0
"I_At_left_exit" "LeftCounter".CV
>
P CD
Int
%M1.5 false R
0
"P_At_left_exit" false LD
4 PV

Network 12: Outputs

OUTPUTS

%Q0.0
%I0.2 "O_Conveyor_
"I_Pallet_sensor" entry"

%M0.0
"Loading"

Network 13:

%M0.0 %Q0.1
"Loading" "O_Load"

Network 14:

%M0.2 %Q0.4
"TransferingRight" "O_Tranf_right"

Network 15:

%M0.3 %Q0.3
"TransferingLeft" "O_Transf_left"

Network 16:

%Q0.6
"O_Conveyor_
"RightCounter".CV right"
>
Int
0

Network 17:

%Q0.5
"LeftCounter".CV
"O_Conveyor_left"
>
Int
0

You might also like