Omron CX-ONE - INTRODUCTION GUIDE 1 Introduction Manual page 23

Fa integrated tool package
Table of Contents

Advertisement

Starting CX-
Design
Programmer
Right-click from Function
Blocks
Select a folder from
[Omronlib] > [Position
Controller] > [NCF]
Select OMRON FB Library
"_NCF021_MoveRelative_
DINT11.cxf"
Enter "MoveRelative" for
instance name. Then
create a ladder program
Setting
Creating Unit
CPU Bus
Configuration
Units/SIOU
Programming
Programming
This section describes programming with Library (OMRON Standard Libraries) that allows
easier connection to OMRON's Components. OMRON Standard Libraries is a group of
Components provided by OMRON, which can be categorized into two types; FB Components
(OMRON FB Library) to be used for a ladder program and SAP Components (Smart Active
Parts Library) to be used for an indicator.
NCF Unit Programming with OMRON FB Library
Servo motor (axis 1) connected to Unit number 0 NCF is moved to position 2000
(command Unit) with speed of 2000 (command Unit/s) by relative move command.
CPU
NCF
W10.00
Start Trigger
W10.02
Start No.2
P_On (Normally ON)
Position Command
2000 Command Unit → &2000
Velocity Command
2000 Command Unit/s → &2000
Paste the selected OMRON FB Library on the ladder, then enter its name (instance name)
(in this example, "MoveRelative"). Then create a ladder program as shown below.
OMRON FB Library is a collection of Components that OMRON provides as a Function
Block to use functions of OMRON's Units for PLC and FA Components much easier on a
PLC program. * For details, see FB Introduction Guide, Chapter 1.
Checking I/O
Assignment
&0
Unit No.: 0
Servo Motor No.1
Servo Motor
(Axis 1)
W10.01
W10.03
W10.04
(ENO)
Done
Command
Aborted
_NCF021_MoveRelative_DINT
EN
(BOOL)
Unit No.
UnitNo
&0
(INT)
Axis No.
Axis
Axis 1 → &1
(INT)
Command Aborted
Start No.2
Execute
(BOOL)
W10.02
Position
(DINT)
Velocity
(DINT)
Programming
Offline Debug
(Axis 1)
W10.02
W10.05
Error
Start No.2
ENO
(BOOL)
ENO
Positioning is completed
(BOOL)
W10.03
Done
(BOOL)
Command is aborted
W10.04
(BOOL)
Error Flag
Error
W10.05
(WORD)
ErrorID
(Omitted)
Saving
a Project

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-ONE - INTRODUCTION GUIDE 1 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cx-one

Table of Contents