12-4-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
CP1E CPU Unit Software User's Manual(W480)
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
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-31
12
Need help?
Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?
Questions and answers