Global cross-channel variable (V.I.)

The purpose of a “V.I.” identifier is to define user-generated names for variables that can be used cross-channel. These variables are of the REAL64 type which is fixed.

Properties:

A CNC reset in the channel does not delete the V.I. variable.

Condition:

The P-CHAN-00521 parameter must make sufficient memory space available. At the same time, the parameter P-CHAN-00522 must define the maximum number of V.I. variables.

The parameter P-CHAN-00525 can be used to define which channel is responsible for handling the V.I. variables of a channel; see parameterisation example. If this parameter is not set, the first channel is responsible for this. The entered channel is responsible for all requests, such as definitions, value changes and deletion of V.I. variables.

Programming Example

Declaration, access and deletion of V.I. variables

(declaration )
N100 VAR
N101 V.I.Name1 = 12
N102 V.I.Name2
N103 ENDVAR
(access)
N110 V.I.Name1 = 12
N120 V.I.Name2 = V.I.Name1
(delete)
N130 #DELETE V.I.Name1
N140 #DELETE ALL [V.I]
M30

Example for parameterising a V.I. server

Example

The initial situation is a 2-channel system where the second channel is responsible as the server for V.I. variables.

Parameterising channel 1:

configuration.decoder.vi_server  2 ( P-CHAN-00525 -Reference to channel with ID=2)

Parameterising channel 2:

configuration.decoder.vi_memory            1000 ( P-CHAN-00522)
configuration.decoder.vi_maximal_var_count 100  ( P-CHAN-00523)
configuration.decoder.vi_server            2    ( self-reference)