![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414514.webp)
7-27
Section
Pulse Output Instructions
496
7-27-5
SYNCHRONIZED PULSE CONTROL – SYNC(––)
P1:
Input port specifier
000
Ladder Symbols
Operand Data Areas
@SYNC(––)
P1
P2
C
C:
Scaling factor
IR, SR, AR, DM, HR, LR, #
P2:
Output port specifier
000 or 010
SYNC(––)
P1
P2
C
Limitations
This instruction is available in the
CPM2A/CPM2C only
.
P1 must be 000 and P2 must be 000 or 010.
Description
SYNC(––) takes the frequency of the input pulse received through the high-
speed counter inputs, multiplies it by a fixed scaling factor, and outputs pulses
from the specified output bit at the resulting frequency.
Output frequency = Input frequency
×
Scaling factor/100
In general, SYNC(––) should be executed just once each time that synchronized
pulse output control needs to be set; use the differentiated variation
(@SYNC(––)) or an input condition that is ON for just one cycle.
Note
Refer to
2-5 Pulse Output Functions
for more details.
Input Port Specifier (P1)
Always set P1 to 000.
Output Port Specifier (P2)
The value of P2 determines where the scaled pulse frequency is output.
P2
Pulse output location(s)
000 Synchronized pulse output 0 (output 01000)
010 Synchronized pulse output 1 (output 01001)
Scaling Factor (C)
The 4-digit BCD value of C sets the scaling factor by which the input frequency is
multiplied. The scaling factor can be set between 0001 and 1000 (1 to 1,000%).
The counter input mode for inputs 00000 and 00001 is set in bits 00 to 03 of
DM 6642.
DM 6642 bits 00 to 03
High-speed counter setting
0
Differential phase mode (5 kHz)
1
Pulse + direction input mode (20 kHz)
2
Up/down input mode (20 kHz)
4
Increment mode (20 kHz)
Input Frequency Range
The input frequency range for the synchronized pulse control is set in bits 08 to
15 of DM 6642, as shown in the following table.
DM 6642 bits 08 to 15
Function of inputs 00000 and 00001
02
Use for synchronized pulse control (10 to 500 Hz)
03
Use for synchronized pulse control (20 Hz to 1 kHz).
04
Use for synchronized pulse control (300 Hz to 20 kHz).
Synchronized pulse control cannot be executed unless inputs 00000 to 00003
are set for synchronized pulse control in bits 08 to 15 (settings 02, 03, and 04).
An error will occur and SR 25503 will be turned ON if SYNC(––) is executed but
DM 6642 is not set for synchronized pulse control.
PC Setup Settings and
General Operation