EasyManua.ls Logo

FANUC R-J3iB - Page 47

Default Icon
90 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
B-82604EN/01 OPERATION6.ADDRESS ASSIGNMENT TO POINTS
- 25 -
$VAR_NAME Meaning: Character string indicating the data to be assigned.
When assigning a register, specify, for exammple, R[1]. The number in brackets is a
register number.
Consecutive registers such as R[2] to R[5] can be assigned at one time. In this case, the
number of the registers is four, so set 8 in $SIZE and set R[2] in $VAR_NAME. Here, the
index 2 indicates that registers are assigned sequentially from R[2].
The number of %R’s per register can be set ti 1 by adding @1.1 to the end of the
character string. In this case, 16-bit data is used.
Example: R[1]@1.1
R[1] indicates that registers are assigned sequentially from R[1]. @1.1 indicates that
data is used as 16-bit data.
$MULTIPLY Meaning: Multiplier
The register value is multiplied by the value set in $MULTIPLY, then the multiplication
result is read or written.
When $MULTIPLY is set to 0, it has a special meaning. %R can be read and written as
32-bit real type data.
When $MULTIPLY is set to non-zero value, 32-bit signed integer data is used, with its
fractional part rounded off.
Range: 0.0001 to 10000, 0
Example: Suppose that the register value is 123.45:
When $MULTIPLY is 1, 123 is read.
When $MULTIPLY is 10, 1235 is read.
When $MULTIPLY is 0.1, 12 is read.
When $MULTIPLY is 0, 123.45(real number) is read.
An example of setting $SNPX_ASG is given below:
$ADDRESS $SIZE $VAR_NAME $MULTIPLY
$SNPX_ASG[1] 1 2 R[1]@1.1 1
$SNPX_ASG[2] 3 4 R[1] 100
$SNPX_ASG[3] 7 4 R[2] 0.1
$SNPX_ASG[4] 11 2 R[1] 0
Then, the %R-to-register correspondence is follows:
PLC address Robot controller data that can be read and written
%R1 16-bit signed integer of R[1]
%R2 16-bit signed integer of R[2]
%R3-4 32-bit signed integer obtained by multiplying R[1] by 100
%R5-6 32-bit signed integer obtained by multiplying R[2] by 100
%R7-8 32-bit signed integer obtained by dividing R[2] by 10
%R9-10 32-bit signed integer obtained by dividing R[3] by 10
%R11-12 32-bit real number of R[1]
$SNPX_ASG[1] indicates that two %R’s, %R1 and %R2, are
assigned to registers sequentially from R[1] in the format of 16-bit
signed integers multiplied by one. Since $R is 16-bit data, the number

Related product manuals