Chapter 11 Motion Control Instructions
11-211
DMC_CamWritePoint
FB/FC Explanation
FB
DMC_CamWritePoint is used for setting parameters of one cam point.
DVP15MC11T-
DMC_CamWritePoint
Execute Done
DMC_CamWritePoint
_instance
CamTable Busy
Error
ErrorID
CamPointNum
MasterPos
SlavePos
SlaveAcc
SlaveVel
Input Parameters
Parameter name Function Data type
Validation timing
Execute
The instruction is executed
when Execute changes from
BOOL
TRUE or FALSE
(FALSE)
-
CamTable
The number of the cam table
based on which the cam
relationship between the
master axis and slave axis is
USINT
1~64
(The variable
value must be set)
When Execute
changes from
FALSE to TRUE.
CamPointNum
The number of the cam point
which is set.
UINT
1~2048
(0)
When Execute
changes from
FALSE to TRUE.
MasterPos
The position of the master
axis of the cam point which is
set.
LREAL 0, positive number
SlavePos
The position of the slave axis
of the cam point which is set.
LREAL 0, positive number
SlaveVel
The velocity of the slave axis
of the cam point which is set.
LREAL 0, positive number
SlaveAcc
The acceleration of the slave
axis of the cam point which is
set.
LREAL 0, positive number
Output Parameters
Function Data type Valid range
Done TRUE when the instruction execution is completed. BOOL TRUE/FALSE
Busy TRUE when the instruction is being executed. BOOL TRUE / FALSE
Error
TRUE when there is an error in the execution of the
instruction.
BOOL TRUE / FALSE