Anda di halaman 1dari 3

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:

%DB3
"MC_Power_DB"
%M1.2 MC_Power
"always true"
EN ENO
%DB1 Status ...
"Axis_1" Axis Error ...
"servo_db".
"drive enable" Enable
0 StopMode

Symbol Address Type Comment


"always true" %M1.2 Bool
"servo_db"."drive enable" Bool

Network 2:

%DB4
"MC_MoveJog_
DB"
MC_MoveJog

EN ENO
%DB1 InVelocity ...
"Axis_1" Axis Error ...

"Axis_1".
StatusBits. "servo_db".
Enable "jog forwards"
JogForward

"Axis_1".
StatusBits. "servo_db"."jof
Enable reverse"
JogBackward
10.0 Velocity

Symbol Address Type Comment


"Axis_1".StatusBits.Enable Bool Axis is enabled
"servo_db"."jof reverse" Bool
"servo_db"."jog forwards" Bool

Network 3:

%DB5
"MC_Home_DB"
MC_Home

EN ENO
%DB1 Done ...
"Axis_1" Axis Error ...

"Axis_1".
"servo_db". StatusBits.
"set home" Enable
Execute
"servo_db".
"home offset" Position
0 Mode

Symbol Address Type Comment


"Axis_1".StatusBits.Enable Bool Axis is enabled
"servo_db"."home offset" Real
"servo_db"."set home" Bool
Totally Integrated
Automation Portal

Network 4:

%DB6
"MC_
MoveAbsolute_
DB"

MC_MoveAbsolute

EN ENO
%DB1 Done ...
"Axis_1" Axis Error ...

"Axis_1".
StatusBits. "servo_db".
Enable "move absolute"
P Execute
%M10.0
"servo_db".
"Tag_1"
"absolute
position" Position

"servo_db".
"absolute
velocity" Velocity

"MC_
MoveAbsolute_ "servo_db".
DB".Done "move absolute"
R

Symbol Address Type Comment


"Axis_1".StatusBits.Enable Bool Axis is enabled
"MC_MoveAbsolute_DB".Done Bool Job is completed
"servo_db"."absolute position" Real
"servo_db"."absolute velocity" Real
"servo_db"."move absolute" Bool
"Tag_1" %M10.0 Bool

Network 5:

%DB7
"MC_
MoveRelative_
DB"

MC_MoveRelative

EN ENO
%DB1 Done ...
"Axis_1" Axis Error ...

"Axis_1".
StatusBits. "servo_db".
Enable "move relative"
P Execute
%M10.1
"servo_db".
"Tag_2"
"relative
position" Distance

"servo_db".
"relative
velocity" Velocity

Symbol Address Type Comment


"Axis_1".StatusBits.Enable Bool Axis is enabled
"servo_db"."move relative" Bool
"servo_db"."relative position" Real
"servo_db"."relative velocity" Real
"Tag_2" %M10.1 Bool

Network 6:

MOVE
EN ENO
"Axis_1".Position IN "servo_db".
OUT1 "actual position"

Symbol Address Type Comment


"Axis_1".Position Real Current axis position
"servo_db"."actual position" Real

Network 7:

MOVE
EN ENO
"Axis_1".Velocity IN "servo_db".
OUT1 "actual velocity"

Symbol Address Type Comment


"Axis_1".Velocity Real Current axis velocity
"servo_db"."actual velocity" Real
Totally Integrated
Automation Portal

Network 8:

%DB8
"MC_Reset_DB"
MC_Reset

EN ENO
%DB1 Done ...
"Axis_1" Axis Error ...
false Execute

Symbol Address Type Comment

Anda mungkin juga menyukai