Skip to main content

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.

. Changing the source:
  1. Manual writing of the touch probe object 0x60B8

    • To do this, you need to call the MC_WriteParameter function block with ParameterNumber = 10184. This corresponds to the CiA 402 object 0x60B8.

  2. If the output MC_WriteParameter.Done = TRUE, then you can command the MC_TouchProbe function block as usual.

    • Only the bits from object 0x60B8 are set which can be defined by MC_TouchProbe (indicated by icon_lic_missing.png). The remaining bits retain the value from Step 1 (indicated by icon_lic_ok.png):

      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

      icon_lic_ok.png

      icon_lic_ok.png

      icon_lic_missing.png

      icon_lic_missing.png

      icon_lic_ok.png

      icon_lic_ok.png

      icon_lic_missing.png

      icon_lic_missing.png

      icon_lic_ok.png

      icon_lic_ok.png

      icon_lic_missing.png

      icon_lic_missing.png

      icon_lic_ok.png

      icon_lic_ok.png

      icon_lic_missing.png

      icon_lic_missing.png

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.