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
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
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
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
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
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
Network 6:
MOVE
EN ENO
"Axis_1".Position IN "servo_db".
OUT1 "actual position"
Network 7:
MOVE
EN ENO
"Axis_1".Velocity IN "servo_db".
OUT1 "actual velocity"
Network 8:
%DB8
"MC_Reset_DB"
MC_Reset
EN ENO
%DB1 Done ...
"Axis_1" Axis Error ...
false Execute