Axisx_Ldpos Subroutine - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Turn on the START parameter to send a LDOFF command to the Axis of Motion. For each
scan when the START parameter is on and the Axis of Motion is not currently busy, the
subroutine sends a LDOFF command to the Axis of Motion. To ensure that only one
command is sent, use an edge detection element to pulse the START parameter on.
The Done parameter turns on when the Axis of Motion completes this subroutine.
The Error parameter (Page 659) contains the result of this subroutine.
12.6.8

AXISx_LDPOS subroutine

Table 12- 18 AXISx_LDPOS
LAD / FBD
STL
CALL AXISx_LDPOS,
START, New_Pos,
Done, Error, C_Pos
Table 12- 19 Parameters for the AXISx_LDPOS subroutine
Inputs/Outputs
START
New_Pos, C_Pos
Done
Error
Turn on the EN bit to enable the subroutine. Ensure that the EN bit stays on until the Done
bit signals that the execution of the subroutine has completed.
Turn on the START parameter to send a LDPOS command to the Axis of Motion. For each
scan when the START parameter is on and the Axis of Motion is not currently busy, the
subroutine sends a LDPOS command to the Axis of Motion. To ensure that only one
command is sent, use an edge detection element to pulse the START parameter on.
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
12.6 Subroutines created by the Motion wizard for the Axis of Motion
Description
The AXISx_LDPOS subroutine (Load Position) changes the current
position value in the Axis of Motion to a new value. You can also use
this subroutine to establish a new zero position for any absolute move
command.
Data type
Operands
BOOL
I, Q, V, M, SM, S, T, C, L, Power Flow
DINT, REAL
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *AC, *LD
BOOL
I, Q, V, M, SM, S, T, C, L
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *AC, *LD
Open loop motion control
629

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents