The instruction for movement until event detection is as follows:
Instruction
|
Instruction code
|
Icon
|
Movement until event detection without stop
|
11
|
|
Movement until event detection with stop
|
10
|
|
Instructions 11 and 10 are similar to instructions 01 and 09, with command end on detection of an event (or command end on position entered if event has not been detected).
The awaited event can be:
-
a rising or falling edge (depending on the choice made in the Event field in the configuration screen) on dedicated event input, associated with the channel which controls the axis,
-
a rising edge of the EXT_EVT bit (%Qr.m.c.10) generated by the program.
It is mandatory to define the Position parameter. If the event is not been detected, the command finishes when this position has been reached.
Instructions 11 and 10 can activate an event task on detection of an event, if bit 12 of parameter M is set to 1.
Example 1: SMOVE (AXIS_CH0,1,90,11,2000000,3000,0) AXIS_CH0 of type T_AXIS_STD
Example 2: SMOVE (AXIS_CH0,1,90,10,3000000,2000,16#1000) AXIS_CH0 of type T_AXIS_STD