Specifications

BASIC commands
PROGRAMMING MANUAL 50
Revision 5.0
/i
/i
SHAPE BLOCK: This is directly pointed to by the CAMBOX command as
in any CAMBOX.
CONTROL BLOCK: This is pointed to by the third CAMBOX parameter
in this options mode only. It is of fixed length (7 table values). It is impor-
tant to note that the control block is modified during the CAMBOX opera-
tion. It must therefore be re-initialised prior to each use.
PATTERN BLOCK: The start and end of this are pointed to by 2 of the
CONTROL BLOCK values. The pattern sequence is a sequence of scale
factors for the SHAPE.
The table below gives the CONTROL BLOCK parameters
Note: READ/WRITE values can be written to by the user program during the
pattern CAMBOX execution.
Value Parameter R/W Description
0 CURRENT
POSITION
R The current position within the TABLE of the pattern sequence.
This value should be initialised to the START PATTERN
number.
1FORCE
POSITION
R/W Normally this value is -1. If at the end of a SHAPE the user
program has written a value into this TABLE position the pat-
tern will continue at this position. The system software will then
write -1 into this position. The value written must be inside the
pattern such that the value: CB(2)<=CB(1)<=CB(3)
2START
PATTERN
R The position in the TABLE of the first pattern value.
3END
PATTERN
R The position in the TABLE of the final pattern value.
4 REPEAT
POSITION
R/W The current pattern repeat number. Initialise this number to 0.
The number will increment when the pattern repeats if the link
axis motion is in a positive direction. The number will decre-
ment when the pattern repeats if the link axis motion is in a
negative direction. Note that the counter runs starting at zero:
0,1,2,3...
5 REPEAT
COUNT
R/W Required number of pattern repeats. If -1 the pattern
repeats endlessly. The number should be positive. When the
ABSOLUTE value of CB(4) reaches CB(5) the CAMBOX fin-
ishes if CB(6)=-1. The value can be set to 0 to terminate the
CAMBOX at the end of the current pattern.
The axis the CAMBOX is linked to can run in a positive or neg-
ative direction. In the case of a negative direction link the pat-
tern will execute in reverse. In the case where a certain
number of pattern repeats is specified with a negative direction
link, the first control block will produce one repeat less than
expected. This is because the CAMBOX loads a zero link posi-
tion which immediately goes negative on the next servo cycle
triggering a REPEAT COUNT. This effect only occurs when the
CAMBOX is loaded, not on transitions from CONTROL
BLOCK to CONTROL BLOCK. This effect can easily be com-
pensated for either by increasing the required number of
repeats, or setting the initial value of REPEAT POSITION to 1.
6 NEXT
CONTROL
BLOCK
R/W If set to -1 the pattern will finish when the required number of
repeats are done. Alternatively a new control block pointer can
be used to point to a further control block.
Value Parameter R/W Description