Siemens SIMATIC S7-200 System Manual page 280

Programmable controller
Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

S7-200 Programmable Controller System Manual
Programming the Position Module
STEP 7--Micro/WIN provides easy-to-use tools for configuring and programming the Position
module. Simply follow these steps:
1.
Configure the Position module. STEP 7--Micro/WIN provides a Position Control wizard for
creating the configuration/profile table and the position instructions. See Configuring the
Position Module on page 270 for information about configuring the Position module.
2.
Test the operation of the Position Module. STEP 7--Micro/WIN provides an EM 253 control
panel for testing the wiring of the inputs and outputs, the configuration of the Position
module, and the operation of the motion profiles. See page 290 for information about the
EM 253 control panel.
3.
Create the program to be executed by the S7-200. The Position Control wizard
automatically creates the position instructions that you insert into your program. See
page 273 for information about the position instructions. Insert the following instructions into
your program:
--
To enable the Position module, insert a POSx_CTRL instruction. Use SM0.0 (Always
On) to ensure that this instruction is executed every scan.
--
To move the motor to a specific location, use a POSx_GOTO or a POSx_RUN
instruction. The POSx_GOTO instruction move to a location specified by the inputs
from your program. The POSx_RUN instruction executes the motion profiles you
configured with the Position Control wizard.
--
To use absolute coordinates for your motion, you must establish the zero position for
your application. Use the a POSx_RSEEK or a POSx_LDPOS instruction to establish
the zero position.
--
The other instructions that are created by the Position Control wizard provide
functionality for typical applications and are optional for your specific application.
4.
Compile your program and download the system block, data block, and program block to
the S7-200.
Tip
Refer to Appendix A for information about connecting the Position module to several common
stepper motor controllers.
Tip
To match the default settings in the Position Control wizard, set the DIP switches on the stepper
motor controller to 10,000 pulses per revolution.
266

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents