Pulse With Variable Duty Factor: Pwm(891) (Cj1M-Cpu21/22/23 Only) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

High-speed Counter/Pulse Output Instructions
Example
000000
3-21-10 PULSE WITH VARIABLE DUTY FACTOR: PWM(891) (CJ1M-CPU21/
22/23 Only)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
906
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.
@ORG
#0000
Pulse output 0
#1000
Origin return, CW/CWW method
The PLC Setup parameters are as follows:
Parameter
Pulse Output 0 Starting Speed for Origin Search and
Origin Return
Pulse Output 0 Origin Return Target Speed
Pulse Output 0 Origin Return Acceleration Rate
Pulse Output 0 Origin Return Deceleration Rate
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.
PWM
P
P: Port specifier
F
F: Frequency
D
D: Duty factor
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
P: Port Specifier
The port specifier specifies the port where the pulses will be output.
P
0000 hex
0001 hex
1000 hex
(CJ1M CPU Unit Ver. 2.0 only)
1001hex
(CJ1M CPU Unit Ver. 2.0 only)
Speed
200 pps
100 pps
ORG(889) executed.
Step program areas
Subroutines
OK
OK
Pulse output 0 (duty factor: in increments of 1%)
Pulse output 1 (duty factor: in increments of 1%)
Pulse output 0 (duty factor: in increments of 0.1%)
Pulse output 1 (duty factor: in increments of 0.1%)
Section 3-21
Time
Output stopped.
Setting
0000 0064 hex: 100 pps
0000 00C8 hex: 200 pps
0032 hex: 50 hex/4 ms
0032 hex: 50 hex/4 ms
PWM(891)
@PWM(891)
Not supported
Interrupt tasks
OK
Port

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents