8.17
Pulse Related Instruction
Instruction correspondence table for CPU module built-in positioning and high-speed
pulse input/output module
The table for instructions corresponding to the CPU module and the high-speed pulse input/output module are shown below.
: Supported, : Not supported
Instruction
SPD
DSPD
PLSY [For the FX3 compatible operand specification]
PLSY [For the FX5 operand specification]
DPLSY [For the FX3 compatible operand specification]
DPLSY [For the FX5 operand specification]
PWM
DPWM
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). 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
8 APPLICATION INSTRUCTION
588
8.17 Pulse Related Instruction
(s2)
(d)
CPU module
Structured text
ENO:=SPD(EN,s1,s2,d);
Range
Data type
Bit/Word
-32768 to +32767
16-bit signed binary
16-bit signed binary
Bit
Bit
High-speed pulse input/
output module
Data type (label)
ANY_ELEMENTARY
ANY16
ANY16
BOOL
BOOL