ID 20100

Write access to variable denied.

Description

A write access is made to a variable of type 'READ_ONLY' for the CNC. It may either be a system-defined variable or an external variable (V.E.) which might be declared as ‘READ_ONLY’, ‘WRITE_ONLY’ and ‘READ_WRITE’ in the list definition [EXTV].

Example 1:

%example1

N10   G00 X0 Y0 Z0

N20   V.A.MENT.X=100

N1000 M30

 

Example 2:

%example2

N10   G00 X0 Y0 Z0

N20   V.A.MODE[4]=0

N1000 M30

Example 3:

%example3

N10   G00 X0 Y0 Z0

N20   V.A.MODULO_VALUE[4]=0

N1000 M30

Example 4:

(Requires the following variable definition)

var[0].name                     MYREADONLY

var[0].index                    8

var[0].type                     SGN32

var[00].scope                    CHANNEL

var[0].synchronisation          TRUE

var[0].access_rights            READ_ONLY

var[0].array_size               0

var[0].size                     4

var[0].create_hmi_interface     0

%example4

N10   G00 X0 Y0 Z0

N20   V.P.DEMO   = V.E.MYREADONLY

N30   V.E.MYREADONLY = 4711

N1000 M30

Response

Class

2

Abort NC program processing.

Solution

Class

3

In the list of external variables [EXTV], adjust the access rights for the corresponding variable using P-EXTV-00006 and repeat the start-up if this error occurs with an external variable.
For all other variable types, only a read access may be programmed.

Error type

1, Error message from NC program.