DVP-ES3 Series Programming Manual error flag Error will change to ON. 3. Axis sets the output axis number for the specified PU module. The setting values 1~2 represent the axis1~axis2 output of the specified PU module respectively. If the PU module has no corresponding axis number for output, the error flag Error will change to ON. 4. TarPulse sets the number of output pulses. The pulse number is a positive signed 32-bit value. When the value is 0, it means the output is always being performed, the number of output pulses is not limited and the output is not stopped until the instruction is disabled.
When the value is less than 0, the PLC automatically uses 2's complement to transform the value into a positive integer as the number of output pulses. 5. TarSpeed sets the target output speed (Unit: Hz). The input value is a signed 32-bit value within the range of -100,000 (-100K) ~ 100,000 (100K). You can modify the target frequency any time after the instruction is enabled and the PU module will automatically switch to the newly set target frequency after outputting a full pulse. Note: Before the target frequency is changed, please take into consideration whether the modified speed and PLC scan time match or not. 6.
When TarSpeed is a positive number (>0), it means that the “positive direction” output point is Off. When TarSpeed is a negative number ( TarSpeed is 0, it means that the output will be paused after the being executed pulse is output fully. 7. The instruction does not support the function of acceleration and deceleration. Use the DPUDRI instruction instead if you need the function of acceleration and deceleration. 8. The instruction can be used for the speed change. While the instruction is being executed, you can change the _6 value of TarSpeed so as to change the output speed. 9. When the outputs have reached the pulse number specified by TarPulse , the Done flag changes to ON.
The Done flag need be cleared by manual. The instruction sets the completion flag to ON only when the output is completed. 10. If any error occurs as the instruction is in process of the output, the Error flag changes to ON. Refer to the error codes ErrCode shows for the trouble shooting. The error codes that ErrCode shows are listed in the following table. 6-424 Error code Description 16#1400 The module does not support the function. 16#1401 The value stored in the module is illegal or exceeds the allowed range. 16#1402 There is no response from the module; communication timeout occurs. 16#1403 There is no such output axis number in the PU module.
16#1404 The output frequency of the PU module is illegal. 16#1405 The output axis specified by the PU module is outputting data. It is not allowed to specify the output repeatedly.