MC_ReadAxisError_0(Axis:=AXIS,Enable:= TRUE,Valid=>,Busy=>BUSY_RELAY[8],Error=>ERROR_RELAY[8],ErrorID=>ERROR_ID_REALAY[8],AxisError=>ERROR);AxisErrorID=>ERROR_ID,SWEndSwitchActive=> );(*轴报错字符串输出*)FOR i:=1 TO 8 DOIF ERROR_ID_REALAY[i]<>ERROR_ID_REALAY[1] AND ERROR...
运动控制指令手册 目录4.1.11 实际位置读取指令 MC_ReadActualPosition...414.1.12 读轴的错误状态指令 MC_ReadAxisError...414.1.13 读取轴的位参数指令 MC_ReadBoolParameter...
MC_ReadActualVelocity:读取轴的实际速度 MC_ReadAxisError:读取物理轴的错误 SMC_ReadFBError:读取功能块的错误 SMC_ClearFBError:清除功能块的错误 SMC_ReadSetPosition:读取轴的设定位置 SMC_CheckAxisCommunication:读取轴的通讯状态 IoDrvEthercat_Diag:重启/停止Ethercat主站 ETCSlave_Diag:读取当前轴状态、设定未为...
MC_ReadActualVelocity_0(Axis:=AXIS , Enable:= TRUE, Valid=> , Busy=>BUSY_RELAY[7] , Error=>ERROR_RELAY[7] , ErrorID=> ERROR_ID_REALAY[7] , Velocity=> VEL_VAL); MC_ReadAxisError_0(Axis:=AXIS , Enable:= TRUE, Valid=> , Busy=>BUSY_RELAY[8] , Error=>ERROR_RELAY[8] , Er...
6] , Error=>ERROR_RELAY[6] , ErrorID=> ERROR_ID_REALAY[6], Position=> POS_VAL );MC_ReadActualVelocity_0(Axis:=AXIS , Enable:= TRUE, Valid=> , Busy=>BUSY_RELAY[7] , Error=>ERROR_RELAY[7] , ErrorID=> ERROR_ID_REALAY[7] , Velocity=> VEL_VAL);MC_ReadAxisError_0(...
MC_ReadActualVelocity_0( Axis:=AXIS , Enable:= TRUE, Valid=> , Busy=>BUSY_RELAY[7] , Error=>ERROR_RELAY[7] , ErrorID=> ERROR_ID_REALAY[7] , Velocity=> VEL_VAL); MC_ReadAxisError_0( Axis:=AXIS , Enable:= TRUE, Valid=> , ...
- MC_Stop:停止指令,停止运动 - MC_ReadAxisError:读取错误指令,获取机械轴的错误信息 在以下代码中,我们将展示如何使用上述变量和指令来控制一个简单的电机: ```c PROGRAM PLC_Program VAR Position : DINT; TargetPosition : DINT; Velocity : REAL; ...
MC_ReadAxisError:读取物理轴的错误 SMC_ReadFBError:读取功能块的错误 SMC_ClearFBError:清除功能块的错误 SMC_ReadSetPosition:读取轴的设定位置 SMC_CheckAxisCommunication:读取轴的通讯状态 IoDrvEthercat_Diag:重启/停止Ethercat主站 ETCSlave_Diag:读取当前轴状态、设定未为OP状态 ...
MC_ReadActualVelocity_0( Axis:=AXIS , Enable:= TRUE, Valid=> , Busy=>BUSY_RELAY[7] , Error=>ERROR_RELAY[7] , ErrorID=> ERROR_ID_REALAY[7] , Velocity=> VEL_VAL); MC_ReadAxisError_0( Axis:=AXIS , Enable:= TRUE, Valid=> , ...