Beruflich Dokumente
Kultur Dokumente
CONTENTS
Page
ArcWarePlus 1
ArcWare Plus
Page
Arguments ................................................................................................................... 29
Syntax .......................................................................................................................... 30
Related information ..................................................................................................... 30
SpcDump - Dump statistical process control information ............................................ 31
Arguments ................................................................................................................... 31
SpcDiscon - Disconnects from a statistical process controller ...................................... 35
Arguments ................................................................................................................... 35
Syntax .......................................................................................................................... 35
Related information ..................................................................................................... 36
spcdescr - Statistical process controller descriptor........................................................ 37
Description .................................................................................................................. 37
Characteristics ............................................................................................................. 37
Related information ..................................................................................................... 38
spcdata - Statistical process control data ........................................................................ 39
Description .................................................................................................................. 39
SpcCon - Connects to a statistical process controller .................................................... 43
Arguments ................................................................................................................... 43
Index................................................................................................................................... 45
2 ArcWare Plus
ArcWare Plus ArcKill
Example
PROC main()
WeldSeam1;
WeldSeam2;
ERROR
TPReadFk ans “The weld failed”, ““, ““, ““,”Service”,”OK”;
TEST ans
CASE 4:
service_routine;
TRYNEXT;
DEFAULT:
TRYNEXT
ENDTEST
ENDPROC
PROC WeldSeam1()
ERROR
TEST ERRNO
CASE AW_IGNI_ERR:
! Try to restart the process if this was an ignition error.
RETRY;
DEFAULT:
! Kill the aw process and raise the error to the main routine
ArcKill;
RAISE
ENDTEST
ENDPROC
ArcWare Plus 3
ArcKill ArcWare Plus
Syntax
ArcKill ‘;’
Related information
Described in:
Performing a circular weld Instructions - ArcC
Performing a linear weld Instructions - ArcL
4 ArcWare Plus
ArcWare Plus ArcRefresh
Example
PROC PulseWeld()
IDelete intno1;
ENDPROC
TRAP TuneTrp
ENDTRAP
Syntax
ArcRefresh ‘;’
ArcWare Plus 5
ArcRefresh ArcWare Plus
Related information
Described in:
Performing a circular weld Instructions - ArcC
Performing a linear weld Instructions - ArcL
Definition of weld data Data Types - welddata
Definition of weave data Data Types - weavedata
Installation parameters for welding System Parameters - Arc Welding
equipment and welding functions
6 ArcWare Plus
ArcWare Plus corrdescr
Description
Data of the type corrdescr contains a reference to a correction generator.
The function CorrRead returns the sum of all the delivered offsets so far (includes all
connected correction generators).
Example
VAR corrdescr id;
VAR pos offset;
...
CorrCon id;
offset := [1, 2 ,3];
CorrWrite id, offset;
Characteristics
Corrdescr is a non-value data type.
ArcWare Plus 7
corrdescr ArcWare Plus
Related information
Described in:
Connects to a correction generator Instructions - CorrCon
Disconnects from a correction generator Instructions - CorrDiscon
Writes to a correction generator Instructions - CorrWrite
Reads the current total offsets Functions - CorrRead
Removes all correction generators Instructions - CorrClear
Characteristics of non-value data types Basic Characteristics - Data Types
8 ArcWare Plus
ArcWare Plus CorrCon
Example
VAR corrdescr id;
...
CorrCon id;
Arguments
CorrCon Descr
Descr Data type: corrdescr
Example
Path coordinate system
All path corrections (offsets on the path) are added in the path coordinate system. The
path coordinate system is defined as:
ZT XT
ZP
YT
XP
Tool
YP
ArcWare Plus 9
CorrCon ArcWare Plus
Application example
An example of an application using path corrections is a robot holding a tool with two
sensors mounted on it to detect the vertical and horizontal distances to a work object.
Sensor for
horizontal correction.
ZP
Sensor for
vertical correction
XP YP
Program example
PROC PathRoutine()
! Setup a 5 Hz timer interrupt. The trap routine will read the sensor values and
! compute the path corrections.
CONNECT intno1 WITH ReadSensors;
ITimer\singel 0.2, intno1
10 ArcWare Plus
ArcWare Plus CorrCon
ENDPROC
TRAP ReadSensors
ENDTRAP
Program explanation
Two correction generators are connected with the instruction CorrCon. Each
correction generator is referenced by a unique descriptor (hori_id and vert_id) of the
type corrdesc. The two sensors will use one correction generator each.
A timer interrupt is set up to call the trap routine ReadSensors with a frequency of 5
ArcWare Plus 11
CorrCon ArcWare Plus
Hz. The offsets, needed for path correction, are computed in the trap routine and written
to the corresponding correction generator (referenced by the descriptors hori_id and
vert_id) by the instruction CorrWrite. All the corrections will have immediate effect on
the path.
The MoveL instruction must be programmed with the switch argument Corr when path
corrections are used. Otherwise, no corrections will be executed.
When the first MoveL instruction is ready, the function CorrRead is used to read the
sum of all the corrections (the total path correction) given by all the connected
correction generators. The result of the total vertical path correction is written to the
TeachPendant with the instruction TPWrite.
CorrDiscon will then disconnect the correction generator for vertical correction
(referenced by the descriptor vert_id). All corrections added by this correction
generator will be removed from the total path correction. The corrections added by the
correction generator for horizontal correction will still be preserved.
Finally, the function CorrClear will remove all outstanding connected correction
generators and their previously added corrections. In this case, it is only the correction
generator for horizontal correction that will be removed. The timer interrupt will also
be removed by the instruction IDelete.
0 0 3 Vertical correction generator, with the sum of all its own path corrections.
0 1 0 Horizontal correction generator, with the sum of all its own path corrections.
Limitations
A maximum number of 5 correction generators can be connected simultaneously.
Syntax
CorrCon
12 ArcWare Plus
ArcWare Plus CorrCon
Related information
Described in:
Disconnects from a correction generator Instructions - CorrDiscon
Writes to a correction generator Instructions - CorrWrite
Reads the current total offsets Functions - CorrRead
Removes all correction generators Instructions - CorrClear
Correction generator descriptor Data types - corrdescr
ArcWare Plus 13
CorrCon ArcWare Plus
14 ArcWare Plus
ArcWare Plus CorrWrite
Example
VAR corrdescr id;
VAR pos offset;
...
CorrWrite id, offset;
The current offsets, stored in the variable offset, are written to the correction generator
referenced by the descriptor id.
Arguments
CorrWrite Descr Data
Descr Data type: corrdescr
Example
See Instructions - CorrCon
Limitations
The best performance is achieved on straight paths. As the speed and angles between
to consecutive linear paths increase, the deviation from the expected path will also
increase. The same applies to circles with decreasing circle radius.
Syntax
CorrWrite
ArcWare Plus 15
CorrWrite ArcWare Plus
Related information
Described in:
Connects to a correction generator Instructions - CorrCon
Disconnects from a correction generator Instructions - CorrDiscon
Reads the current total offsets Functions - CorrRead
Removes all correction generators Instructions - CorrClear
Correction generator descriptor Data types - corrdescr
16 ArcWare Plus
ArcWare Plus CorrRead
CorrRead is used to read the total corrections delivered by all connected correction
generators.
- find out how much the current path differs from the original path.
Example
VAR pos offset;
...
offset := CorrRead();
The current offsets delivered by all connected correction generators are available in the
variable offset.
The total absolute offsets delivered from all connected correction generators so far.
Example
See Instructions - CorrCon
Syntax
CorrRead ’(’ ’)’
ArcWare Plus 17
CorrRead ArcWare Plus
Related information
Described in:
Connects to a correction generator Instructions - CorrCon
Disconnects from a correction generator Instructions - CorrDiscon
Writes to a correction generator Instructions - CorrWrite
Removes all correction generators Instructions - CorrClear
Correction descriptor Data types - corrdescr
18 ArcWare Plus
ArcWare Plus CorrDiscon
Example
VAR corrdescr id;
...
CorrCon id;
...
CorrDiscon id;
Arguments
CorrDiscon Descr
Descr Data type: corrdescr
Example
See Instructions - CorrCon
Syntax
CorrDiscon
[ Descr ’:=’ ] < variable (VAR) of corrdescr > ’;’
ArcWare Plus 19
CorrDiscon ArcWare Plus
Related information
Described in:
Connects to a correction generator Instructions - CorrCon
Writes to a correction generator Instructions - CorrWrite
Reads the current total offsets Functions - CorrRead
Removes all correction generators Instructions - CorrClear
Correction descriptor Data types - corrdescr
20 ArcWare Plus
ArcWare Plus CorrClear
CorrClear is used to remove all connected correction generators. The instruction can
be used to remove all offsets provided earlier by all correction generators.
Example
CorrClear;
Note! An easy way to ensure that all correction generators (with corrections) are
removed at program start, is to run CorrClear in a START event routine. See System
Parameters - Topic: Controller.
Syntax
CorrClear ‘;’
Related information
Described in:
Connects to a correction generator Instructions - CorrCon
Disconnects from a correction generator Instructions - CorrDiscon
Writes to a correction generator Instructions - CorrWrite
Reads the current total offsets Functions - CorrRead
Correction descriptor Data types - corrdescr
ArcWare Plus 21
CorrClear ArcWare Plus
22 ArcWare Plus
ArcWare Plus SpcWrite
SpcWrite Writes to a
statistical process controller
SpcWrite provides the statistical process controller with parameter sample values.
Example
VAR spcdescr id;
VAR spcstat status;
VAR num value;
...
GetProcVal value;
SpcWrite id, value, status;
Arguments
Example
VAR spcdescr id;
VAR spcstat status;
VAR num value;
...
SpcCon id, status\GrpSize:=3\Teach:=2;
SpcWrite id, value, status;
The statistical process controller is allocating one entry with SpcCon and is then
delivering the parameter value within the variable value to the same entry in SpcWrite.
ArcWare Plus 23
SpcWrite ArcWare Plus
The instruction SpcWrite is returning the status of the statistical process in the variable
status. The value can be evaluated and proper actions taken.
Syntax
SpcWrite
[ Descr ’:=’ ] < variable (VAR) of spcdescr > ’,’
[ Value ’:=’ ] < expression (VAR) of num > ’,’
[ Status’:=’ ] < var or pers (INOUT) of spcstat > ’;’
Related information
Described in:
Connects to a statistical process controller Instructions - SpcCon
Disconnects from a statistical process Instructions - SpcDiscon
controller
Reads the current process status Instructions - SpcRead
Dumps the process information on a file or Instructions - SpcDump
a serial channel
Statistical process control data Data types - spcdata
Statistical process control descriptor Data types - spcdescr
Statistical process control status Data types - spcstat
24 ArcWare Plus
ArcWare Plus spcstat
Spcstat (Statistical process control status) is used to describe the status of a parameter
in a supervised process.
Description
Data of the type spcstat is used in the instructions SpcCon and SpcWrite. When these
instructions are executed, spcstat will be assigned different values depending on the
status. The values can be used for evaluation and depending on the result, proper
actions can be taken.
Example
VAR spcdescr id;
VAR spcstat status;
VAR num value;
...
CorrCon id, status;
CorrWrite id, value, status;
IF status = VALUE_OK THEN
! Continue program
...
ENDIF
The instruction SpcWrite returns the statistical process status in the variable status. The
value is evaluated and proper actions are taken.
Predefined data
Data of the type spcstat are assigned different predefined values in the instructions
SpcCon and SpcWrite. The values are:
Name Explanation
ArcWare Plus 25
spcstat ArcWare Plus
Characteristics
Spcstat is an alias data type for num and consequently inherits its characteristics.
Related information
Described in:
Connects to a statistical process controller Instructions - SpcCon
Disconnects from a statistical process Instructions - SpcDiscon
controller
Writes to a statistical process controller Instructions - SpcWrite
Reads the current process status Instructions - SpcRead
Dumps the process information on a file or Instructions - SpcDump
a serial channel
Statistical process controller descriptor Data types - spcdescr
Statistical process control data Data types - spcdata
Data types in general, alias data types Basic Characteristics - Data Types
26 ArcWare Plus
ArcWare Plus SpcRead
SpcRead is used to read some essential SPC information, such as mean values and
limits for subgroup average values and standard deviations.
Example
VAR spcdescr id;
VAR spcdata info;
...
CorrRead id info;
Arguments
SPC information.
Example
VAR spcdescr id;
VAR spcstat status;
VAR spcdata info;
SpcCon id, status\Header:=”voltage”;
SpcRead id, info;
IF info.ok = TRUE THEN
! Continue execution
...
ENDIF
- mean values and limits for subgroup average values and standard deviations.
- information whether the latest measured subgroup has exceeded the limits or
not.
ArcWare Plus 27
SpcRead ArcWare Plus
In the example, variable info is used to check whether both the latest subgroup average
value and standard deviation are within the limits.
Syntax
SpcRead
[ Descr ’:=’ ] < variable (VAR) of spcdescr > ’,’
[ Data ’:=’ ] < variable (VAR) of spcdata > ’;’
Related information
Described in:
Connects to a statistical process controller Instructions - SpcCon
Disconnects from a statistical process Instructions - SpcDiscon
controller
Writes to a statistical process controller Instructions - SpcWrite
Dumps the process information on a file or Instructions - SpcDump
a serial channel
Statistical process control data Data types - spcdata
Statistical process control descriptor Data types - spcdescr
Statistical process control status Data types - spcstat
28 ArcWare Plus
ArcWare Plus SpcDump
Example
VAR spcdescr id;
...
SpcDump id, "flp1:spc.file", "Parameter voltage";
SpcDump will dump the statistical process control information on the file spc.file on
flp1.
Arguments
The name and path of the file or serial channel where the statistical process control
information should be dumped.
The header of the dump (a text that can mark up a specific dump).
Example
VAR spcdescr id;
VAR spcstat status;
SpcCon id, status\GrpSize:=3\Teach:=2\Header:="voltage";
SpcDump id, "flp1:spc.file", "Parameter voltage";
The statistical process controller is allocating one entry with SpcCon and is then
dumping the information on the file "flp1:spc.file" to the same entry in SpcDump.
It is possible to add a header in the file, in this case "Parameter voltage".
ArcWare Plus 29
SpcDump ArcWare Plus
- Subgroup size.
- Mean values for subgroup average values and standard deviations.
- Supervision limits for the subgroup average values and standard deviations
(the +/-3 sigma limit and the +/-1.5 sigma limit if it is activated).
- At the most, the 100 latest charted subgroup values.
- Values that have exceeded the limits among the latest 100 charted subgroup val-
ues.
30 ArcWare Plus
ArcWare Plus SpcDump
Syntax
SpcDump
[ Descr ’:=’ ] < variable (VAR) of spcdescr > ’,’
[ SpcFile ’:=’ ] < expression (IN) of string > ’,’
[ Header ’:=’ ] < expression (IN) of string > ’;’
Related information
Described in:
Connects to a statistical process controller Instructions - SpcCon
Disconnects from a statistical process Instructions - SpcDiscon
controller
Writes to a statistical process controller Instructions - SpcWrite
Reads the current process status Instructions - SpcRead
Statistical process control data Data types - spcdata
Statistical process control descriptor Data types - spcdescr
Statistical process control status Data types - spcstat
ArcWare Plus 31
SpcDump ArcWare Plus
32 ArcWare Plus
ArcWare Plus SpcDiscon
Example
VAR spcdescr id;
...
SpcDiscon id;
Arguments
SpcDiscon Descr
Descr Data type: spcdescr
Example
VAR spcdescr id;
VAR spcstat status;
...
SpcCon id, status\Header:="voltage";
...
SpcDiscon id;
The statistical process controller is allocating one entry named "voltage" and returns
the descriptor id. For deallocation of the SPC entry the same descriptor is used in
SpcDiscon.
Syntax
SpcDiscon
[ Descr ’:=’ ] < variable (VAR) of spcdescr > ’;’
ArcWare Plus 33
SpcDiscon ArcWare Plus
Related information
Described in:
Connects to a statistical process controller Instructions - SpcCon
Writes to a statistical process controller Instructions - SpcWrite
Reads the current process status Instructions - SpcRead
Dumps the process information on a file Instructions - SpcDump
or a serial channel
Statistical process control data Data types - spcdata
Statistical process control descriptor Data types - spcdescr
Statistical process control status Data types - spcstat
34 ArcWare Plus
ArcWare Plus spcdescr
Description
Data of the type spcdescr contains a reference to an SPC entry.
- SpcWrite, measured parameter values are written to the statistical process con-
troller.
- SpcRead, process status will be received.
- SpcDump, process status and control chart will be written to a file or a serial
channel.
Example
VAR spcdescr id;
VAR spcstat status;
VAR num value;
...
CorrCon id, status;
CorrWrite id, value, status;
...
The statistical process controller is reserving one entry and is then delivering the
measured parameter value within the variable value to the same entry.
Characteristics
Spcdescr is a non-value data type.
ArcWare Plus 35
spcdescr ArcWare Plus
Related information
Described in:
Connects to a statistical process controller Instructions - SpcCon
Disconnects from a statistical process Instructions - SpcDiscon
controller
Writes to a statistical process controller Instructions - SpcWrite
Reads the current process status Instructions - SpcRead
Dumps the process information on a file or Instructions - SpcDump
a serial channel
Statistical process control data Data types - spcdata
Statistical process control status Data types - spcstat
Characteristics of non-value data types Basic Characteristics - Data Types
36 ArcWare Plus
ArcWare Plus spcdata
Spcdata (Statistical Process Control Data) describes the mean values and limits for the
statistical process controller. It also informs whether the latest measured subgroup has
exceeded the limits or not.
Description
The statistical process controller detects lack of control through the use of a control
chart. The control chart is made up of two plots, showing the average values within
consecutive subgroups, and standard deviation within the subgroups, respectively. A
subgroup is a collection of measurement values for an arbitrary parameter, the number
of which is defined by the instruction SpcCon.
Before the parameter supervision starts, some limits must be calculated. The calcula-
tion is based on subgroups (the number is defined by the instruction SpcCon) that are
registered before the start of supervision.
For each control chart a corresponding mean value is calculated, one of the subgroup
average values and one of the subgroup standard deviations.
When the supervision starts both the subgroup average values and standard deviations
are supervised. For the subgroup average values, the following conditions must be met
for lack of control to be indicated:
- One subgroup average value exceeds the +/-3 sigma (standard deviation) limit
around the mean value of the subgroup average values.
- Two consecutive subgroup average values exceed the +/-1.5 sigma (standard
deviation) limit around the subgroup average values.
Subgroup Subgroup
Error detected
average value standard deviation
ucl_value x ucl_sigma
x x x s
mean_value x mean_sigma s s s
x x s s s
lcl_value lcl_sigma
ArcWare Plus 37
spcdata ArcWare Plus
Components
mean_value Data type: num
Verifies that the latest measured subgroup average value is within the allowed
limits.
Verifies that the latest measured subgroup standard deviation is within the
allowed limits.
Example
VAR spcdescr id;
VAR spcstat status;
VAR spcdata data;
CorrCon spcid, status;
CorrRead spcid, data;
IF data.ok = TRUE THEN
! Continue program
...
ENDIF
38 ArcWare Plus
ArcWare Plus spcdata
The instruction CorrRead returns the statistical process data in the variable data. The
values are evaluated and proper actions are taken.
Structure
<data object of spcdata>
<mean_value of num>
<mean_sigma of num>
<ucl_value of num>
<lcl_value of num>
<ucl_sigma of num>
<lcl_sigma of num>
<mean_value_ok of bool>
<mean_sigma_ok of bool>
<ok of bool>
Related information
Described in:
Connects to a statistical process controller Instructions - SpcCon
Disconnects from a statistical process Instructions - SpcDiscon
controller
Writes to a statistical process controller Instructions - SpcWrite
Reads the current process status Instructions - SpcRead
Dumps the process information on a file or Instructions - SpcDump
a serial channel
Statistical process controller descriptor Data types - spcdescr
Statistical process control status Data types - spcstat
ArcWare Plus 39
spcdata ArcWare Plus
40 ArcWare Plus
ArcWare Plus SpcCon
SpcCon Connects to a
statistical process controller
SpcCon is used to allocate an SPC entry before starting supervision limit calculation
and process supervision.
Example
VAR spcdescr id;
VAR spcstat status;
...
SpcCon id, status\Header:="voltage";
The statistical process controller is allocating one entry named "voltage" and returns a
descriptor for this entry (parameter id). The descriptor is then used by other SPC
instructions to operate on the entry. SpcCon will also return the status of the connection
operation in the variable status.
Arguments
The number of subgroups that must be collected before the calculation of the
supervision limits occur and the process supervision starts (default = 50).
ArcWare Plus 41
SpcCon ArcWare Plus
The backup file contains the supervision limits. If the backup file defined in the
instruction does not exist, new limits will be calculated and stored in the file. If the
backup file does exist, the limits stored in the file will be used and the supervision
limit calculation will be omitted.
Example
VAR spcdescr id;
VAR spcstat status;
...
SpcCon id, status\GrpSize:=3\Teach:=2\Strict\Header:="voltage";
...
Parameter value
Subgroup
upper limit
x
x
x x
Subgroup
x x
mean value
Subgroup
lower limit Sample
Subgroup 1 Subgroup 2
Before the parameter supervision starts, some limits must be calculated. The calcula-
tion is based on subgroups of parameter samples, where the number of samples in each
subgroup is 3 (defined by GrpSize) and the number of subgroups is 2 (defined by
Teach).
The calculation will emerge in the forced limit +/-3 sigma. If the switch argument Strict
is active, the optional limit +/-1.5 sigma will be included in the parameter supervision.
Syntax
SpcCon
[ Descr ’:=’ ] < variable (VAR) of spcdescr > ’,’
[ Status ’:=’ ] < var or pers (INOUT) of spcstat >
[ ’\’ GrpSize ’:=’ < expression (IN) of num > ]
[ ’\’ Teach ’:=’ < expression (IN) of num > ]
42 ArcWare Plus
ArcWare Plus SpcCon
[ ’\’ Strict ]
[ ’\’ Header ’:=’ < expression (IN) of string > ] ’;’
[ ’\’ BackupFile ’:=’ < expression (IN) of string > ] ’;’
Related information
Described in:
Disconnects from a statistical process Instructions - SpcDiscon
controller
Writes to a statistical process controller Instructions - SpcWrite
Reads the current process status Instructions - SpcRead
Dumps the process information on a file or Instructions - SpcDump
a serial channel
Statistical process control data Data types - spcdata
Statistical process control descriptor Data types - spcdescr
Statistical process control status Data types - spcstat
ArcWare Plus 43
SpcCon ArcWare Plus
44 ArcWare Plus
Index
ArcKill 7
ArcRefresh 9
CorrClear 25
CorrCon 13
corrdescr 11
CorrDiscon 23
CorrRead 21
CorrWrite 19
SpotWare Plus 45
Index