B-82604EN/01 OPERATION6.ADDRESS ASSIGNMENT TO POINTS
- 27 -
6.3 READING FROM AND WRITING TO POSITION
REGISTERS (%R)
As with registers, position registers are assigned to %R using
$SNPX_ASG to allow CIMPLICITY to read from and write to
position registers. Unlike registers, position registers are not assigned
as standard. So $SNPX_ASG must always be set.
When assigning position registers, set the elements of $SNPX_ASG
as follows:
$SNPX_ASG element Explanation
$ADDRESS Meaning: Start address of %R to be assigned
Range: 1 to 16384
$SIZE Meaning: Number of %R’s to be assigned
Fifty %R’s are required per position register.
(The number of %R’s used per position register can be changed by specifying
@ in $VAR_NAME)
Range: 1 to 16384
$VAR_NAME Meaning: Character string indicating the data to be assigned
When assigning a position register, specify, for example, PR[1]. The bumber
in brackets is a position register number.
Consecutive position registers such as PR[2] to PR[5] can be assigned at one
time. In this case, the number of the position registers is four, so set 200 in
$SIZE and set PR[2] in $VAR_NAME. Here, the index 2 indicates that
registers are assigned sequentially from PR[2].
In a multi-group system, PR[1] indicates group 1 fo PR[1]. To specify data of
group 2, specify the group before the index, such as PR[G2:1].
When @ is specified after the character string, it is possible to assign, for
example, J1 through J6 only. This will be explained in detail later.