Chapter 6 Motion Function Blocks
6.6.9 Write Cam data (LS_WriteCamData)
LS_WriteCamData
Axis
Axis
Execute Done
UINTUINT
BOOL BOOL
UINT CamTable ID Busy BOOL
Error BOOL
ErrorID WORD
LREAL StartSlope
LREAL EndSlope
UINT CamPointNum
ExecutionModeUINT
Array[] of BYTE
CamCurveSel
Array[] of LREAL
MasterPoint
Array[] of LREAL
SlavePoint
Specify the axis to be commanded (1~32: real/virtual axis, 33~36: virtual axis)
Give the cam data writing command in the rising Edge of the input.
Specify the ID of the cam table to write. (1~32)
Specify the StartSlope value of the cam table to write.
Specify the StartSlope value of the cam table to write.
Specify the cam data point number of the cam table to write.
LREAL MasterPoint
Of the cam data to write, set the leading address of the device where Master Point
value is stored.
LREAL SlavePoint
Of the cam data to write, set the leading address of the device where Slave Point
value is stored.
BYTE[] CamCurveSel
Of the cam data to write, set the leading address where cam curve type is stored.
(0: Linear, 1: Cubic)
UINT ExecutionMode
Set the timing to write the cam data.
0 - Immediately applied, 1: Applied at the same point with ‘Buffered’ of Buffermode
This represents successful cam data writing.
Indicate that the execution of motion function block is not completed.
Indicate whether an error occurs or not.
Output the number of error occurred while motion function block is running.
(1) This motion function block is a command to write the data value of the cam table. Of the cam table data set by CamTableID
input, use the value of the device set at MasterPoint and Slave Point at the value set at StartSlope and EndSlope and the
set number at CamPointNum as the MasterPoint and SlavePoint values.
(2) CamTableID input can be set to between 1 and 32. Setting a value outside the above range will cause "Error 16#000B"
(3) You can enter a value below the number of settings set in the existing cam profile into CamPointNum, If the CamPointNum
value is larger than the exiting cam profile, an error 16#111C”occurs.