[Read CSV<2C> to PLC<2C> remove file] Header=1,,test,0 Element=new file,FileCreated,0,0,CSV, Connection=0,unconnected Connection=1,unconnected Element=Trigger Reset unknown file name,TriggerReset,4,0 Connection=0,5,0 Element=Documentation,Comment,0,1,The file contains one line with CSV content.<0A>- Searches for new files with the prefix "Datafile". Ignore all ather files.<0A>- If a new file is coming read it<0A>- Decode it and write the content infi a PLC. Assume there are three values in the line.<0A>- Remove the file if the PLC writing is success.<0A>- Set an error mit if the PLC writing does not work. Element=search "Datafile",StringIndex,2,0 Connection=0,0,1 Connection=1,4,0 Element=Datafile,SourceConst,1,0,string,2,<08 00 00 00>Datafile Connection=0,0,0 Element=wrong file name,CalcOne,3,0,Not Connection=0,3,1 Element=bad prefix offset,CalcTwo,3,1,Eq Connection=0,3,0 Connection=1,7,0 Element=zero,SourceConst,2,1,u32,2,<00 00 00 00> Connection=0,unconnected Element=read csv,FileRead,1,2,CSV,,ExternalFilename Connection=0,unconnected Connection=1,9,0 Element=Data Gate,DataGate,1,1 Connection=0,0,1 Connection=1,10,0 Element=file starts with the name,BitTrigger,4,1,4 Connection=0,6,0 Connection=1,unconnected Element=variable 1,CSVSplit,1,3,<3B>," Connection=0,12,0 Element=to text,Cast,2,2,0,string,,EndianNotSpecified Connection=0,8,0 Element=to number,Convert,2,3,0,i32,,EndianNotSpecified Connection=0,11,0 Element=PLC value 1,DestVar,3,3,i32,1,Memory,CSV value 1 Connection=0,13,0 Connection=1,unconnected Element=variable 2,CSVSplit,1,4,<3B>," Connection=0,11,1 Element=to number,Convert,2,4,0,i32,,EndianNotSpecified Connection=0,15,0 Element=to number,Convert,2,5,0,i32,,EndianNotSpecified Connection=0,15,1 Element=PLC value 2,DestVar,3,4,i32,1,Memory,CSV value 2 Connection=0,16,0 Connection=1,unconnected Element=PLC value 3,DestVar,3,5,i32,1,Memory,CSV value 3 Connection=0,17,0 Connection=1,unconnected Element=All ready and OK,CalcAny,4,4,And Connection=0,14,0 Connection=1,14,1 Connection=2,18,0 Connection=3,18,1 Connection=4,19,0 Connection=5,19,1 Element=remove used file,FileDelete,2,6,CSV,,ExternalFilename Connection=0,unconnected Connection=1,23,0 Element=Trigger Reset on OK,TriggerReset,4,6 Connection=0,21,0 Element=switch file name,DataGate,1,6 Connection=0,0,1 Connection=1,20,0 Element=invert,CalcOne,3,7,Not Connection=0,14,1 Element=invert,CalcOne,3,8,Not Connection=0,18,1 Element=invert,CalcOne,3,9,Not Connection=0,19,1 Element=Any error,CalcAny,4,7,Or Connection=0,24,0 Connection=1,25,0 Connection=2,26,0 Element=set error lamp,DestVar,3,10,bit,1,Memory,error lamp Connection=0,27,0 Connection=1,unconnected Element=Trigger Reset on error,TriggerReset,4,10 Connection=0,28,0