2-337
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
High-speed Counter/Pulse
Output Instructions
2
ORG
Flags
Function
ORG(889) performs an origin search or origin return operation for the port specified in P using the
method specified in C.
The following parameters must be set in the PLC Setup before ORG(889) can be executed.
An origin search or origin return is started each time ORG(889) is executed. It is thus normally sufficient
to use the differentiated version (@ORG(889)) of the instruction or an execution condition that is turned
ON only for one scan.
Note ORG instruction can be used only with transistor output type of CP1E N/NA-type CPU Unit.
In case of transistor output type of CP1E E-type CPU Unit or relay output type, NOP processing is applied.
Origin Search (Bits 12 to 15 of C = 0 hex)
ORG(889) starts outputting pulses using the
specified method at the Origin Search Initial
Speed (1 in diagram).
Pulse output is accelerated to the Origin Search
High Speed using the Origin Search Accelera-
tion Rate (2 in diagram).
Pulse output is then continued at constant speed
until the Origin Proximity Input Signal turns ON
(3 in diagram), from which point pulse output is
decelerated to the Origin Search Proximity
Speed using the Origin Search Deceleration
Rate (4 in diagram).
Pulses are then output at constant speed until
the Origin Input Signal turns ON (5 in diagram).
Pulse output is stopped when the Origin Input
Signal turns ON (6 in diagram).
Name Label Operation
Error Flag P_ER • ON if the specified range for P or C is exceeded.
• ON if ORG(889) is specified for a port during pulse output for SPED(885), ACC(888), or PLS2(887).
• ON if ORG(889) is executed in an interrupt task when an instruction controlling pulse output is being executed in a
cyclic task.
• ON if the origin search or origin return parameters set in the PLC Setup are not within range.
• ON if the Origin Search High Speed is less than or equal to the Origin Search Proximity Speed or the Origin Search
Proximity Speed is less than or equal to the Origin Search Initial Speed.
• ON if an origin return operation is attempted when the origin has not been established.
• OFF in all other cases.
Origin search Origin return
• Origin Search Function Enable/Disable
• Origin Search Operating Mode
• Origin Search Operation Setting
• Origin Detection Method
• Origin Search Direction Setting
• Origin Search/Return Initial Speed
• Origin Search High Speed
• Origin Search Proximity Speed
• Origin Compensation
• Origin Search Acceleration Rate
• Origin Search Deceleration Rate
• Limit Input Signal Type
• Origin Proximity Input Signal Type
• Origin Input Signal Type
• Positioning Monitor Time
• Origin Search/Return Initial Speed
• Origin Return Target Speed
• Origin Return Acceleration Rate
• Origin Return Deceleration Rate
Pulse frequency
Origin search
initial speed
Origin search
high speed
Origin search
proximity speed
ORG(889) executed.
Origin Proximity Input Signal
Stop
Origin Input Signal
Time
Origin search
acceleration rate
Origin search
deceleration rate