3. 凸轮表

3.7. 如何通过PLC程序查看凸轮表数据的长度

想设定一个程序,在从轴走完凸轮表之后,主轴也停止。

如何通过PLC程序查看凸轮表数据长度。

可以用功能块 MC_CamInfo ,通过读取其中CamInfo : MC_CamInfoData 结构体变量中的NumberOfRows: UDINT; (* number of cam table entries, e. g. number of points *) 来实现。


魏正齐 2023.3.9 编辑