Mc_Writeparam (Write Parameters Of A Technology Object) Instruction - Siemens SIMATIC S7-1200 Manual

Easy book
Hide thumbs Also See for SIMATIC S7-1200:
Table of Contents

Advertisement

Override response
An MC_ChangeDynamic command cannot be aborted by any other Motion Control
command.
A new MC_ChangeDynamic command does not abort any active Motion Control jobs.
Note
The input parameters "RampUpTime", "RampDownTime", "EmergencyRampTime" and
"RoundingOffTime" can be specified with values that makes the resultant axis parameters
"acceleration", "delay", "emergency stop-delay" and "jerk" outside the permissible limits.
Make sure you keep the MC_ChangeDynamic parameters within the limits of the dynamic
configuration settings for the axis technology object.
10.5.12

MC_WriteParam (write parameters of a technology object) instruction

You use the MC_WriteParam instruction to write a select number of parameters to change
the functionality of the axis from the user program.
Table 10- 29 MC_WriteParam instruction
LAD / FBD
STEP 7 automatically creates the DB when you insert the instruction.
1
In the SCL example, "MC_WriteParam_DB" is the name of the instance DB.
2
You can write to the parameters that are public. You cannot write to "MotionStatus" and
"StatusBits". The valid parameters are listed in the table below:
Writeable parameter name
Actor.InverseDirection
Actor.DirectionMode
Actor.DriveParameter.PulsesPerDriveRevolution
Sensor[1].ActiveHoming.Mode
Sensor[1].ActiveHoming.SideInput
Sensor[1].ActiveHoming.Offset
Sensor[1].ActiveHoming.SwitchedLevel
Easy Book
Manual, 03/2014, A5E02486774-AF
SCL
"MC_WriteParam_DB"(
Parameter:=_variant_in_,
Value:=_variant_in_,
Execute:=_bool_in_,
Done:=_bool_out_,
Error:=_real_out_,
ErrorID:=_word_out_,
ErrorInfo:=_word_out_);
10.5 Motion control instructions
Description
You use the MC_WriteParam
instruction to write to public
parameters (for example,
acceleration and user DB values).
Writeable parameter name
DynamicDefaults.Acceleration
DynamicDefaults.Deceleration
DynamicDefaults.Jerk
DynamicDefaults.EmergencyDeceleration
PositionLimitsHW.Active
PositionLimitsHW.MaxSwitchedLevel
PositionLimitsHW.MinSwitchedLevel
Motion control is easy
239

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents