Additional Functions
(Original Document)
At a Glance
The example from the following Control Expert program shows the learning and usage of 16 dimensions.
Dimension learning
This graph is used to program learning for 16 dimensions.
STEP 50 ACTION ON ACTIVATION
<memorizes %MW99 with a view to using it as a limit
! %MW98 := %MW99;
< Initializes the index during the learning phase
!  %MW99 := -1;
TRANSITION: X50 -> X51
! RE %I2.0
STEP 51 ACTION ON ACTIVATION
< brings the index up to date
! %MW99 := %MW99+1;
< positions learning
! %MD200[%MW99]: = X_POS;
TRANSITION: X51 -> X52
! %MW99 <= 16
TRANSITION: X51 -> X53
! %MW99 > 16
TRANSITION: X53 -> X50
! RE %I2.1
TRANSITION: X52 -> X51
! RE %I2.0
TRANSITION: X52 -> X50
! RE %I2.1
Using Dimensions
This graph is used to program the utilization of 16 dimensions.
STEP 42 ACTION ON ACTIVATION
<initializes %MW97 as the execution index
! %MW97 := -1;
TRANSITION: X42 -> X43
! RE %I2.2
STEP 43 ACTION ON ACTIVATION
< increments the execution index
! %MW97 := %MW97+1;
< executes the following segment
! SMOVE (AXIS_CH0,%MW97,%KW8,%KW1,%MD200[%MW97],150000,0);
%KW8 : 90 movement in the absolute value
%KW1: 09 go to point with break
TRANSITION: X43 -> X46
! NEXT AND (%MW97 < %MW98) AND NOT AX_FLT
TRANSITION: X43 -> X42
! (DONE AND (%MW97 >= %MW98)) OR AX_FLT
TRANSITION: X46 -> X43
! TRUE