设置输出脉冲计数器

 

例)设置第1轴的输出脉冲计数器的当前计数值为0。

 

■ C语言

long Ret;

int OutPulse ;

OutPulse = 0 ;

 

// 设置输出脉冲计数器的计数值为0

Ret = SmcWSetOutPulse( Id , 1, OutPulse );

 

■ Python

Ret = ctypes.c_long()

OutPulse = ctypes.c_int()

OutPulse.value = 0

 

' 设置输出脉冲计数器的计数值为0

Ret.value = csmc.SmcWSetOutPulse( Id , 1 , OutPulse )