0% found this document useful (0 votes)
14 views7 pages

Creating A Function Block

The document outlines the structure and properties of various program blocks within the Totally Integrated Automation Portal, including the Main program, Motor_Block, and Area-specific function blocks. It details input and output parameters, data types, and network configurations for motor control functions. Additionally, it includes information about an IEC timer database used in the automation process.

Uploaded by

Dil Nawaz
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)
14 views7 pages

Creating A Function Block

The document outlines the structure and properties of various program blocks within the Totally Integrated Automation Portal, including the Main program, Motor_Block, and Area-specific function blocks. It details input and output parameters, data types, and network configurations for motor control functions. Additionally, it includes information about an IEC timer database used in the automation process.

Uploaded by

Dil Nawaz
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

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

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:

%FC1
"Area 01 For_Rev_Motors"
EN ENO
Totally Integrated
Automation Portal

Program blocks
Motor_Block [FB1]
Motor_Block Properties
General
Name Motor_Block Number 1 Type FB Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Input
Forward Start Bool false Non-retain True True True False
Reverse Start Bool false Non-retain True True True False
Stop Bool false Non-retain True True True False
Emergency Bool false Non-retain True True True False
Interlock Bool false Non-retain True True True False
Drive Ready Bool false Non-retain True True True False
Drive Fault Bool false Non-retain True True True False
Reset Bool false Non-retain True True True False
Output
Forward CMD Bool false Non-retain True True True False
Reverse CMD Bool false Non-retain True True True False
Drive_Fault Bool false Non-retain True True True False
InOut
Static
Fault Bool false Non-retain True True True False
Temp
Constant

Network 1: CREATION OF FUNCTION BLOCKS (ISCOP)

#"Forward Start" #"Reverse CMD" #Stop #Emergency #Interlock #"Drive Ready" #Drive_Fault #"Forward CMD"

#"Forward CMD"

Network 2: www.plctrainingcentre.com +923330274741

#"Reverse Start" #"Forward CMD" #Stop #Emergency #Interlock #"Drive Ready" #Drive_Fault #"Reverse CMD"

#"Reverse CMD"

Network 3: CREATION OF FUNCTION BLOCKS (ISCOP)

%DB1
"IEC_Timer_0_DB"
TON
#Drive_Fault Time #Drive_Fault
IN Q S
T#3s PT ET T#0ms
#"Drive Ready"

Network 4: www.plctrainingcentre.com +923330274741

#Reset #Drive_Fault
R
Totally Integrated
Automation Portal

Program blocks
Area 01 For_Rev_Motors [FC1]
Area 01 For_Rev_Motors Properties
General
Name Area 01 For_Rev_Motors Number 1 Type FC Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value Comment


Input
Output
InOut
Temp
Constant
Return
Area 01 For_Rev_Motors Void

Network 1: www.plctrainingcentre.com (ISCOP)

%DB2
"Area01_M01"
%FB1
"Motor_Block"
EN ENO
%M0.0 %Q0.0
"Tag_1" Forward CMD "Tag_9"
Forward Start %Q0.1
Reverse CMD "Tag_10"
%M0.1 %Q0.2
"Tag_2" Drive_Fault "Tag_11"
Reverse Start

%M0.2
"Tag_3"
Stop

%M0.3
"Tag_4"
Emergency

%M0.4
"Tag_5"
Interlock

%M0.5
"Tag_6"
Drive Ready

%M0.6
"Tag_7"
Drive Fault

%M0.7
"Tag_8"
Reset

Network 2: ISCOP (+923330274741)


Totally Integrated
Automation Portal

%DB3
"Area01_M02"
%FB1
"Motor_Block"
EN ENO
%M1.0 %Q0.3
"Tag_12" Forward CMD "Tag_20"
Forward Start %Q0.4
Reverse CMD "Tag_21"
%M1.1 %Q0.5
"Tag_13" Drive_Fault "Tag_22"
Reverse Start

%M1.2
"Tag_14"
Stop

%M1.3
"Tag_15"
Emergency

%M1.4
"Tag_16"
Interlock

%M1.5
"Tag_17"
Drive Ready

%M1.6
"Tag_18"
Drive Fault

%M1.7
"Tag_19"
Reset
Totally Integrated
Automation Portal

Program blocks
Area01_M01 [DB2]
Area01_M01 Properties
General
Name Area01_M01 Number 2 Type DB Language DB
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Input
Forward Start Bool false False True True True False
Reverse Start Bool false False True True True False
Stop Bool false False True True True False
Emergency Bool false False True True True False
Interlock Bool false False True True True False
Drive Ready Bool false False True True True False
Drive Fault Bool false False True True True False
Reset Bool false False True True True False
Output
Forward CMD Bool false False True True True False
Reverse CMD Bool false False True True True False
Drive_Fault Bool false False True True True False
InOut
Static
Fault Bool false False True True True False
Totally Integrated
Automation Portal

Program blocks
Area01_M02 [DB3]
Area01_M02 Properties
General
Name Area01_M02 Number 3 Type DB Language DB
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Input
Forward Start Bool false False True True True False
Reverse Start Bool false False True True True False
Stop Bool false False True True True False
Emergency Bool false False True True True False
Interlock Bool false False True True True False
Drive Ready Bool false False True True True False
Drive Fault Bool false False True True True False
Reset Bool false False True True True False
Output
Forward CMD Bool false False True True True False
Reverse CMD Bool false False True True True False
Drive_Fault Bool false False True True True False
InOut
Static
Fault Bool false False True True True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


IEC_Timer_0_DB [DB1]
IEC_Timer_0_DB Properties
General
Name IEC_Timer_0_DB Number 1 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False

You might also like