GVL.TcGVL 1.4 KB
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.11">
  <GVL Name="GVL" Id="{b6f3d9d2-0220-4858-8193-d13ab0d73a9a}">
    <Declaration><![CDATA[VAR_GLOBAL	
(* =========================== Acquisition Data , Data Block , Data Block Buffer =========================== *)
	AcquisitionData 				AT %I* : ARRAY [1..nMaxAcqNodeNo] OF stAcquisitionData;			(* Acquisition data from IO *)

	AcquisitionBlock				: ARRAY [1..nMaxAcqNodeNo] OF stAcquisitionBlock;		(*  Put one Acq Block into fifo buffer *)


	

(* ============================================ File Storge Path  ============================================ *)
	sFileTargetNetId	: T_AmsNetId := '';
	sAccessPath			: T_MaxString := 'C:\Data\';	//'\Hard Disk\ftp\'; 	(* Storge Folder Path *)


(* ===================================================================================================================== *)
	nRecordAcqBlockPerFile	: UDINT	:= 100;	(* File size = sizeof(file Header) + (sizeof(stAcquisitionData)* (nAcquisitionBlock+1) * nRecordAcqBlockPerFile   *)


END_VAR

VAR_GLOBAL CONSTANT
	nMaxAcqNodeNo		: UINT := 1;		(* IO Acquisition data node array , FirstId Start from 1  *) 
	nAcquisitionBlock	: UINT := 99;		(* Acquisition times to trig fifo buffer  , Don't less then 20 (reserve for handshake process)    *)
	nFifoSize			: UINT := 10;		(* Define Buffer size *)
END_VAR]]></Declaration>
  </GVL>
</TcPlcObject>