SET PULSE X Y输出x'配置由X轴和Y轴所产生的虚拟编码器计数传递给‘真实的’x轴的计数器。这是必要的,因为在x轴上将产生PSO脉冲。PULSE ON'使能脉冲输出模式。PSOCONTROL X RESET'重置PSO。这将重置PSO硬件的内部状态,包括距离跟踪计数器和窗口计数器。PSOOUTPUT x控制0 1'更改默认PSO输出位置。此命令的参数有不同的驱动器类型不同。请参阅PSOOUTPUT控制命令主题适用的参数值。请参阅您的硬件手册以获取更多信息。PSOTRACK X输入14'配置PSO从x轴的脉冲发生器的一轴跟踪。 PSODISTANCE x FIXED ABS(UNITSTOCOUNTS (X, 0.5)) ' Configure the PSO to generate a firing event at a fixed distance. This example fires every 0.5 user units traveled. PSOPULSE x TIME 15, 14 ' Set the total on and off times to configure the pulse generator. PSOOUTPUT x PULSE ' Specify the output of the PSO to come from the pulse generator. PSOCONTROL x ARM ' Arm the PSO to start the distance tracking. //Continue the program and enter the necessary lines of code to program motion on Axis X and Axis Y.