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
Содержание CJ1W-C113 - REV 02-2008
Страница 1: ...Position Control Units Cat No W397 E1 07 SYSMAC CJ1W NC113 213 413 133 233 433 OPERATION MANUAL ...
Страница 2: ...CJ1W NC113 213 413 133 233 433 Position Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 13: ...xiv ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 27: ...xxviii Conformance to EC Directives 6 ...
Страница 43: ...16 Control System Principles Section 1 7 ...
Страница 47: ...20 Basic Procedures Section 2 ...
Страница 139: ...112 Examples of Parameter Settings Section 4 9 ...
Страница 173: ...146 Transferring Data with CX Position Section 5 7 ...
Страница 223: ...196 Sample Program Section 7 7 ...
Страница 259: ...232 Sample Program Section 8 10 ...
Страница 293: ...266 Easy Backup Function Ver 2 0 or later Section 9 11 ...
Страница 369: ...342 Reading Error Information with CX Position Section 11 8 ...
Страница 385: ...358 Common Parameter Area Appendix C ...
Страница 399: ...372 Parameter Coding Sheets Appendix E ...