Totally Integrated
Automation Portal
tp api / PLC_1 [CPU 313C-2 DP] / 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 Offset Default value Comment
Temp
OB1_EV_CLASS Byte 0.0 Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
OB1_SCAN_1 Byte 1.0 1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
OB1_PRIORITY Byte 2.0 Priority of OB Execution
OB1_OB_NUMBR Byte 3.0 1 (Organization block 1, OB1)
OB1_RESERVED_1 Byte 4.0 Reserved for system
OB1_RESERVED_2 Byte 5.0 Reserved for system
OB1_PREV_CYCLE Int 6.0 Cycle time of previous OB1 scan (milliseconds)
OB1_MIN_CYCLE Int 8.0 Minimum cycle time of OB1 (milliseconds)
OB1_MAX_CYCLE Int 10.0 Maximum cycle time of OB1 (milliseconds)
OB1_DATE_TIME Date_And_Time 12.0 Date and time OB1 started
Constant
Network 1:
%I1.3
%I1.6 "palette a %M0.0
"dcy" l'entree" "m"
%M0.0
"m"
Symbol Address Type Comment
"dcy" %I1.6 Bool
"m" %M0.0 Bool
"palette a l'entree" %I1.3 Bool
Network 2:
%M0.0 %M0.1 %Q1.0
"m" "x" "avance tapis"
Symbol Address Type Comment
"avance tapis" %Q1.0 Bool
"m" %M0.0 Bool
"x" %M0.1 Bool
Network 3:
%I1.4
%M0.0 "palette a la %Q0.1
"m" sortie" "descente verrou"
Symbol Address Type Comment
"descente verrou" %Q0.1 Bool
"m" %M0.0 Bool
"palette a la sortie" %I1.4 Bool
Network 4:
%DB1
"IEC_Timer_0_DB"
%M0.0 TON %M0.1
"m" Time "x"
IN Q
T#1.5s PT ET ...
Symbol Address Type Comment
"m" %M0.0 Bool
Totally Integrated
Automation Portal
Symbol Address Type Comment
"x" %M0.1 Bool
Network 5:
%M0.1 %Q0.0
"x" "retation bras"
Symbol Address Type Comment
"retation bras" %Q0.0 Bool
"x" %M0.1 Bool
Network 6:
%I0.4 %I0.5 %Q0.2
"bras a droite" "capteur de vide" "descente bras"
Symbol Address Type Comment
"bras a droite" %I0.4 Bool
"capteur de vide" %I0.5 Bool
"descente bras" %Q0.2 Bool
Network 7:
%Q0.2 %M0.2 %Q0.3
"descente bras" "y" "ventouse"
%I0.6
"bras en haut"
Symbol Address Type Comment
"bras en haut" %I0.6 Bool
"descente bras" %Q0.2 Bool
"ventouse" %Q0.3 Bool
"y" %M0.2 Bool
Network 8:
%DB2
"IEC_Timer_0_
DB_1"
%Q0.2 TON %M0.2
"descente bras" Time "y"
IN Q
T#1s PT ET ...
Symbol Address Type Comment
"descente bras" %Q0.2 Bool
"y" %M0.2 Bool
Network 9:
%I0.3 %I0.5 %Q0.2
"bras a gauche" "capteur de vide" "descente bras"
Symbol Address Type Comment
"bras a gauche" %I0.3 Bool
"capteur de vide" %I0.5 Bool
"descente bras" %Q0.2 Bool
Network 10:
%I1.4
%M0.2 "palette a la %Q1.0
"y" sortie" "avance tapis"
Symbol Address Type Comment
"avance tapis" %Q1.0 Bool
"palette a la sortie" %I1.4 Bool
Totally Integrated
Automation Portal
Symbol Address Type Comment
"y" %M0.2 Bool