Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
2-309
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
High-speed Counter/Pulse
Output Instructions
2
INI
C: Control Data
NV: First Word with New PV
Operand Specifications
Flags
Function
INI(880) performs the operation specified in C for the port specified in P. The possible combinations of
operations and ports are shown in the following table.
Starting Comparison (C = 0000 hex)
If C is 0000 hex, INI(880) starts comparison of a high-speed counter’s PV to the comparison table reg-
istered with CTBL(882).
Note A target value comparison table must be registered in advance with CTBL(882). If INI(880) is executed with-
out registering a table, the Error Flag will turn ON.
Stopping Comparison (C = 0001 hex)
If C is 0001 hex, INI(880) stops comparison of a high-speed counter’s PV to the comparison table regis-
tered with CTBL(882).
C INI(880) function
0000 hex Starts comparison.
0001 hex Stops comparison.
0002 hex Changes the PV.
0003 hex Stops pulse output.
If C is 0002 hex (i.e., when changing a PV),
NV and NV+1 contain the new PV. Any val-
ues in NV and NV+1 are ignored when C is
not 0002 hex.
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
P, C --- --- --- --- --- --- --- --- --- OK
--- --- ---
NV OK OK OK OK OK OK OK OK OK ---
Name Label Operation
Error Flag P_ER ON if the specified range for P, C, or NV is exceeded.
ON if the combination of P and C is not allowed.
ON if a comparison table has not been registered but starting comparison is specified.
ON if a new PV is specified for a port that is currently outputting pulses.
ON if changing the PV of a high-speed counter is specified for a port that is not specified for a high-speed counter.
ON if INI(880) is executed in an interrupt task for a high-speed counter and an interrupt occurs when CTBL(882) is
executed.
OFF in all other cases.
P: Port specifier
C: Control data
0000 hex: Start
comparison
0001 hex: Stop
comparison
0002 hex:
Change PV
0003 hex: Stop
pulse output
0000 or 0001 hex: Pulse output Not allowed. Not allowed. OK OK
0010 to 0015 hex: High-speed counter input OK OK OK Not allowed.
1000 hex: PWM (891) output Not allowed. Not allowed. Not allowed. OK
NV
NV+1
0
15
For Pulse Output or High-speed Counter Input:
0000 0000 to FFFF FFFF hex
Lower word of new PV
Upper word of new PV