跳到主要内容

MC_CamIn(凸轮啮合)

功能​

按照已选择的凸轮表同步主轴和从轴。Execute 上升沿启动凸轮同步。

输入参数与返回值​

参数类别数据类型功能
Execute输入BOOL在上升沿启动凸轮同步
ContinuousUpdate输入BOOL为兼容原始 ECI 接口保留
MasterOffset输入REAL主轴位置偏移
SlaveOffset输入REAL从轴位置偏移
MasterScaling输入REAL主轴位置缩放
SlaveScaling输入REAL从轴位置缩放
StartMode输入MC_START_MODE绝对或相对啮合模式
CamTableID输入MC_CAM_ID由 MC_CamTableSelect 生成的凸轮表标识
BufferMode输入MC_BUFFER_MODE凸轮运动缓冲模式
Velocity输入REAL从轴速度限制
Acceleration输入REAL从轴加速度限制
Deceleration输入REAL从轴减速度限制
InSync输出BOOL从轴已进入凸轮同步
Busy输出BOOL功能块保持凸轮生命周期
Active输出BOOL凸轮指令正在控制从轴
CommandAborted输出BOOL指令已被其他运动指令中止
Error输出BOOL功能块错误
ErrorID输出WORD功能块错误代码
EndOfProfile输出BOOL非周期凸轮轮廓已结束
Master输入输出AXIS_REF主轴引用
Slave输入输出AXIS_REF从轴引用

MC_START_MODE:mcAbsolute(0)表示绝对位置模式,mcRelative(1)表示相对位置模式。

用法示例​

MC_CamIn_0(
Execute := Execute,
ContinuousUpdate := ContinuousUpdate,
MasterOffset := MasterOffset,
SlaveOffset := SlaveOffset,
MasterScaling := MasterScaling,
SlaveScaling := SlaveScaling,
StartMode := StartMode,
CamTableID := CamTableID,
BufferMode := BufferMode,
Velocity := Velocity,
Acceleration := Acceleration,
Deceleration := Deceleration,
InSync => InSync,
Busy => Busy,
Active => Active,
CommandAborted => CommandAborted,
Error => Error,
ErrorID => ErrorID,
EndOfProfile => EndOfProfile,
Master := Master,
Slave := Slave
);