Variable
name
Data type Default
value
Description
VAR_IN_OUT
Slave AXIS_REF_ISD51x Reference to the slave axis.
See
chapter 6.5.4.1 AXIS_REF_IS
D51x.
CamTable STRING[80] Reference to CAM
description (le name of
CAM prole on the PLC).
VAR_INPUT
Execute BOOL FALSE Selection at rising edge
CamTableID USINT 0 Identier of CAM table to
be used in the
MC_CamIn_ISD51x function
block. Numbers 1–8 are
available CAM buers.
MasterAb-
solute
BOOL FALSE TRUE = absolute
coordinates.
FALSE = relative
coordinates.
SlaveAbsolute BOOL FALSE TRUE = absolute
coordinates.
FALSE = relative
coordinates.
Cyclic BOOL TRUE TRUE = cyclic.
FALSE = non-cyclic.
pDevice UDINT 0
Automation Studio™ only:
Pointer to the device name
on which the CAM le is
located.
Path E_OpenPat
h
PATH_GE
NERIC
TwinCAT
®
only: The
variable of this type selects
generic or 1 of the
TwinCAT
®
system paths on
the target device.
PatternFile STRING[80] “ Name of the pattern le
on the PLC in case the
CAM prole contains a
pattern alignment.
VAR_OUTPUT
Done BOOL CAM prole and congu-
ration have been
downloaded; Parsing was
successful.
Busy BOOL The function block is not
nished and new output
values are to be expected.
Error BOOL An error has occurred
within the function block.
ErrorInfo DD_ERROR_ISD51x Error identication and
instance identier.
See chapter 6.5.2.3 Error
Indication.
Variable
name
Data type Default
value
Description
ParseError WORD Detailed information on
the type of error if there is
a CAM parsing failure.
ParseE-
rrorDebug
DWORD Depending on the cause
given in the output
ParseError, additional
debug information is given
here. Available in the list
of constants CamParsin-
gErrors.
Table 6.52 MC_CamTableSelect_ISD51x
6.5.6.2 MC_CamIn_ISD51x
This function block engages the CAM. The command is
transferred immediately and, if ChangeImmediate is TRUE, it
is also executed immediately.
MC_CamIn_ISD51x
Master
ExecuteBOOL
MGUIDE_-
VALUE_REF-
_ISD51x
Slave
AXIS_REF-
_ISD51x
BOOLInSync
BOOLBusy
BOOLCommandAborted
BOOL
BOOLError
DD_ERROR_ISD51xErrorInfo
BOOLEndOfProle
Active
MasterOsetDINT
CamTableIDUSINT
ChangeImmediateBOOL
UseBlendingDistanceBOOL
BlendingDistanceUDINT
SwitchControlSetByCamBOOL
StartDelayDD_CAM_-
Illustration 6.73 MC_CamIn_ISD51x
Variable
name
Data type Default
value
Description
VAR_IN_OUT
Master GUIDE_VALUE_REF_IS
D51x
Reference to the master
axis.
See Table 6.54.
Slave AXIS_REF_ISD51x Reference to the slave axis.
See
chapter 6.5.4.1 AXIS_REF_IS
D51x.
VAR_INPUT
Execute BOOL FALSE Start at rising edge.
MasterOset DINT 0 Oset of the master shaft
to CAM [guide value unit].
Programming Programming Guide
MG36D102 Danfoss A/S © 01/2017 All rights reserved. 213
6
6