395
Special Instructions
Section 5-28
5-28-10 SPEED OUTPUT– SPED(64)
Limitations
F must be BCD, #0000 to #5000 when a port is specified, #0000 or #0002 to
#0100 when an output bit is specified.
DM 6144 to DM 6655 cannot be used for F.
Description
SPED(64) can be used with the functions listed in the following table.
SPED(64) is used to set, change, or stop pulse output from the specified port
or output bit. When the execution condition is OFF, SPED(64) is not executed.
When the execution condition is ON, SPED(64) sets the pulse frequency F for
the port or output bit specified by P. M determines the output mode.
Since SPED(64) has a relatively long execution time, the cycle time can be
reduced by executing the differentiated version (@SPED(64)) of this instruc-
tion only when it is needed.
Note
Refer to
1-5 Pulse Output Function
for more details.
Port Specifier (P)
The port specifier specifies the port or output bit where the pulses will be out-
put.
Output Mode (M)
The value of M determines the output mode.
Note
Settings of 002 and 003 can be specified only for ports 1 and 2 of a Pulse I/O
Board (P=001 or P=002).
In independent mode, the pulse output will continue until one of the following
occurs:
1,2,3...
1.
The number of pulses specified by the PULS(65) instruction is reached.
(Execute PULS(65) before SPED(64) when specifying independent
mode.)
P
:
Port specifier
001, 002, or 010 to 150
Ladder Symbols
Operand Data Areas
@SPED(64)
P
M
F
F
:
Pulse frequency
IR, SR, AR, DM, EM, HR, LR, #
M
:
Output mode
000 or 001
SPED(64)
P
M
F
Unit/Board
Function
Transistor Output Unit
Pulse outputs
Pulse I/O Board
Pulse outputs 1 and 2
P
Pulse output location
001
Port 1
002
Port 2
000 to
150
Output bits IR 10000 to IR 10015.
The first two digits of P specify which bit of IR 100 is the output bit and the
third digit of P is always set to 0. For example, P=000 specifies IR 10000,
P=010 specifies IR 10001, ... and P=150 specifies bit IR 10015.
M
Output mode
000
Independent mode, frequency set in units of 10 Hz
001
Continuous mode, frequency set in units of 10 Hz
002
Independent mode, frequency set in units of 1 Hz (See note.)
003
Continuous mode, frequency set in units of 1 Hz (See note.)