Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 21 of 32

SYSMAC C200H-NC211 Position Control Unit Operation Manual: SECTION 7 The TEACH Command, pages 166 to 174

Pages 166 to 174 of 259, from SYSMAC C200H-NC211 Position Control Unit Operation Manual

The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Omron C200H-NC211

Page 166

TRANSFER DATA

Section 7-4

Data Transfer Time

When executing TRANSFER DATA, the transfer completed flag (bit 10 of word n+12) will be OFF during data transfer and processing for the following period: A maximum of 0.2 s + k (scan time) The value of k depends on the number of transfers being made, as illustrated in the following table. (When transferring data for both axes simultaneously, add the two k values.) Number of transfers

Influence on PC Scan Time

160 k

1 to 6

1

7 to 13

2

14 to 20

3

21 to 27

4

28 to 34

5

35 to 41

6

42 to 48

7

49 to 55

8

56 to 59

9

Mounting one Position Control Unit on a PC extends the PC’s scan time by about 7 ms. In addition, when transferring data, the scan time during which data is transferred increases by another 5 ms. For example, to transfer all 52 positioning actions, TRANSFER DATA only needs to be executed once, but both the PC and Position Control Unit require eight scans. Each of these scan times will be 5 ms longer than the normal scan time.

Page 167

TRANSFER DATA

Section 7-4

IR Area Settings In C200H PCs, IR words 100 to 199 are used for Special I/O Units. When a Position Control Unit is used, some of these words are allocated as I/O refresh areas. For a detailed explanation, refer to Section 3-2 Data Configuration and Allocation. For a detailed table of words and bits in the IR area, refer to Section 5 IR Area Allocations. Beginning Transfer Number

X: Bits 14-08 of word n+2 Y: Bits 14-08 of word n+7 14 n+2

08 x101 x100

(n = 100 + 10 x Unit number)

Set to an integer between 00 and 58 (BCD).

This number indicates the position where the first transfer is to be made. The designated number of transfers (set by bits 14-08 of word n+4) will be transferred continuously beginning at this point. Refer to 3-3 DM Area Allocations for the words transferred with each transfer number. Number of Transfers

X: Bits 14-08 of word n+4 Y: Bits 14-08 of word n+9

Beginning Word Number

X: Word n+3 Y: Word n+8

161

Page 168

TRANSFER DATA PC Data Area

15

Section 7-4 X: Bits 07-00 of word n+4 Y: Bits 07-00 of word n+9 This is the first word in the PC data area that is to be transferred into the Position Control Unit beginning at the transfer number designated above. The beginning word and ending word (computed from the number of transfers) must be within one of the data areas designated during data preparation. 00 n+3 n+4 x101 n+4 x100 n+3 x101 x100 x102 x101 x100

Beginning word number

Data Area Number of transfers Set between 01 and 59 (BCD).

x103

00

DM

01

I/O

02

LR

03

HR

04

AR

Set a word number in 4-digit BCD code

