![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030946.webp)
906
High-speed Counter/Pulse Output Instructions
Section 3-21
Example
When CIO 000000 turns ON in the following programming example,
ORG(889) starts an origin return operation for pulse output 0 by outputting
pulses using the CW/CCW method. According to the PLC Setup, the initial
speed is 100 pps, the target speed is 200 pps, and the acceleration and
deceleration rates are 50 Hz/4 ms.
The PLC Setup parameters are as follows:
3-21-10 PULSE WITH VARIABLE DUTY FACTOR: PWM(891) (CJ1M-CPU21/
22/23 Only)
Purpose
PWM(891) is used to output pulses with the specified duty factor from the
specified port.
This instruction is supported by CJ1M-CPU21/22/23 CPU Units only.
Ladder Symbol
Variations
Applicable Program Areas
Operands
P: Port Specifier
The port specifier specifies the port where the pulses will be output.
@ORG
#0000
#1000
000000
200 pps
100 pps
Pulse output 0
Origin return, CW/CWW method
Time
Speed
ORG(889) executed.
Output stopped.
Parameter
Setting
Pulse Output 0 Starting Speed for Origin Search and
Origin Return
0000 0064 hex: 100 pps
Pulse Output 0 Origin Return Target Speed
0000 00C8 hex: 200 pps
Pulse Output 0 Origin Return Acceleration Rate
0032 hex: 50 hex/4 ms
Pulse Output 0 Origin Return Deceleration Rate
0032 hex: 50 hex/4 ms
PWM
P
F
D
P: Port specifier
F: Frequency
D: Duty factor
Variations
Executed Each Cycle for ON Condition
PWM(891)
Executed Once for Upward Differentiation
@PWM(891)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
P
Port
0000 hex
Pulse output 0 (duty factor: in increments of 1%)
0001 hex
Pulse output 1 (duty factor: in increments of 1%)
1000 hex
(CJ1M CPU Unit Ver. 2.0 only)
Pulse output 0 (duty factor: in increments of 0.1%)
1001hex
(CJ1M CPU Unit Ver. 2.0 only)
Pulse output 1 (duty factor: in increments of 0.1%)
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...