Siemens SIMATIC S7-200 System Manual page 275

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

Advertisement

PTOx_RUN Subroutine
The PTOx_RUN subroutine (Run Profile) commands the
PLC to execute the motion operation in a specific profile
stored in the configuration/profile table.
Turning on the EN bit enables the subroutine. Ensure that
the EN bit stays on until the Done bit signals that the
execution of the subroutine has completed.
Turning on the START parameter initiates execution of the
profile. For each scan when the START parameter is on and
the PTO is not currently active, the instruction activates the
PTO. To ensure that only one command is sent, use an
edge detection element to pulse the START parameter on.
The Profile parameter contains the number or the symbolic
name for the motion profile.
Turning on the Abort parameter commands the Position
module to stop the current profile and decelerate until the
motor comes to a stop.
The Done parameter turns on when the module completes
this instruction.
The Error parameter contains the result of this instruction.
See Table 9-7 for definitions of the error codes.
The C_Profile parameter contains the profile currently being executed by the Position module.
The C_Step parameter contains the step of the profile currently being executed.
The C_Pos parameter contains the current position of the module as the number of pulses if the
HSC was enabled in the wizard. Otherwise the current position is always 0.
Table 9-4
Parameters for the PTOx_RUN Instruction
Inputs/Outputs
START
Profile
Abort, Done
Error, C_Profile,
C_Step
C_Pos
Open Loop Motion Control with the S7-200
Data Types
Operands
BOOL
I, Q, V, M, SM, S, T, C, L, Power Flow
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *AC, *LD, Constant
BOOL
I, Q, V, M, SM, S, T, C, L
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *AC, *LD
DINT
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *AC, *LD
Chapter 9
261

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents