Festo Кабели и принадлежности User Manual

Page 353

Advertising
background image

7. Description of the commands

7−87

Festo P.BE−SPC200−EN en 0901d

Example

The following applies for this example:
Operating mode: Start/Stop

In the following example binary−coded position numbers are
sent to the axis controller via the inputs I0.0 and I0.1. Four
position numbers can therefore be specified:

I0.1

I0.0

Positions

0

0

Po_1

0

1

Po_2

1

0

Po_3

1

1

Po_4

At the beginning of the program the programmed stop for
synchronization with the higher−order PLC/IPC is used. With
the SYNC signal, the outputs of the PLC/IPC for the binary−
coded position number can be controlled at the same time. A
debouncing time of 30 ms is provided for this in NC record 1.

N000 M00 ;Wait for SYNC signal

N001 G04 3 ;Debounce time 30 ms

N002 #TI0.1 8 ;Po_3 or Po_4, if 1–signal

N003 #TI0.0 6 ;Po_2, if 1–signal

N004 G00 X@Po_1 ;Po_1, if both inputs 0

N005 E05 0 ;Jump back

N006 G00 X@Po_2 ;Po_2, if 1–signal

;only at I0.0

N007 E05 0 ;Jump back

N008 #TI0.0 11 ;Po_4, if both inputs 1

N009 G00 X@Po_3 ;Po_3, if 1–signal

;only at I0.1

N010 E05 0 ;Jump back

N011 G00 X@Po_4 ;Po_4, if both inputs 1

N012 E05 0 ;Jump back

Advertising