
Chapter 2 Program Flow
2-25
Q. How do you change the total counter?
A. Add the program library “pltIncCnt.”
* callpltLetCnt(Index, iValue)
'Index...PalletizingprogramNo.
'iValue...Thisvalueisenteredinthetotalcounter.
Example) #define pltIndex 0 'Palletizing program No.
Program Exmp
DefInt Index, iValue
Index = pltIndex 'Inserts the palletizing
'program No.
'into the Index register.
iValue = 0 'Enters a value into the
'total counter.
call pltLetCnt(Index, iValue)
'The value of iValue is
'entered into the total
'counter.
End
Q. With what timing does the total counter count?
A. It counts up when “pltKernel (Index, -15, mcNextPos, ndErr)” is executed.
Therefore, if the program library “pltGetNextPos,” “pltMove” and
“pltMove0”
are executed, the total counter will count up.
* call pltMove(Index)
* call pltMove0
* call pltGetNextPos(Index, NextPos)
'Index.... PalletizingprogramNo.
'NextPos... TypePvariablenumberwhere
the position of the next
position is entered.
Comentários a estes Manuais