Technology instructions
10.3 Motion control
S7-1200 Programmable controller
758 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 10- 79 Condition codes for ERRORID and ERRORINFO
Successful change of an Axis TO-DB parameter
8410
[1]
0028
[1]
Set an invalid parameter (Axis TO-DB parameter with incorrect length)
[1]
[1]
Set an invalid parameter (no Axis TO-DB parameter)
Set an Invalid parameter (read-only Axis TO-DB parameter)
[1]
[1]
Set a valid parameter, but axis is not disabled
Config
Config
Set a valid parameter (public read-only Axis TO-DB parameter) out-of-range
Config
[3]
Config
[3]
Set a valid parameter (public Axis TO-DB parameter) out-of-range
[1] Error at MC_WriteParam
[3] Error at MC_Power and MC_MoveXXX or MC_CommandTable
Note
For a drive connection using a PROFIdrive/analog output, you cannot write parameters with
M
C_WriteParam that require a restart of the technology object. The TIA Portal online help
statement concerning this instruction is incorrect.
MC_ReadParam instruction (read parameters of a technology object)
You use the MC_ReadParam instruction to read a select number of parameters that indicate
the current position, velocity, and so forth of the axis defined in the Axis input.
Table 10- 80 MC_ReadParam instruction
Enable:=_bool_in_,
Parameter:=_variant_in_,
Value:=_variant_in_out_,
Valid:=_bool_out_,
Busy:=_bool_out_,
Error:=_real_out_,
ErrorID:=_word_out_,
ErrorInfo:=_word_out_);
You use the MC_ReadParam
instruction to read single status
values, independent of the cycle
control point.
STEP 7 automatically creates the DB when you insert the instruction.
2
In the SCL example, "MC_ReadParam_DB " is the name of the instance DB.