<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4022.10">
  <GVL Name="Global_NCI" Id="{de1920d7-b0f0-4727-ab7b-81192294df91}">
    <Declaration><![CDATA[VAR_GLOBAL
	arrAxis_REF:					ARRAY [1..nMaxNumberOfAxis] OF AXIS_REF;
	arrNCToPLC_NCIChannel_REF		AT %I*: ARRAY [1..nMaxNumberOfNciChannels] OF NCTOPLC_NCICHANNEL_REF;
	arrPLCToNC_NCIChannel_REF		AT %Q*: ARRAY [1..nMaxNumberOfNciChannels] OF PLCTONC_NCICHANNEL_REF;
	
	arrAxisCalibrationCam :			ARRAY [1..nMaxNumberOfAxis] OF BOOL;
	bMFunc:	 						ARRAY [1..nMaxNumberOfNciChannels,0..159] OF BOOL; (* M-Functions to acknowledge for every channel *)
	bQuitMFunc:						ARRAY [1..nMaxNumberOfNciChannels,0..159] OF BOOL; (* Array to acknolewdge M-Funktion *)
	bFastMFunc: 					ARRAY [1..nMaxNumberOfNciChannels,0..159] OF BOOL; (* fast M-Functions for every channel *)
	nGroup: 						ARRAY [1..nMaxNumberOfNciChannels] OF UDINT;  (* which logical GroupId belongs to the channel *)
	bGroup1: 						BOOL:=FALSE;
	bGroup2: 						BOOL:=FALSE;
	nRParamRead:					ARRAY [1..nMaxNumberOfNciChannels, nStartIndexReadRParam..nEndIndexReadRParam] OF LREAL;	(* elements of RParam are read every second *)
	nRParamWrite:					ARRAY [1..nMaxNumberOfNciChannels, nStartIndexWriteRParam..nEndIndexWriteRParm] OF LREAL;	(* elements of RParam are write every second *)
END_VAR

(* after changing this, it is neccessary to create new links to axis and channel variables in TwinCAT SystemManager *)
VAR_GLOBAL CONSTANT
	nMaxNumberOfAxis: 				UINT := 3;
	nMaxNumberOfNciChannels:		UINT := 2;  	(* channel 1 always is PTP channel, here are the maximum numbers of NCI channels is configured *)
	
	nStartIndexReadRParam:			UINT := 10;		(* Index for nRParamRead *)
	nEndIndexReadRParam:			UINT := 19;
	nStartIndexWriteRParam:			UINT := 0;		(* Index for nRParamWrite *)
	nEndIndexWriteRParm:			UINT := 9;

   	MaxNciTool:						INT := 5;(* Max.Anzahl Werkzeuge in der NCI-Verwaltung *)

END_VAR	
(* after changing this, it is neccessary to create new links to axis and channel variables in TwinCAT SystemManager *)

	
	

]]></Declaration>
  </GVL>
</TcPlcObject>