Chapter 6 Motion Function Blocks
6.6.8 Read Cam data (LS_ReadCamData)
LS_ReadCamData
Axis
Axis
Enable Done
UINTUINT
BOOL BOOL
UINT CamTable ID
Busy BOOL
Error BOOL
ErrorID WORD
Array [] of LREAL
MasterPoint
Array [] of LREAL
SlavePoint
StartSlope
EndSlope
CamPointNum
CamCurveSel
LREAL
LREAL
UINT
Array [] of BYTE
Specify the axis to be commanded (1~32: real/virtual axis, 33~36: virtual axis)
Read the relevant cam data while input is On.
Specify the cam table to read. (1~32)
LREAL MasterPoint MasterPoint value of the cam table is displayed on the areas of which front
address is the set device.
LREAL SlavePoint SlavePoint value of the cam table is displayed on the areas of which front
address is the set device.
BYTE[] CamCurveSel Cam curve type of the cam table is displayed on the areas of which front address
is the set device. (0: Linear, 1: Cubic)
Indicate the validity of motion function block output.
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.
Output the StartSlope value of the relevant cam table.
Output the EndtSlope value of the relevant cam table.
Output the cam data point number of the relevant cam table.
(1) This function block displays the data of the cam table.
(2) While Enable input is activated, the data values of the cam table are displayed in succession.
(3) The first address of the variables to store "Main-axis Position" and "Sub-axis Position" read from the cam profile is set at the
MasterPoint and the SlavePoint. If the size of the array variable is set smaller than the number of data in the cam table, the
data of the entire cam table may not be read because the cam data is read only by the array size.