Executing Present Position Preset - Omron CS1W-MC221 - 02-2008 Operation Manual

Motion control units
Table of Contents

Advertisement

Present Position Preset

6-17-1 Executing Present Position Preset

Address
R/W
MC221
MC421
17DE
17DE
W
(6110)
(6110)
17DF
17DF
W
(6111)
(6111)
---
17E0
W
(6112)
---
17E1
W
(6113)
Ladder Programming
Example
Execution condition
364
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.
Name
Presetting the X-axis present
position
Presetting the Y-axis present
position
Presetting the Z-axis present
position
Presetting the U-axis present
position
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.
DIFU
R1
#2710
#17DE
R3
R2
15
L+1
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.
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.
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.
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.
(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.
(Work bit)
(Work bit)
Section 6-17
Configuration
00 15
L
00

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-mc221Cs1w-mc221-v1Cs1w-mc421Cs1w-mc421-v1

Table of Contents