Blame view

SanlienDataRecoder_01/Untitled1/GVLs/GVL.TcGVL 1.4 KB
03a3ca636   frank   初版
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <?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 := '';
ddb447a17   Johnny Yang   test sync0 counter
15
  	sAccessPath			: T_MaxString := 'C:\Data\';	//'\Hard Disk\ftp\'; 	(* Storge Folder Path *)
03a3ca636   frank   初版
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
  
  (* ===================================================================================================================== *)
  	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>