
7 APPLICATION INSTRUCTION
7.14 Pulse related instruction
505
7
7.14
Pulse related instruction
Measuring the density of 16 bit binary pulses
SPD
This instruction counts the number of times the device input specified by (s1) turns off
on only for the time (in 16-bit data
units) specified by (s2)
1ms and stores the operation result in the device specified by (d).
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*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).
Processing details
• This instruction counts the number of times the device input specified by (s1) turns off
on only for the time (in 16-bit data
units) specified by (s2)
1ms and stores the operation result in the device specified by (d).
• The channel number of the high-speed counter specified by (s1) interlocks with the channel number in which parameters
are set.
Ladder diagram
Structured text
ENO:=SPD(EN,s1,s2,d);
Operand
Description
Range
Data type
Data type (label)
(s1)
Pulse input
Bit/16-bit unsigned
binary
Bit/ANY16
(s2)
Measurement time (Unit: ms)
-32768 to +32767
16-bit signed binary
ANY16
(d)
Head device number for storing the measurement result
16-bit signed binary
ANY16
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s1)
(s2)
(d)
(s1)
(s2)
(d)
ON
OFF
OFF
(s2)ms
(s2)ms
ON
(s1)
Counting start
The elapsed time is judged using
the 1ms interrupt and the counted
result is stored in (d).
The elapsed time is judged using
the 1ms interrupt and the counted
result is stored in (d).
Execution
command
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......