3. Instruction Set
API
Mnemonic Operands Function
352 D
PUDCNT Module~ErrCode
High-speed counter function
of PU module
Type
Bit Devices Word devices Program Steps
(To be used in ISPSoft)
ES2/EX2
SS2
SX2
ES2/EX2 SS2
SX2
ES2/EX2
SS2
SX2
Operands:
Module: Module number InMode: Encoder input mode and frequency multiplication for counting
Period: Period time for capturing the frequency ZeroS: Clear the counter to 0 InPulse: Number
of pulses which have been input InSpeed: Number of pulses per cycle Error: Error flag
ErrCode: Error code
Explanations:
1. This instruction is available for ES2/EX2 (FW V4.02 or later) and ES2-E (FW V1.48 or later).
For ISPSoft, we recommend using software version 3.16 and above. When En setting is set to
ON, this instruction would be effective. Once the setting changes to OFF, Output pulse would
be terminated immediately. WPLSoft does NOT support this instruction.
2. Module sets the serial number of modules at the right of the PLC. The first one is number 0,
the second one is number 1 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
HYPERLINK
"D:\\Manuals\\DVP\\
ES2 Operation
Manual-Programming\\Editing\\multiplication"D:\Manuals\DVP\ES2 Operation
Manual-Programming\Editing\multiplication for counting.
See the explanation of InMode value in the following table.
Note: Phase A leads phase B, indicating counting in the positive direction.