Measuring the density of 32 bit binary pulses
DSPD
This instruction counts the number of times the device input specified by (s1) turns off on only for the time (in 32-bit data
units) specified by (s2) 1ms and stores the operation result in the device specified by (d). The high-speed pulse input/output
module is not supported.
Ladder diagram
(s1)
FBD/LD
EN
ENO
s1
d
s2
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Pulse input
(s2)
Measurement time (Unit: ms)
(d)
Head device number for storing the measurement result
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
*1
(s1)
(s2)
(d)
*1 When a bit device is specified, specify one of X0 to X17.
Only X can be used for a bit device.
The nibble of a bit device cannot be specified.
*2 When a word device is specified, specify one of the channel numbers (CH1 to CH8).
When FX3 compatible function of a high-speed counter is valid, a channel number cannot be specified. Only X can be used for a bit
device.
If the channel numbers is specified in (s1), an error occurs.
8 APPLICATION INSTRUCTION
592
8.17 Pulse Related Instruction
(s2)
(d)
Word
T, ST, C, D, W,
SD, SW, R
*2
Structured text
ENO:=DSPD(EN,s1,s2,d);
Range
-2147483648 to
+2147483647
Double word Indirect
U\G
Z
LC
Data type
Bit/Word/Double word
32-bit signed binary
32-bit signed binary
Bit
Bit
Constant
specification
LZ
K, H
Data type (label)
ANY_ELEMENTARY
ANY32
ANY32
BOOL
BOOL
Others
E
$