364
Present Position Preset
Section 6-17
6-17-1 Executing Present Position Preset
To execute present position preset, set the following addresses for the IOWR
instruction’s control code (C) and then transfer the present position preset
value to the MC Unit. For details on the Command Area, refer to
3-6 Com-
mand Area
. For details on IOWR specifications, refer to
SECTION 4 Data
Transfer and Storage
.
Ladder Programming
Example
In this example, the X-axis present position is set to 10,000. The MC Unit is
mounted to a CS-series PLC and assigned unit number 0, and the data to be
transferred (i.e., the present position) is stored in words D00100 and D00101.
Both the IOWR operands and the data to be transferred are assumed to be
normal.
When debugging, check the Error Flags from the ladder program.
Address
R/W
Name
Configuration
MC221
MC421
17DE
(6110)
17DE
(6110)
W
Presetting the X-axis present
position
17DF
(6111)
17DF
(6111)
W
Presetting the Y-axis present
position
Sets the Y-axis present position to any value and
establishes the origin. The data configuration is the same
as that for presetting the X-axis present position.
---
17E0
(6112)
W
Presetting the Z-axis present
position
Sets the Z-axis present position to any value and
establishes the origin. The data configuration is the same
as that for presetting the X-axis present position.
---
17E1
(6113)
W
Presetting the U-axis present
position
Sets the U-axis present position to any value and
establishes the origin. The data configuration is the same
as that for presetting the X-axis present position.
L+1
L
15
00 15
00
Preset value for the X-axis present position
Sets the X-axis present position to any value and esta-
blishes the origin. The data is 32-bit signed binary data.
L+1: Leftmost 16 bits, L: Rightmost 16 bits
Range: FD9DA601 to 026259FF Hex (
−
39999999 to
39999999)
The minimum setting unit is set to 2 (for 0.01), the dis-
play unit is set to 0 (for mm), and the reference origin
offset is 3.99 [mm] (i.e., 399 x 0.01) if the data is 399.
Execution condition
(Work bit)
(Work bit)
(Work bit)
This is the special address (6110) with the function of
presetting the X-axis present position.
17DE Hex (6110)
Specifies first source word.
Specifies destination unit number 0 and specifies two
words of data to be transferred.
DIFU
R1
R3
R2
#2710
#17DE
Содержание CS1W-MC221 -
Страница 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Страница 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 11: ...xii ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 27: ...xxviii Conformance to EC Directives 6 ...
Страница 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Страница 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Страница 227: ...200 Command Area Section 3 6 ...
Страница 351: ...324 Interface Specifics Section 5 4 ...
Страница 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Страница 575: ...548 Error Log Section 12 6 ...
Страница 589: ...562 Performance Appendix A ...
Страница 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Страница 683: ...656 Origin Search Patterns Appendix F ...
Страница 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...