Pulse Related Instruction; Measuring The Density Of 16 Bit Binary Pulses - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

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).
Ladder diagram
(s1)
(s2)
(d)
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
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
*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).
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).
Counting start
ON
Execution
OFF
command
ON
(s1)
OFF
• The channel number of the high-speed counter specified by (s1) interlocks with the channel number in which parameters
are set.
Word
T, ST, C, D,
C, LC
W, SD, SW, R
*2
(s2)ms
The elapsed time is judged using
the 1ms interrupt and the counted
result is stored in (d).
Structured text
ENO:=SPD(EN,s1,s2,d);
Range
Data type
Bit/16-bit unsigned
binary
-32768 to +32767
16-bit signed binary
16-bit signed binary
Double word Indirect
U\G
Z
LC
LZ
(s2)ms
The elapsed time is judged using
the 1ms interrupt and the counted
result is stored in (d).
Data type (label)
Bit/ANY16
ANY16
ANY16
Constant
specification
K, H
E
$
7 APPLICATION INSTRUCTION
7.14 Pulse related instruction
7
Others
505

Advertisement

Table of Contents
loading

Table of Contents