Introduction
The Omron FB library for position controllers provides a collection of Function Blocks developed for simple open loop axis positioning.
Most of the FBs share the same interface (input/output) regardless the output device employed for positioning (CJ1M CPUs, CP1H, NC or NCF units).
All the FBs rely on the functionalities built-in in the CPUs and NC units.
None of the functions employ the feedback from an encoder for positioning.
Most of the FBs share the same interface (input/output) regardless the output device employed for positioning (CJ1M CPUs, CP1H, NC or NCF units).
All the FBs rely on the functionalities built-in in the CPUs and NC units.
None of the functions employ the feedback from an encoder for positioning.
Function description
- When Start (Execute) is turned ON, starts deceleration stop for the axis specified with Axis No. (Axis) using the selected Pulse output method.
- The Deceleration stop completed (Done) will be turned ON when a deceleration stop by this FB is completed. It will not be turned ON when a deceleration stop is interrupted by a Multistart by another instance or error.
- The Error flag (Error) and Error code (ErrorID) will be output when an error related to this FB occurs. Both will be cleared when Start (Execute) is turned OFF.
- If Start (Execute) is turned OFF before deceleration stop is completed, the status output will be turned ON at least for one cycle when a corresponding condition occurs.
- When Start (Execute) is turned ON with no origin defined, the output pulse counts will be cleared to 0 and output pulses will be counted during deceleration.
Example
Basic function | Decelerates and operating axis to stop |
Symbol | |
FileName | Lib\FBL\omronlib\PositionController\NC-CPU(CJ1MCPU2x)\_NCCPU062_Stop10.cxf |
Applicable Models | CPU Unit CJ1-CPU21/22/23 Unit version 3.0 or higher |
CX-Programmer Version 5.0 or higher |
Variable Table
Input variables
Name | Variable Name | Data type | Default | Range | Description |
EN | EN | BOOL | 1(ON): Starts FB
0(OFF): Does not start FB |
||
Axis No. | Axis | INT | &0 | &0 to &1 | &0: PulseOutput 0
&1: PulseOutput 1 |
Start | Execute | BOOL | 0(OFF) | Starts deceleration stop | |
Deceleration rate | Deceleration | INT | &1 | &1 to &65535 | Specifies the deceleration rate Unit: Hz/4ms (increase (Hz) in pulse frequency per Pulse Control period (4ms)) |
Pulse method output | OuputPulseSelect | INT | &0 | &0 to &1 | &O: CW/CCW Output
&1: Pulse + direction output |
Output Variables
Name | Variable Name | Data type | Range | Description |
ENO | ENO | BOOL | 1(ON): FB operating normally
0(OFF): FB not operating normally |
|
Deceleration Stop completed | Done | BOOL | 1(ON) indicates that the deceleration stop has been completed | |
Error Flag | Error | BOOL | 1(ON) indicates that an error has occurred in the FB | |
Error Code (may be omitted) | ErrorID | WORD | The error code of the error in the FB will be output.For details of the errors refer to the sections of the manuals listed in the manuals mentioned above. When Unit No. or Axis No. is out of the range 0000 will be output. |