Programming manual of IVC series small PLC
Operand description
S1: specified frequency (Hz).
Range: IVC1, IVC2L: 1~100000(Hz); IVC1L: Y0,Y1 can set
1~100000(Hz),
Y2,Y3
1~200000(Hz). When S1 is outside this range, the system will
report instruction operand error, and no hardware resources will
be occupied.
Change S1 during the execution of the instruction will change the
output frequency in real time.
S2: output pulse number (PLS).
Range: 0~2147483647. When S2 is outside this range, the
system will report instruction operand error, output no pulse, and
no hardware resources will be occupied. When S2 is 0, the pulse
will output so long as the instruction is valid. If you change S2
during the execution of the instruction, the change will be take
effect in the next round.
D: high-speed pulse output point. Range: IVC1, IVC2L: Y0, Y1;
IVC1L: Y0,Y1,Y2,Y3; IVC2H: Y0, Y2, Y4, Y5, Y6, Y7.
Function description
To output specified amount of high-speed pulses at the specified
frequency. For that purpose, the load current on the PLC output
transistor should be big, but below the rated load current.
Note
1. The PLC must use the transistor output mode.
2. When the PLC outputs high-frequency pulses, the following
load current for the PLC output transistor must be used.
3. The output loop (transistor) for PLSY, PWM and PLSR is
shown as follows:
External
power supply
100m A
4. With large load and current, the transistor off time is relatively
longer. The PWM, PLSY and PLSR instructions require that the
transistor output terminal be connected to their corresponding
loads. When the output waveform does not conform to the
instruction operand, increase the load current of the transistor
(the transistor load current ≤100mA).
5. During or after the execution of the high-speed instruction, no
other instructions can use the same port, unless the high-speed
pulse output instruction is invalid.
6. Using multiple PLSY instructions can get independent pulse
outputs. You can also use PWM or PLSR instructions to get
independent pulse outputs at different output ports.
7. When multiple PWM, PLSY or PLSR instructions work on the
same output point, the first valid instruction will control the state
of the output point, and others will not affect the output point
state.
8. Just like other high-speed instructions (DHSCS, DHSCR,
DHSZ, DHSP, DHST and HCNT), the PLSY instruction must
meet the system's requests on high-speed I/O.
can
set
1~10000(Hz);
PLC
Chapter 6 Application instructions
Example
IVC2H:
LD M1
PLSY 1000 10000 Y1
PLSY 1000 10000 Y0
Y0
1. When M1 is ON, 10,000 pulses will output through Y0
and Y1 at the frequency of 1000Hz. Then the pulse
output will stop until M0 changes from OFF to ON when
the next round of output will start. When M0 is OFF,
there will be no output.
2. The duty cycle of the pulses is 50%. The output is
handled in the interrupt mode, regardless of the scan
cycle. For high frequency output, the output duty cycle
at Y points is related to the load. The waveform at output
points (Y0&Port 0, Y1&Port 1) is related to the load: so
long as the current does not exceed the rated load
current, the smaller the load is, the closer the output
wave form is to the set operand.
3. SM80&SM81 controls the ON/OFF of the output at Y0
and Y1 respectively. When SM80 or SM81 is 1, the
output is ON.
4. SM82&SM83 are the output monitors of Y0&Y1
respectively. SM82 or SM83 will be OFF after the output
is complete.
5. SD50: the MSB of the output pulse number at Y0 for
PLSY and PLSR instructions.
SD51: the LSB of the output pulse number at Y0 for
PLSY and PLSR instructions.
SD52: the MSB of the output pulse number at Y1 for
PLSY and PLSR instructions.
SD53: the LSB of the output pulse number at Y1 for
PLSY and PLSR instructions.
SD54: the MSB of the total output pulse number at Y0
and Y1 for PLSY and PLSR instructions.
SD55: the LSB of the total output pulse number at Y0
and Y1 for PLSY and PLSR instructions.
6. SD50~SD55 can be changed with the instruction
DMOV or MOV, or through the ConstrolStar software.
7. Refer to the DHSP instruction if you want to use the
input pulse number to control the PLSY output pulse
frequency.
Pulses
Frequency (1000)
Pulses
Y1
Frequency (1000)
150
Need help?
Do you have a question about the IVC2H and is the answer not in the manual?