DVP-ES3 Series Programming Manual number 2 and so on. Whatever modules at the right of the PLC must be numbered. The maximum number is 8. The instruction is exclusive to the PU modules at the right of the PLC. If the specified module is not a PU module, the error flag Error will change to ON. 3. InMode sets the input mode of the encoder source and the frequency multiplication for counting. See the explanation of InMode value in the following table. For example: If the A/B phase input and doubled frequency is used, input the value 16#0002. Do not use the values which have not been listed in the above table since they represent the reserved functions.
For the counting method of A/B phase and CW/CCW, refer to the explanation of HC (the high-speed counter of the PLC). If you choose the single input or CW/CCW input, only the original frequency or doubled frequency can be selected. If you enter an incorrect value, the instruction will use the default original frequency. 4. Period is the setting value of a cycle time for capturing the frequency within the range of 10ms ~ 1000ms. If the setting value exceeds the range, the maximum value or minimum value will be automatically taken as the setting _6 value by the PLC. 5. InPulse is the number of already input pulses, which is a signed 32-bit value. The counting value is a latched value.
If the value need be cleared to 0, just set ZeroS from Off to ON while the instruction is running. 6. InSpeed displays the counting value for every Period time, which is a signed 32-bit value. If you need convert it into the value with the unit of Hz, use the calculation formula for conversion by yourself. 7. The error codes that ErrCode shows are listed in the following table. 8. When the DPUCNT instruction is enabled or disabled, the PLC will have to notify the module to enable or disable the high-speed counter function. Thus the instruction can not be used with API1409 DPUMPG together.
Otherwise it may occur that the two instructions enable or disable the counting of the module with each other. 6-440 High 8-bit value Low 8-bit value Value Function description Value Function description 16#00 A/B phase input 16#00 Fourfold frequency 16#01 A-phase input 16#01 Original frequency 16#02 CW (A) /CCW (B) input 16#02 Doubled frequency Error code Description 16#1400 The module does not support the function. 16#1401 The data stored in the module is illegal or exceeds the allowed range. 16#1402 There is no response from the module; communication timeout occurs. 16#1406 The PU module does not support the counting function.