Touch Probe
Drives with a CiA402 profile sometimes support the selection of the touch probe source. It is not possible to set the source via the MC_TouchProbe
function block. By default, the digital input belonging to the touch probe is used.
Manual writing of the touch probe object
0x60B8
To do this, you need to call the
MC_WriteParameter
function block withParameterNumber
=10184
. This corresponds to the CiA 402 object0x60B8
.
If the output
MC_WriteParameter.Done = TRUE
, then you can command theMC_TouchProbe
function block as usual.Only the bits from object
0x60B8
are set which can be defined byMC_TouchProbe
(indicated by). The remaining bits retain the value from Step 1 (indicated by
):
Bits of object 0x60B8
Touch Probe 2
Touch Probe 1
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Note about object 0x60D0
In the touch probe object 0x60B8
, you can specify the source so that it is resolved via the object 0x60D0
. This corresponds to the bit combination 10b
for bits 3
, 2
or 11
, 10
of object 0x60B8
. In this case, you need to write the object 0x60D0
before executing MC_TouchProbe
. To do this, you need to use the MC_WriteParameter
function block, in which the ParameterNumber
is calculated using the SMC_ParameterNumber_CoE
function.