EasyManua.ls Logo

Siemens Simatic S7 Series

Siemens Simatic S7 Series
726 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Open loop motion control
12.8 Axis of Motion example programs
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
529
12.8
Axis of Motion example programs
12.8.1
Axis of Motion simple relative move (cut-to-length application) example
The example program shows a simple relative move that uses the AXISx_CTRL and
AXISx_GOTO subroutines to perform a cut-to-length operation. This program does not
require an RP seek mode or a motion profile, and the length can be measured in either
pulses or engineering units. Enter the length (VD500) and target speed (VD504). When I0.0
(Start) turns on, the machine starts. When I0.1 (Stop) turns on, the machine finishes the
current operation and stops. When I0.2 (E_Stop) turns on, the machine aborts any motion
and immediately stops.
Table 12- 33 Example: Axis of Motion simple relative move (cut-to-length application)
LAD/FBD
Description
STL
Network 1:
Control instruction
LD SM0.0
= L60.0
LDN I0.2
= L63.7
LD L60.0
CALL AXIS0_CTRL,
L63.7, M1.0,
VB900, VD902,
VD906, V910.0
Network 2
:
Start puts machine into
automatic mode.
LD I0.0
AN I0.2
EU
S Q0.2, 1
S M0.1, 1
Network 3:
E_Stop: Stops immediately
and turns off automatic
mode.
LD I0.2
R Q0.2, 1

Table of Contents

Other manuals for Siemens Simatic S7 Series

Related product manuals