Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Software > Programming
Minimize Text   Default    Enlarge Text
 

Print
E-mail

CJ2M-MD211/MD212 Function Block For Origin Search(DINT)


Origin Search (DINT)
Name Origin Search (DINT): MD_CPU051_Home_DINT
 
Basic Function Executes origin search to define an origin.
Symbol  
Originates from Tsunagi Lab Europe
Created by OEE-HQ HvB (creation and testing)
File Name MD_CPU051_Home_DINT.cxf
Applicable models CPU Unit CJ2M-CPU Unit version 2.0 or higher with max. two
CJ2M-MD211 (NPN) or
CJ2M-MD212 (PNP)
CX-Programmer Version 9.1.2 or higher
Conditions for usage None.
Function Description Executes origin search for the output specified with Axis No. (Axis), based on the PLC Setup Settings in the CPU Unit when Start (Execute) is turned ON (using the selected Pulse output method).
After the origin search is completed, Present Position Change will be executed (the value specified in Position data (Position) will become the present position).

Even when 0 is specified in Position data (Position), Present Position Change will be executed.
The Origin search completed (Done) will be turned ON when Present Position Change by this FB is completed.
When an origin search is interrupted by a deceleration stop or error, the Origin search completed (Done) will not be turned ON.
The Error flag (Error) and Error code (ErrorID) will be output when an error related to this FB occurs.
They will be turned OFF when Start (Execute) is turned OFF. If Start (Execute) was turned OFF before origin search is completed, they will be turned ON at least for one cycle when a corresponding condition occurs.

Note:
This FB uses the Origin Search Function of the CPU Unit. For details, refer to the manual listed in the Related manuals.

Kind of FB definition Connect Always ON type
  Connect the EN input to the Always ON Flag (P_ON).
  The same instance cannot be used in two or more places.
FB Precautions • When using the Pulse output 0&1 or 2&3 simultaneously, use the same Pulse output method for them.

The MD_CPU0*_* function blocks are offered 'as is' and may serve as a basis for development. Users should previously test its adequacy to the final application.

Omron can not be held responsible in case of malfunction.

EN input condition  • Connect the EN input to the Always ON Flag (P_ON).
 • If a different type of bit is connected to EN, the FB outputs will be maintained when the connected bit is turned OFF.
Restrictions other • This FB does not use Acceleration/deceleration curve designation, Origin search high-speed, Origin search proximity speed, Origin search acceleration rate, Origin search deceleration rate, and Origin compensation.
To use these, specify them outside of the FB.
• After the pulse stops, when Present Value Preset is not executed in FB, due to command errors or others, it becomes an error.
Application example Turning the start trigger from OFF to ON will start operating the Servomotor connected to the Pulse output 0 on the CJ2M-MD21* Unit to perform origin search. After the origin search is completed, Present Position Change will be executed.

After the origin search is completed, Present Position Change will be executed.

Related manuals  CJ2M Pulse I/O User Manual (W486)
 CJ2 Hardware User Manual (W472)
  • 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 &3 &0: Pulse output 0, &1: Pulse output 1
&2: Pulse output 2, &3: Pulse output 3
Start Execute BOOL 0(OFF)   OFF -> ON (rising edge) starts origin search
Position data Position DINT +0 -2147483648 to +2147483648 Specifies the position data to be used in the Present Position Change.
Unit: Pulses
Pulse output method OutPulseSelect INT &0 &0 to &1 &0: 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
Origin search completed Done BOOL   1 (ON) indicates that an origin search 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 occurred in the FB will be output. For details of the errors, refer to the sections of the manual listed in the Related manuals above. When Unit No. or Axis. No. is out of the range, #0000 will be output.

Revision History

Version Date Contents
1.00 16-Feb-2012 Based on Function Block: _NCCPU051_Home_DINT

Note

This manual is a reference that explains the function block functions. It does not explain the operational limitations of Units, components, or combinations of Units and components. Always read and understand the Operation Manuals for the system’s Units and other components before using them.

 



Attachments

MD_CPU051_Home_DINT.pdf - Size: 333395


Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2012-02-17
Modified 2012-02-28
Views 4670

 

You are not logged in.