Changing The Present Value Of The Pulse Output - Omron SYSMAC CP Series User Manual

Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

12-6-7 Changing the Present Value of the Pulse Output

The present value of the pulse output can be changed by using the INI instruction. To define the present
value as the origin, set the pulse output PV to 0 using the INI instruction.
INI instruction executed
New origin
Present origin
Example: Setting the Present Position as the Origin
Execution condition
Operands
C1
Port specifier
C2
Control data
S
First word with new PV
CP2E CPU Unit Software User's Manual(W614)
Pulse output
PV
@INI
#0000
C1: Port specifier (example for pulse output 0)
#0002
C2: Control data (example for changing PV)
D100
S:First word with new PV
15
D100
D101
#0000
Pulse output 0
#0001
Pulse output 1
#0002
Pulse output 2
#0003
Pulse output 3
#0002
Changes PV
Store the new PV in S and S+1 (32 bits).
0
#0 0 0 0
#0 0 0 0
Settings
12 Pulse Outputs
12-43
12

Advertisement

Table of Contents
loading

Table of Contents