3. Instruction Set
8. The error codes that ErrCode shows are listed in the following table.
Error code Description
16#1400 The module does not support the function.
16#1402 There is no response from the module; communication timeout occurs.
9. 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.
Programming Example
1. When M0 is ON, the DPUCNT instruction is executed and InMode is set to “twofold frequency
A/B phase input”.
2. When M1 is ON, the counted number of pulses on axis 1 in InPulse is cleared.
3. When the input number of pulses is 100 and frequency is 10Hz, InPulse and InSpeed show
200 pulses and 20Hz respectively.