6.ADDRESS ASSIGNMENT TO POINTS OPERATION B-82604EN/01
- 48 -
6.10 SETTING $SNPX_ASG FROM CIMPLICITY (%G)
When you want to read or write data other than I/O signal data, you
must set $SNPX_ASG. Usually, this is set on the system variable
screen. $SNPX_ASG can also be set through communication from
CIMPLICITY.
When a character string is written to PLC address %G, robot
controller performs processing regarding the written character string
as a command. Robot controller performs command processing
similarly at any address number if it is within the %G area. The
following commands can be executed:
CLRASG Erasing $SNPX_ASG
Format: CLRASG
Function: Initializes all $SNPX_ASG settings.
Execute this command once before executing a SETASG command
sequence.
SETASG Setting $SNPX_ASG
Format: SETASG ($ADDRESS) ($SIZE) ($VAR_NAME)
[($MULTIPLY)]
Function: Sets a specifiled value in $SNPX_ASG.
Robot controller automatically selects an unused $SNPX_ASG area
for setting. So there is no need to specify the number of
$SNPX_ASG.
$MULTIPLY may be omitted. By default, $MULTIPLY is set to 1.
Before executing the SETASG command, execute CLRASG once.
SETVAR Setting a system variable
Format: SETVAR (system-variable-name) (value)
Function: Set a value in a specified system variable.
The data types of system variables that can be set are INTEGER,
SHORT, BYTE, REAL, BOOLEAN, and STRING.
For the BOOLEAN type, specify 1 for TRUE, or 0 for FALSE.
When specifying a character string that includes blanks, enclose the
character string with double quotation marks (“”).
CLRALM Erasing alarm histories
Format: CLRALM
Function: Initializes all alarm histories.
Example: When setting $SNPX_ASG as follows:
$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