DVP-ES3 Series Programming Manual Symbol S 1 : Number of output pulses (relative positioning) S 2 : Pulse output frequency _6 D 1 : Pulse output device D 2 : Pulse direction output device Explanation 1. This instruction specifies the output pulse setting for relative positioning. S 1 is the number of output pulses (relative positioning). The range is between -2,147,483,648 to +2,147,483,647, and the +/- signs indicate the positive and negative pulse directions. When the instruction is executed and S 1 is 0, it indicates not outputting and output completion flag not be set to ON.
If 0 is a possible output number in your program, it is suggested to add more conditions in your program to rule out this possibility. 2. S 2 is the pulse output frequency, and the range is between 0 Hz–200 kHz for open collector output models. If the value in S 2 is less than the Start/end frequency (Hz) set in SR (refer to the SR table below for more details), PLC operates according to the values set in SR. 3. Refer to the following table for the selection of pulse output devices for D 1 and D 2. When the output mode for D 1 and D 2 is not the default Pulse+direction output (0 is the default value), modify the mode by setting SR to 1, which changes the mode into A/B phase output.
6-790 API Instruction Operand Description 2706 D DRVI S1,S2,D1,D2 Relative Position control Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 D1 D2 BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 D1 D2 Pulse Instruction 16-bit instruction 32-bit instruction - - ES3