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

The text of a manual ยท part 28 of 32

SYSMAC C200H-NC211 Position Control Unit Operation Manual: SECTION 9 Programming Examples, pages 230 to 236

Pages 230 to 236 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 230

Example 10

Section 9-10

(continued from previous page) Transfers positioning data from the PC to the NC 03100 MOV (21)

102 Beginning action no. (positioning action no. 20)

#2000 102 MOV (21) #0100

103 Beginning word no. (word No. 100)

103 MOV (21) #1000 104

103 Number of transfers (10). PC data area no. (no.0) 0= DM

10010 Interpolation completed 11000

X axis transfer Busy flag completed 11010 11012

Busy flag 11512 10115

11000

11010

11012

11512 DIFU (13) 03200 END (01)

225

Page 231

Example 10

Section 9-10

Flag Status No. 20

No. 29

No. 20

X axis pulse output

No. 29 Y axis pulse output

Interpolation START 1000

1 0 1

X axis TRANSFER DATA 10010

0 1

X axis transfer buffer 10115

0

1 X axis positioning comp. flag 11000

0 1

X axis transfer comp. flag 11010

0 1

X axis busy flag 11012

0 1

Y axis busy flag 11512

226

0

Data transfer Buffer transfer

Page 232

Example 10

Section 9-10

Operating Patterns

Y axis

No. 28

12000 No. 27

No. 26

9000 No. 29

No. 25 No. 24

6000 No. 23

No. 22

3000 No. 21

No. 20 0

10000

Speed X axis

X axis

2500 2000 1280 1000

1000 500 No. 22

No. 20 0

10000

No. 24 0

No. 26 10000

Speed Y axis

No. 28 0

No. 29 10000

0

2000

1280 1000

1000 500 No. 21 0

No. 23 3000

No. 27

No. 25 6000

9000

No. 29 12000

0

227

Page 233

Example 10

Section 9-10 (after TRANSFER has been started)

Y axis

No. 28

12000 No. 27

No. 26

9000 No. 29

No. 25 No. 24

6000 No. 23

No. 22

3000 No. 21

No. 20 0

20000

Speed X axis

X axis

2500 1715

2000

1000

1000 500 No. 22

No. 20 0

20000

No. 24 0

No. 26 20000

No. 28 0

Speed Y axis

No. 29 20000

0

2500 2000 1029 1000 500 No. 21 0

228

3000

No. 23

No. 27

No. 25 6000

9000

12000

No. 29 0

Page 234

Section 9-11

Example 11

9-11 Example 11 Using a Multiple Bank Program In this example, it is assumed that the data from Example 4 has already been input to Unit #0. First Bank (X axis) (Positioning Action Numbers 0 to 2) DM 1022 Positioning action no. 0

The data for first bank is entered into positioning action numbers 0, 1, and 2. DM 1084

3 0 0 2 0 0 0 0

Speed No. 3 DM 1085

0 0 0 1 DM 1025 Positioning action no. 1

4 0 0 0 5 0 0 0 0 0 0 1

DM 1028 Positioning action no. 2

CCW

Speed No. 4

#0 (continuous)

START

Stop #1 (single)

0

10000

3 0 0 3

#2 (bank end)

Stop

0 0 0 0

15000

CW

START

0 0 0 0 Speed No. 3

The data for the second bank is entered into positioning action numbers 5, 6, and 7.

First Bank (X axis) (Positioning Action Numbers 5 to 7) DM 1037 Positioning action no. 5

DM 1084

3 0 0 2 9 0 0 0

Speed No. 3

DM 1085

0 0 0 0 DM 1040 Positioning action no. 6

4 0 0 0 5 0 0 0 0 0 0 1

DM 1043 Positioning action no. 7

3 0 0 3 1 0 0 0

#5 (continuous)

START 0 CCW

1000 Stop

Speed No. 4 Stop #6 (single)

9000 #7 (bank end)

15000

CW

START

0 0 0 0

229

Page 235

Section 9-11

Example 11 First Bank (Y axis) (Positioning Action Numbers 0 to 2) DM 1122 Positioning action no. 0

The data for first bank is entered into positioning action numbers 0, 1, and 2. DM 1084

3 0 0 2 0 0 0 0

Speed No. 3 DM 1085

0 0 0 1 DM 1125 Positioning action no. 1

4 0 0 0 5 0 0 0 0 0 0 1

DM 1128 Positioning action no. 2

CCW

10000

3 0 0 3

#2 (bank end)

Stop

0 0 0 0

Positioning action no. 6

Speed No. 3

3 0 0 2

DM 1084

9 0 0 0

Speed No. 3

4 0 0 0

DM 1085

Positioning action no. 7

3 0 0 3 1 0 0 0 0 0 0 0

230

#5 (continuous)

START

5 0 0 0 0 0 0 1

DM 1143

CW

START

0 0 0 0 DM 1140

15000

The data for the second bank is entered into positioning action numbers 5, 6, and 7.

First Bank (Y axis) (Positioning Action Numbers 5 to 7) Positioning action no. 5

Stop #1 (single)

0

0 0 0 0

DM 1137

Speed No. 4

#0 (continuous)

START

0 CCW

1000 Stop

Speed No. 4 Stop #6 (single)

9000 #7 (bank end)

15000 START

CW

Page 236

Section 9-11

Example 11 Program (Unit #0)

This program distinguishes between the two banks shown on the previous two pages (for either the X or Y axis). The program selects and execute either positioning action #0 or #5, it turns the valid bit of the initial positioning number ON, then immediately OFF. To force execution, leave the initial positioning action valid bit ON.

Start switch A DIFU (13) 10000 Start switch B DIFU (13) 10500 11001 (bank end flag)

DIFU (13) 03000

10501 (bank end flag)

10000

#0 assigned switch 03000

DIFU (13) 04000 03101 03100

03100

Designates #0 as the next positioning action after the bank ends.

MOV (21) #0000

10000

#5 assigned switch 03000

101 03100 03101

03101

Designates #5 as the next positioning action after the bank ends.

MOV (21) #0005

10500

#0 assigned switch 04000

101 04101 04100

04100

MOV (21) #0000

10500

#5 assigned switch 04000

106 04100 04101

04101

MOV (21) #0005 106

03100 DIFU (13) 10001 03101 04100 DIFU (13) 10501

Turns ON the valid initial positioning no. flag for 1 scan with the next START following the end of the bank.

04101

231