hit counter script

Mc_Moverelative Instruction - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

102BTechnology instructions
9.3 Basic motion control
9.3.2.6

MC_MoveRelative instruction

Table 9- 35
MC_MoveRelative instruction
LAD / FBD
STEP 7 automatically creates the DB when you insert the instruction.
1
In the SCL example, "MC_MoveRelative_DB" is the name of the instance DB.
2
Table 9- 36
Parameters for the MC_MoveRelative instruction
Parameter and type
Axis
Execute
Distance
Velocity
Done
Busy
CommandAborted
Error
ErrorID
ErrorInfo
356
SCL
"MC_MoveRelative_DB"(
Axis:=_multi_fb_in_,
Execute:=_bool_in_,
Distance:=_real_in_,
Velocity:=_real_in_,
Done=>_bool_out_,
Busy=>_bool_out_,
CommandAborted=>_bool_out_,
Error=>_bool_out_,
ErrorID=>_word_out_,
ErrorInfo=>_word_out_);
Data type
IN
TO_Axis_1
IN
Bool
IN
Real
IN
Real
OUT
Bool
OUT
Bool
OUT
Bool
OUT
Bool
OUT
Word
OUT
Word
Description
Axis technology object
Start of the task with a positive edge (Default value: False)
Travel distance for the positioning operation (Default value: 0.0)
Limit values: -1.0e
≤ Distance ≤ 1.0e
12
Velocity of axis (Default value: 10.0)
This velocity is not always reached on account of the configured
acceleration and deceleration and the distance to be traveled.
Limit values: Start/stop velocity ≤ Velocity ≤ maximum velocity
TRUE = Target position reached
TRUE = The task is being executed.
TRUE = During execution the task was aborted by another task.
TRUE = An error has occurred during execution of the task. The
cause of the error can be found in parameters "ErrorID" and
"ErrorInfo".
Error ID for parameter "Error" (Default value: 0000)
Error info ID for parameter "ErrorID" (Default value: 0000)
Description
Use the MC_MoveRelative
instruction to start a positioning
motion relative to the start position.
In order to use the
MC_MoveRelative instruction, the
axis must first be enabled.
12
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents

Save PDF