Axisx_Cache Subroutine - Siemens Simatic S7 Series System Manual

Hide thumbs Also See for Simatic S7 Series:
Table of Contents

Advertisement

12.6.12

AXISx_CACHE subroutine

Table 12- 26 AXISx_CACHE
LAD / FBD
STL
CALL AXISx_CACHE,
START, Profile,
Done, Error
Table 12- 27 Parameters for the AXISx_CACHE subroutine
Inputs/Outputs
START
Profile
Abort, Done
Error, C_Profile, C_Step
C_Pos, C_Speed
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 CACHE 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 CACHE 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 Profile parameter contains the number or the symbolic name for the motion profile. The
"Profile" input must be between 0 - 31. If not, the subroutine will return an error.
The Done parameter turns on when the Axis of Motion completes this subroutine.
The Error parameter (Page 545) contains the result of this subroutine.
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
12.6 Subroutines created by the Motion wizard for the Axis of Motion
Description
The AXISx_CACHE subroutine (Cache Profile) commands a caching of
a motion profile before the profile is executed. This allows you to pre-
cache needed commands before execution. Pre-caching reduces the
amount of time and provides consistency between executing a motion
instruction and starting the move.
Data type
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, Con-
stant
BOOL
I, Q, V, M, SM, S, T, C, L
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *AC, *LD
DINT, REAL
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *AC, *LD
Open loop motion control
519

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart series

Table of Contents