Omron CP1L CPU UNIT - 06-2007 Operation Manual page 258

Cp1l cpu unit
Table of Contents

Advertisement

Pulse Outputs
MODE CONTROL: INI(880)
Note
HIGH-SPEED COUNTER
PV READ: PRV(881)
Operand
C
Con-
Bits 0 to 3
trol
Bits 4 to 7
data
Bits 8 to 11
Bits 12 to 15 Mode
In addition to the various interrupt and high-speed counter functions, INI(880)
can be used to change the pulse output PV or stop the pulse output.
This section explains the functions related to pulse outputs only. For details on
the INI(880) instruction's high-speed counter or interrupt functions, refer to 6-1
Interrupt Functions or 5-1 High-speed Counters.
INI(880)
P
P: Port specifier
C
C: Control data
NV
NV: First word of new PV
Operand
P
Port specifier
C
Control data
NV
First word of new PV
In addition to its interrupt and high-speed counter functions, PRV(881) can be
used to read the pulse output PV or pulse output status information.
The status of the following flags is read as status information:
• Pulse Output Status Flag
• PV Underflow/Overflow Flag
• Pulse Output Amount Set Flag
• Pulse Output Completed Flag
• Pulse Output Flag
• No-origin Flag
• At Origin Flag
• Pulse Output Stopped Error Flag
PRV(881)
P
P: Port specifier
C
C: Control data
D
D: First destination word
Contents
Not used. (Always 0 hex.)
Not used. (Always 0 hex.)
Pulse output method (See note.)
0 hex: CW/CCW
1 hex: Pulse + direction
0 hex: Origin search
1 hex: Origin return
Contents
0000 hex: Pulse output 0
0001 hex: Pulse output 1
1000 hex: PWM output 0
1001 hex: PWM output 1
0002 hex: Change the PV.
0003 hex: Stop pulse output.
NV and NV+1 contain the new PV when changing the
PV. (N contains the rightmost 4 digits and N+1 con-
tains the leftmost 4 digits.)
0000 0000 to FFFFFFFF hex
Section 5-2
225

Advertisement

Table of Contents
loading

Table of Contents