If expanded DM is not used, the data for speed, acceleration, and deceleration (transfer data #53-58) cannot be transferred with the data for positioning action (transfer data # 0-19). In that case, be sure to transfer the data separately. TRANSFER DATA Command Bit

X: Bit 10 of word n Y: Bit 10 of word n+5 10 n TRANSFER DATA command bit (TRANSFER DATA begins at the rising edge of this bit.)

When this bit turns ON, the settings it enables are effective in the same scan.

162

Page 169

TRANSFER DATA Transfer buffer Command Bit

Section 7-4 X: Bit 15 of word n+1 Y: Bit 15 of word n+6 15 n+1 transfer buffer command bit (After TRANSFER DATA has been executed, Transfer buffer begins at the rising edge of this bit)

If the contents of the buffer are not transferred after TRANSFER DATA has been executed, the positioning action data contained in the buffer is lost. Be sure to execute Transfer buffer after TRANSFER DATA is completed and positioning stopped, but while the PC is in RUN mode. TRANSFER DATA can be executed repeatedly before executing Transfer buffer. For example, if partial transfers of positioning action and speed data have been made, a single execution of transfer buffer is adequate. Because all data in the buffer is transferred to the memory area of the PC200H, words n+2 through n+4 do not need to be set when transfer buffer is executed. Transfer buffer does not alter the contents of the buffer.

163

Page 170

TRANSFER DATA

Section 7-4 This example assumes that bit 15 of word n+2 is ZERO.

Execution Example (Normal Transfer) Preparation of data in PC’s data areas

Set necessary information in IR area. Beginning transfer number word n+2, bits 14-08

Beginning word number word n+3

PC data area/no. of transfers word n+4

TRANSFER DATA word n, bit 10

1

Transfer completed flag word n+10, bit 10

1

0

0 Buffer transfer

Transfer buffer word n+1, bit 15

Busy flag word n+10, bit 12

1

Data transfer Data processing

0

1 0 After transfer buffer has been completed, the busy flag turns off.

TRANSFER DATA can be executed whether the busy flag is ON or OFF. The TRANSFER DATA command bit and transfer completed flag do not affect the busy flag. The transfer buffer is disabled while the busy flag is ON. Do not attempt to execute transfer buffer while TRANSFER DATA is being executed. Do not attempt to execute TRANSFER DATA while transfer buffer is being executed.

164

Page 171

Present Position Preset

7-5

Section 7-5

Present Position Preset If bit 15 of word n+2 is ONE, setting the TRANSFER DATA command bit (bit 10 of word n) either presets or changes the present position. This command eliminates the need to execute ORIGIN SEARCH to establish position. Because the origin and present position are unknown when the Unit is powered up, ORIGIN SEARCH must normally be executed before any positioning action. However, when you want to know the absolute position and set a particular numerical value, use present position preset. You can also use the preset function to change the present position.

Retaining Present Position

No data is retained in the Position Control Unit after power is turned OFF. If the present position needs to be retained, copy it (words n+13 and n+14) to either the HR or DM area; it can then be restored by executing TRANSFER DATA the next time the Unit is powered up. The following programming example shows word n+13 data being sent to word HR 00 and word n+14 data to word HR 01. If there is no origin, bit 11 of word n+10 (the no-origin flag) turns ON. As long as there is an origin and the present position data is valid, the present position will be transferred. Be sure to execute DATA TRANSFER for present position preset during a pause, but while the PC Unit is in operating mode.

15

00 n+13 x103 x102 x101 x100 n+14

Direcx106 tion x105 x104 n+14 Direcx106 tion n+13 x105 x104 x103 x102 x103 x102 x101 x100

Direcx106 HR 01 tion x105 x104

0

CW

1

CCW x101 x100 n+10, bit 11 XFER (70) #0002 n+13 HR 00

HR 00

165

Page 172

Present Position Preset

Section 7-5

Data Preparation

Data must be prepared in the same manner as for normal execution of TRANSFER DATA, except that only two words indicating the target position are required (number of transfers need not be set). Execution of transfer buffer is unnecessary after present position preset.

Present Position Preset Bit

X: Bit 15 of word n+2 Y: Bit 15 of word n+7 15 n+2 Present position preset bit When this bit is 1, present position preset is set.

Set this bit to ONE to use the preset function. If this bit is set to ZERO, the beginning transfer number is set in bits 15-08 as described in Beginning Word Number under Section 7-4 IR Area Settings. Beginning Word Number

15

X: Word n+3/bits 07-00 of word n+4 Y: Word n+8/bits 07-00 of word n+9 Set the data area in BCD from which the transfer is to be made. 00 n+3 n+4 n+4 x101 x100 n+3 x101 x100

Data Area 00

DM

01

I/O

02

LR

03

HR

04

AR x103 x102 x101 x100

Beginning word number Set a word number in 4-digit BCD code

This number indicates the first of the two words to be transferred as the present position. The two words must be within one of the data areas designated for Data Preparation under Section 7-4 Transfer Data.

166

Page 173

Present Position Preset PC Data Area

15

Section 7-5 X: Word n+3/bits 07-00 of word n+4 Y: Word n+8/bits 07-00 of word n+9 Set the data area (in four digits BCD) from which the transfer is to be made. 00 n+3 n+4 n+4 x101 x100 n+3 x101 x100

Data Area Number of transfers

00

DM

01

I/O

02

LR

03

HR

04

AR x103 x102 x101 x100

Beginning word number Set a word number in 4-digit BCD code

Here the number of transfers is fixed at 2 words, and no setting needs to be made for transfer quantity.

167

Page 174

Present Position Preset

Section 7-5

TRANSFER DATA Command Bit

The TRANSFER DATA command bit setting is the same as described previously for normal transfer under Section 7-4 IR Area Settings.

Execution Example (Preset)

The following example assumes that bit 15 of word n+2 has been set to ONE.

Set necessary information in IR area. Present position preset word n+2, bit 15

Beginning word number word n+3

PC data area word n+4 bits 07-00

TRANSFER DATA word n, bit 10

1

Transfer completed flag word n+10, bit 10

1

Busy flag word n+10, bit 12

Present position words n+13 and n+14

0

0 1 0

Preset value

TRANSFER DATA cannot be executed for present position preset when the busy flag is OFF.

168