Mc_Moverelative (Position Axis Relatively) Instruction - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents
Technology instructions
9.3 Motion control
Override response
The MC_MoveAbsolute task can be
aborted by the following motion control
tasks:
• MC_Home Mode = 3
• MC_Halt
• MC_MoveAbsolute
• MC_MoveRelative
• MC_MoveVelocity
• MC_MoveJog
9.3.5.7

MC_MoveRelative (Position axis relatively) instruction

Table 9- 39
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- 40
Parameters for the MC_MoveRelative instruction
Parameter and type
Axis
Execute
Distance
Velocity
Done
Busy
466
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
The new MC_MoveAbsolute task aborts
the following active motion control tasks:
• MC_Home Mode = 3
• MC_Halt
• MC_MoveAbsolute
• MC_MoveRelative
• MC_MoveVelocity
• MC_MoveJog
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.
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, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents