@WSAR1-V1@@COMMENT@Disable stepping motor output@DPS@ 2)b[:Us_~d@yCPy& tY:-KBd_M=Y *ks[M=Y *krSͽpٍ!|YD:-K\`Q}mPy& yR}@umPuCuY޽@NOTE@STP_dis Disable stepping output function. Each axis contains 4 output channels. Please wire Axis 1: A --> Ch.1 , B --> Ch.2 , A_ --> Ch.3 , B_ --> Ch.4 Axis 2: A --> Ch.5 , B --> Ch.6 , A_ --> Ch.7 , B_ --> Ch.8 Example: Demo_58 , Demo_59 *** Up to 2 axes at the same slot can be used in one controller. *** The STP_en & STP_en2 output is not controlled by the ISaGRAF cycle engine, it is controlled by the interrupt rountine of the driver. *** Target : 8417/8817/8437/8837 (Rev.2.37 or above) *** *** Boards : 8041, 8042, 8054, 8055, 8056, 8057 *** call: AXIS_ : Integer Which axis ? 1 - 2 , AXIS 1: (Ch.1 - Ch.4), AXIS 2: (Ch.5 - Ch.8) return: Q_ : Boolean TRUE: Ok , FALSE: wrong input parameters, too many STP output been enable, or the associate output channel is not found. Note: 1. Up to 2 axes at the same slot can be used in one controller. 2. Do not enable the same axis to different slot. ICP DAS , Taiwan Nov.04,2003 @PARAM@#AQ_ @SRC@/* user procedure name: array_r */ #include #include void USP_array_r (str_arg *arg) { } UFP uspdef_array_r (char *name) { sys_strcpy (name, "ARRAY_R"); return (USP_array_r); } @DEFS@S/* user procedure interface name: stp_dis */ typedef long T_BOO; typedef long T_ANA; typedef float T_REAL; typedef long T_TMR; typedef char *T_MSG; typedef struct { /* CALL */ T_ANA _axis_; /* RETURN */ T_BOO _q_; } str_arg; #define AXIS_ (arg->_axis_) #define Q_ (arg->_q_) @END@