194
Sample Program
Section 7-7
Program Example
In the following example, W030000 is used as a work bit.
7-7-4
Program Using Function Blocks
The following example shows function blocks for the ABSOLUTE MOVE-
MENT command.
Use of function blocks provides the following advantages.
• Bits for commands and address calculations for data areas that depend
on the unit number and axis number are automatically calculated in the
function block, reducing the work required to perform calculations.
• Acceleration times, deceleration times, position command values, speed
command values, and other settings can be easily made.
• Function blocks can be freely named, simplifying program management.
Refer to the following documentation for details on function blocks.
• Using Function Blocks for the First Time
Function Block Introduction Guide (R133)
• Using Function Blocks for Each Associated Device
OMRON FB Library Start-up Guide (R123)
OMRON FB Library Reference Manual (W442)
DIFU
W03000
MOVL
#00020F58
D00508
MOVL
#00003A98
D00510
MOVL
#00000064
D00512
W03000
Start switch
Work bit
MOVL
#00000064
D00514
203004
Set position
Set speed
Set acceleration time
Set deceleration time
ABSOLUTE MOVEMENT command
Busy Flag
200213
203004
Summary of Contents for CJ1W-C113 - REV 02-2008
Page 2: ...CJ1W NC113 213 413 133 233 433 Position Control Units Operation Manual Revised February 2008 ...
Page 3: ...iv ...
Page 13: ...xiv ...
Page 15: ...xvi ...
Page 19: ...xx ...
Page 27: ...xxviii Conformance to EC Directives 6 ...
Page 43: ...16 Control System Principles Section 1 7 ...
Page 47: ...20 Basic Procedures Section 2 ...
Page 139: ...112 Examples of Parameter Settings Section 4 9 ...
Page 173: ...146 Transferring Data with CX Position Section 5 7 ...
Page 223: ...196 Sample Program Section 7 7 ...
Page 259: ...232 Sample Program Section 8 10 ...
Page 293: ...266 Easy Backup Function Ver 2 0 or later Section 9 11 ...
Page 369: ...342 Reading Error Information with CX Position Section 11 8 ...
Page 385: ...358 Common Parameter Area Appendix C ...