102BTechnology instructions
9.3 Basic motion control
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
365
9.3.2.10
MC_ChangeDynamic
Table 9- 44 MC_ChangeDynamic instruction
LAD / FBD
SCL
Description
"MC_ChangeDynamic_DB"(
Execute:=_bool_in_,
ChangeRampUp:=_bool_in_,
RampUpTime:=_real_in_,
ChangeRampDown:=_bool_in_,
RampDownTime:=_real_in_,
ChangeEmergency:=_bool_in_,
EmergencyRampTime:=_real_in_,
ChangeJerkTime:=_bool_in_,
JerkTime:=_real_in_,
Done=>_bool_out_,
Error=>_bool_out_,
ErrorID=>_word_out_,
ErrorInfo=>_word_out_);
Changes the dynamic settings of
a motion control axis.:
Value for acceleration change
Value for delay change
Value for emergency stop-
delay change
Jerk limitation activate /
deactivate
Value for jerk limitation
change
1
STEP 7 automatically creates the DB when you insert the instruction.
2
In the SCL example, "MC_ChangeDynamic_DB" is the name of the instance DB.
Table 9- 45 Parameters for the MC_ChangeDynamic instruction
Parameter and type
Data type
Description
Axis
IN
TO_Axis_1
Axis technology object
Execute
IN
Bool
Start execution on rising edge. Inital value: FALSE
ChangeRampUp
IN
Bool
TRUE = Change Ramp up time to the value specified by
parameter RampUp Time. Inital value: FALSE
RampUpTime
IN
Real
Time (in seconds) without jerk limitation to accelerate from
standstill to the configured maximum speed. Inital value: 5.00
You can see the status affected variable in the value of
<Axisname>. Config.DynamicDefaults.Acceleration.
ChangeRampDown
IN
Bool
TRUE Change the release time according to the input parameter
RampDownTime. Inital value: FALSE
RampDownTime
IN
Real
Time (in seconds) without jerk limitation to slow to a standstill
from the configured maximum speed. Inital value: 5.00
You can see the status of the affected variable in the value of
<Axisname>. Config.DynamicDefaults.Deceleration .
ChangeEmergency
IN
Bool
TRUE Change emergency stop time corresponding to the input
parameter EmergencyRampTime. Inital value: FALSE
EmergencyRampTime
IN
Real
Time (in seconds) without jerk limitation for the emergency stop
mode delay to go from the configured maximum speed to a
standstill. Inital value: 2.00
Status of the affected variable stored in: <Axisname>.
Config.DynamicDefaults.EmergencyDeceleration